]> git.baikalelectronics.ru Git - uboot.git/commit
net: marvell: mvgbe: Set PHY page 0 before phy_connect
authorTony Dinh <mibodhi@gmail.com>
Tue, 12 Apr 2022 20:18:19 +0000 (13:18 -0700)
committerStefan Roese <sr@denx.de>
Mon, 2 May 2022 05:47:26 +0000 (07:47 +0200)
commit4c86a6b1065400544caab4ba18b3f3818dc88d21
treecbff82a5796f328a44428a8bd10b44fad8639f9e
parent83910018e37757fd3943142d15c06e9042d36e15
net: marvell: mvgbe: Set PHY page 0 before phy_connect

For most Kirkwood boards, the PHY page is already set to page 0
(in register 22) before phy_connect is invoked. But some board like
the Zyxel NSA310S (which uses the network chip MV88E1318S), the PHY page
is not set to page 0. There seems to be some bad data remained in
register 22 when the uclass MVGBE about to invoke phy_connect().

This patch enables the uclass MVGBE to always set the PHY page to 0
before phy_connect.

For reference, please see this discussion:
[RFC PATCH v2] arm: kirkwood: nsa310s: Use Marvell uclass mvgbe
and PHY driver for DM Ethernet.
https://lists.denx.de/pipermail/u-boot/2022-April/480946.html

This patch has been tested with the following Kirkwood boards:

NSA310S (88F6702, network chip MV88E1318S)
Sheevaplug (88F6281, network chip MV88E1318)
Pogo V4 (88F6192, network chip 88E1116R)
GF Home(88F6281, network chip 88E1116R)
Dreamplug (88F6281, network chip MV88E1318)
Dell Kace M300 (88F6282, network chip MV88E1318) - out of tree u-boot

Signed-off-by: Tony Dinh <mibodhi@gmail.com>
drivers/net/mvgbe.c