From: Andrew Lunn <andrew@lunn•ch>
To: Cai Huoqing <caihuoqing@baidu•com>
Cc: horatiu.vultur@microchip•com, hkallweit1@gmail•com,
linux@armlinux•org.uk, davem@davemloft•net, kuba@kernel•org,
netdev@vger•kernel.org, linux-kernel@vger•kernel.org
Subject: Re: [PATCH v2] net: mdio-ipq4019: Fix the error for an optional regs resource
Date: Tue, 28 Sep 2021 17:26:33 +0200 [thread overview]
Message-ID: <YVM0KSp82olO07eK@lunn.ch> (raw)
In-Reply-To: <20210928134849.2092-1-caihuoqing@baidu.com>
On Tue, Sep 28, 2021 at 09:48:49PM +0800, Cai Huoqing wrote:
> The second resource is optional which is only provided on the chipset
> IPQ5018. But the blamed commit ignores that and if the resource is
> not there it just fails.
>
> the resource is used like this,
> if (priv->eth_ldo_rdy) {
> val = readl(priv->eth_ldo_rdy);
> val |= BIT(0);
> writel(val, priv->eth_ldo_rdy);
> fsleep(IPQ_PHY_SET_DELAY_US);
> }
>
> 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: fa14d03e014a ("net: mdio-ipq4019: Make use of devm_platform_ioremap_resource()")
> Signed-off-by: Cai Huoqing <caihuoqing@baidu•com>
Reviewed-by: Andrew Lunn <andrew@lunn•ch>
Andrew
next prev parent reply other threads:[~2021-09-28 15:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-28 13:48 [PATCH v2] net: mdio-ipq4019: Fix the error for an optional regs resource Cai Huoqing
2021-09-28 15:26 ` Andrew Lunn [this message]
2021-09-29 2:40 ` patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YVM0KSp82olO07eK@lunn.ch \
--to=andrew@lunn$(echo .)ch \
--cc=caihuoqing@baidu$(echo .)com \
--cc=davem@davemloft$(echo .)net \
--cc=hkallweit1@gmail$(echo .)com \
--cc=horatiu.vultur@microchip$(echo .)com \
--cc=kuba@kernel$(echo .)org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux@armlinux$(echo .)org.uk \
--cc=netdev@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox