phy/marvell: disable 4-port phys
authorIan Campbell <ijc@hellion.org.uk>
Wed, 20 Nov 2013 08:30:14 +0000 (08:30 +0000)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 6 Feb 2021 08:23:52 +0000 (08:23 +0000)
commit0e8718dc8c17893053349d067815cefcd9f2dd8c
treee7ce6bec4293312ad77c1aee74f7df6f1de9287b
parentabd7b73a71baea8627a524cb593bca471fd6855e
phy/marvell: disable 4-port phys

Bug-Debian: https://bugs.debian.org/723177
Forwarded: http://thread.gmane.org/gmane.linux.debian.devel.bugs.general/1107774/

The Marvell PHY was originally disabled because it can cause networking
failures on some systems. According to Lennert Buytenhek this is because some
of the variants added did not share the same register layout. Since the known
cases are all 4-ports disable those variants (indicated by a 4 in the
penultimate position of the model name) until they can be audited for
correctness.

[bwh: Also #if-out the init functions for these PHYs to avoid
 compiler warnings]

Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name disable-some-marvell-phys.patch
drivers/net/phy/marvell.c