]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: rtl8365mb: add GMII as user port mode
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Wed, 15 Dec 2021 03:41:28 +0000 (00:41 -0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Dec 2021 10:51:11 +0000 (10:51 +0000)
commit772dfacfdc9f82aec3607f5a3c32fab5617b869e
tree5c7eb3acd25a0fd888b5921d2bc01f275e9a00f0
parent79e4082b066419f92b73ddbcec515eaf3acc0367
net: dsa: rtl8365mb: add GMII as user port mode

Recent net-next fails to initialize ports with:

 realtek-smi switch: phy mode gmii is unsupported on port 0
 realtek-smi switch lan5 (uninitialized): validation of gmii with
 support 0000000,00000000,000062ef and advertisement
 0000000,00000000,000062ef failed: -22
 realtek-smi switch lan5 (uninitialized): failed to connect to PHY:
 -EINVAL
 realtek-smi switch lan5 (uninitialized): error -22 setting up PHY
 for tree 1, switch 0, port 0

Current net branch(b8b633b583f983f0d10750e349f3ad209d13a048) is not
affected.

I also noticed the same issue before with older versions but using
a MDIO interface driver, not realtek-smi.

Tested-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/rtl8365mb.c