[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <bb88febd-19e8-6569-45d3-b0973bb89bfb@phrozen.org>
Date: Tue, 18 May 2021 20:53:06 +0200
From: John Crispin <john@...ozen.org>
To: Andrew Lunn <andrew@...n.ch>, Vladimir Oltean <olteanv@...il.com>
Cc: Randy Dunlap <rdunlap@...radead.org>,
Stephen Rothwell <sfr@...b.auug.org.au>,
Linux Next Mailing List <linux-next@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Ansuel Smith <ansuelsmth@...il.com>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>
Subject: Re: linux-next: Tree for May 18 (drivers/net/dsa/qca8k.c)
On 18.05.21 19:33, Andrew Lunn wrote:
>> Would something like this work?
>>
>> -----------------------------[ cut here ]-----------------------------
>> >From 36c0b3f04ebfa51e52bd1bc2dc447d12d1c6e119 Mon Sep 17 00:00:00 2001
>> From: Vladimir Oltean <olteanv@...il.com>
>> Date: Tue, 18 May 2021 19:39:18 +0300
>> Subject: [PATCH] net: mdio: provide shim implementation of
>> devm_of_mdiobus_register
>>
>> Similar to the way in which of_mdiobus_register() has a fallback to the
>> non-DT based mdiobus_register() when CONFIG_OF is not set, we can create
>> a shim for the device-managed devm_of_mdiobus_register() which calls
>> devm_mdiobus_register() and discards the struct device_node *.
>>
>> In particular, this solves a build issue with the qca8k DSA driver which
>> uses devm_of_mdiobus_register and can be compiled without CONFIG_OF.
>>
>> Reported-by: Randy Dunlap <rdunlap@...radead.org>
>> Signed-off-by: Vladimir Oltean <olteanv@...il.com>
> This should be O.K.
>
> Reviewed-by: Andrew Lunn <andrew@...n.ch>
>
> Thanks
> Andrew
Just did a x86 build with the patch applied and it completed ...
Acked-by: John Crispin <john@...ozen.org>
Powered by blists - more mailing lists