[PATCH 1/1] clk: imx: scu: remove the calling of device_is_bound

Sudip Mukherjee sudipm.mukherjee at gmail.com
Thu Nov 19 12:44:48 EST 2020


On Thu, Nov 19, 2020 at 3:30 PM Aisheng Dong <aisheng.dong at nxp.com> wrote:
>
> > From: Sudip Mukherjee <sudipm.mukherjee at gmail.com>
> > Sent: Thursday, November 19, 2020 9:08 PM
> >
> > Hi Dong,
> >
> > On Thu, Nov 19, 2020 at 07:43:02PM +0800, Dong Aisheng wrote:
> > > The device_is_bound() is unvisable to drivers when built as modules.
> > > It's also not aimed to be used by drivers according to Greg K.H.
> > > Let's remove it from clk-scu driver and find another way to do proper
> > > driver loading sequence.
> >
> > Greg was asking to use device_link for this issue. Have you tried something like
> > the following: (untested as I dont have the hardware).
>
> It can't work as expected because it requires supplier devices (scu pd) to be probed first.
> and if scu pd was probed first, then there're already no issues.

hmm.. thats odd. I was expecting that if "scu-pd" has not registered
then device_link_add() will return NULL and then imx_clk_scu_init()
will return -EPROBE_DEFER.


-- 
Regards
Sudip



More information about the linux-arm-kernel mailing list