Re: [PATCH v2] irqchip/renesas-irqc: Postpone driver initialization

From: Florian Fainelli
Date: Wed Nov 09 2016 - 14:17:14 EST


On 11/08/2016 11:50 AM, Geert Uytterhoeven wrote:
> Hi Florian,
>
> On Tue, Nov 8, 2016 at 8:42 PM, Florian Fainelli <f.fainelli@xxxxxxxxx> wrote:
>> On 11/08/2016 11:35 AM, Geert Uytterhoeven wrote:
>>> Currently the renesas-irqc driver uses postcore_initcall().
>>>
>>> However, the new CPG/MSSR driver uses subsys_initcall(). Hence the
>>> IRQC's probe will be deferred, which causes the Micrel Ethernet PHY to
>>> not find its interrupt on R-Car Gen2 and RZ/G, as the of_mdio subsystem
>>> does not support deferred probe yet.
>>
>> Is not that the more correct fix to implement though?
>
> Sure it is. But nothing has happened since this was reported ca. 1 year ago.
> Cfr. "of_mdiobus_register_phy() and deferred probe"
> https://lkml.org/lkml/2015/10/22/377
>
> My MDIO foo is not that strong...

Let me try to cook something here which may require
of_mdiobus_register_phy(), are you okay testing patches?
--
Florian