Thread (30 messages) 30 messages, 6 authors, 2021-09-23

Re: [RFC PATCH net-next 01/12] net: mdio: mscc-miim: Fix the mdio controller

From: Horatiu Vultur <horatiu.vultur@microchip.com>
Date: 2021-09-22 08:23:03
Also in: linux-devicetree, linux-pm, lkml, netdev

The 09/20/2021 13:52, Andrew Lunn wrote:
EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

On Mon, Sep 20, 2021 at 11:52:07AM +0200, Horatiu Vultur wrote:
quoted
According to the documentation the second resource is optional. But the
blamed commit ignores that and if the resource is not there it just
fails.

This patch reverts that to still allow the second resource to be
optional because other SoC have the some MDIO controller and doesn't
need to second resource.

Fixes: 672a1c394950 ("net: mdio: mscc-miim: Make use of the helper function devm_platform_ioremap_resource()")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Hi Andrew,
Hi Moratiu

The script kiddies might come long and 'fix' this again. Maybe
consider adding devm_platform_ioremap_resource_optional(), following
the pattern of other _optional() API calls. Otherwise add a comment.
Initially I think I will go with the comment. Because this patch
actually needs to go on net.
    Andrew
-- 
/Horatiu

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help