]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: bcmgenet: Fix attaching to PYH failed on RPi 4B
authorJian-Hong Pan <jhp@endlessos.org>
Wed, 23 Jun 2021 03:28:03 +0000 (11:28 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:30:58 +0000 (09:30 +0200)
commitb5889fdb1d577a26cff598bba48a24e352a74634
tree3d6c53793d534675173e48e5c31d7fad1f1bb8db
parent8605c5a7ddb62640a5a60f241dca7b5f920034d6
net: bcmgenet: Fix attaching to PYH failed on RPi 4B

BugLink: https://bugs.launchpad.net/bugs/1938340
[ Upstream commit b2ac9800cfe0f8da16abc4e74e003440361c112e ]

The Broadcom UniMAC MDIO bus from mdio-bcm-unimac module comes too late.
So, GENET cannot find the ethernet PHY on UniMAC MDIO bus. This leads
GENET fail to attach the PHY as following log:

bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000
...
could not attach to PHY
bcmgenet fd580000.ethernet eth0: failed to connect to PHY
uart-pl011 fe201000.serial: no DMA platform data
libphy: bcmgenet MII bus: probed
...
unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus

This patch adds the soft dependency to load mdio-bcm-unimac module
before genet module to avoid the issue.

Fixes: 9a4e79697009 ("net: bcmgenet: utilize generic Broadcom UniMAC MDIO controller driver")
Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=213485
Signed-off-by: Jian-Hong Pan <jhp@endlessos.org>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/broadcom/genet/bcmgenet.c