Re: [PATCH 1/1] clk: imx: scu: remove the calling of device_is_bound
From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Date: 2020-11-19 17:45:38
Also in:
linux-clk
From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Date: 2020-11-19 17:45:38
Also in:
linux-clk
On Thu, Nov 19, 2020 at 3:30 PM Aisheng Dong [off-list ref] wrote:
quoted
From: Sudip Mukherjee <sudipm.mukherjee@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:quoted
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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel