]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: icplus: split IP101A/G driver
authorMichael Walle <michael@walle.cc>
Thu, 11 Feb 2021 07:47:46 +0000 (08:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2021 21:53:25 +0000 (13:53 -0800)
commiteca131861cdfabca00dc930b682d2422203deb22
treecdd84b48800a4f3816bc662fe6a08d4d0acc88ed
parent980d89d08b65a59047e816f68550cb4f37c8aa03
net: phy: icplus: split IP101A/G driver

Unfortunately, the IP101A and IP101G share the same PHY identifier.
While most of the functions are somewhat backwards compatible, there is
for example the APS_EN bit on the IP101A but on the IP101G this bit
reserved. Also, the IP101G has many more functionalities.

Deduce the model by accessing the page select register which - according
to the datasheet - is not available on the IP101A. If this register is
writable, assume we have an IP101G.

Split the combined IP101A/G driver into two separate drivers.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/icplus.c