]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: Add number of internal PHYs
authorAndrew Lunn <andrew@lunn.ch>
Sat, 17 Mar 2018 19:32:04 +0000 (20:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Mar 2018 20:52:58 +0000 (16:52 -0400)
commitaa92ad7aa9ac3b8f4b499bd4f15f1235984d9f9e
treebc99d461712691052bda8fba067e9626df6d2947
parent09bbd11d9dae6b2e1671e788f8d7981661ba723f
net: dsa: mv88e6xxx: Add number of internal PHYs

Add to the info structure the number of internal PHYs, if they generate
interrupts. Some of the older generations of switches have internal
PHYs, but no interrupt registers. In this case, set the count to zero.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/chip.h