]> 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)
commite162fd3b65f9a52cca3704a0f8edf99e828999a2
treebc99d461712691052bda8fba067e9626df6d2947
parentda29001f58b9843b8dc4aa243509290a76c3e294
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