mbox series

[0/3] clk: imx: scu: support defer probe properly

Message ID 20201124100802.22775-1-aisheng.dong@nxp.com (mailing list archive)
Headers show
Series clk: imx: scu: support defer probe properly | expand

Message

Aisheng Dong Nov. 24, 2020, 10:07 a.m. UTC
This patch series is a continued solution for the issue discussed here:
https://lore.kernel.org/patchwork/patch/1334670/

As kernel doesn't want user to call device_is_bound() which is removed
https://patchwork.kernel.org/project/linux-clk/patch/20201119114302.26263-1-aisheng.dong@nxp.com/

Because SCU clock-controller (SCU clock protocol) itself does not have a power
domain property in DT as it does not depend on power domain, but the sub
clocks registered requires power domains to be ready first.
We export an API for SCU clk driver to query the status in
order to support -EPROBE_DEFER properly.

Dong Aisheng (3):
  clk: imx: scu: make scu clk driver depend on scu pd
  firmware: imx: scu-pd: export SCU PD register status
  clk: imx: scu: defer probe if scu pd is still not ready

 drivers/clk/imx/Kconfig          |  4 ++--
 drivers/clk/imx/clk-scu.c        |  3 +++
 drivers/firmware/imx/scu-pd.c    | 20 +++++++++++++++++++-
 include/linux/firmware/imx/sci.h |  6 ++++++
 4 files changed, 30 insertions(+), 3 deletions(-)