]> 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)
commit64ff162fa5ee32c71839b1699fa02721ffbcfce1
treecdd84b48800a4f3816bc662fe6a08d4d0acc88ed
parent814c6fdc16dcc08219b5db36345678af8a35fae0
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