]> git.baikalelectronics.ru Git - kernel.git/commit
staging: octeon-ethernet: fix incorrect PHY mode
authorAaro Koskinen <aaro.koskinen@iki.fi>
Mon, 25 Mar 2019 20:48:01 +0000 (22:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2019 20:54:18 +0000 (05:54 +0900)
commit8635d343eb732a71779e0e1f3fd5ece85f317c4d
tree2b2f6e08f194ae03525b4c191121784c7895d74e
parent9851f4a75aaa366fa4f1867d81b3a3a21e7d37fb
staging: octeon-ethernet: fix incorrect PHY mode

When connecting PHY, we set the mode to PHY_INTERFACE_MODE_GMII which is
not always correct. Specifically on boards where RGMII_RXID is needed
networking now longer works with at803x after commit 3a4ce1a0c4b2
("net: phy: at803x: disable delay only for RGMII mode").

Fix by passing the correct mode. Tested on EdgeRouter Lite
(RGMII_RXID, at803x PHY) and D-Link DSR-500N (RGMII, broadcom PHY).

Fixes: 3a4ce1a0c4b2 ("net: phy: at803x: disable delay only for RGMII mode")
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet-mdio.c
drivers/staging/octeon/ethernet.c
drivers/staging/octeon/octeon-ethernet.h