aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorCai Huoqing <caihuoqing@baidu.com>2021-09-28 21:48:49 +0800
committerJakub Kicinski <kuba@kernel.org>2021-09-28 17:28:54 -0700
commit9e28cfead2f8f5aba7df03c74c9ec645b5ffc5fd (patch)
tree8ba17af4c910c65ebdbe68f07c380630e51058ca /net
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf (diff)
downloadlinux-dev-9e28cfead2f8f5aba7df03c74c9ec645b5ffc5fd.tar.xz
linux-dev-9e28cfead2f8f5aba7df03c74c9ec645b5ffc5fd.zip
net: mdio-ipq4019: Fix the error for an optional regs resource
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> Link: https://lore.kernel.org/r/20210928134849.2092-1-caihuoqing@baidu.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions