[U-Boot] [PATCH 0/6] Remove no use clk_enable() for rockchip platform

Kever Yang kever.yang at rock-chips.com
Wed Aug 28 08:23:45 UTC 2019

There are some clk_enable() callback add to rockchip clock drivers but
with out any real operation driver code, it's waste of CPU cycles at
runtime and waste of code size. The callback are add because some
peripheral REQUIRE it, eg. ehci/ohci generic driver, and other driver
also need it if the ops exist, eg. dwc3 driver and designware net driver.

After update ehci&ohci driver to not always need clk_enable ops in
vendor driver, we can remove all relate no use code in rockchip clock

Kever Yang (6):
  usb: ehci-generic: don't probe fail if there is no clk_enable() ops
  usb: ohci-generic: don't probe fail if there is no clk_enable() ops
  rockchip: clk: rk3288: remove clk_enable()
  rockchip: clk: rk3328: remove clk_enable()
  rockchip: clk: rk3368: remove clk_enable()
  rockchip: clk: rk3399: remove clk_enable()

 drivers/clk/rockchip/clk_rk3288.c | 23 -------------------
 drivers/clk/rockchip/clk_rk3328.c | 12 ----------
 drivers/clk/rockchip/clk_rk3368.c | 19 ----------------
 drivers/clk/rockchip/clk_rk3399.c | 37 -------------------------------
 drivers/usb/host/ehci-generic.c   |  2 +-
 drivers/usb/host/ohci-generic.c   |  2 +-
 6 files changed, 2 insertions(+), 93 deletions(-)


More information about the U-Boot mailing list