]> git.baikalelectronics.ru Git - kernel.git/commit
mscc.c: Add support for additional VSC PHYs
authorBryan Whitehead <Bryan.Whitehead@microchip.com>
Wed, 13 Nov 2019 16:33:15 +0000 (11:33 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Nov 2019 20:34:38 +0000 (12:34 -0800)
commit0a8befc1b0ac6fe8a6a7831a03e66c0daffc870a
tree8e788db3ead82ab5fb14774c0485ca0d5667356b
parentd75be0d5f824cba1d37b75fa93f5d1ae4b2746b2
mscc.c: Add support for additional VSC PHYs

Add support for the following VSC PHYs
VSC8504, VSC8552, VSC8572
VSC8562, VSC8564, VSC8575, VSC8582

Updates for v2:
Checked for NULL on input to container_of
Changed a large if else series to a switch statement.
Added a WARN_ON to make sure lowest nibble of mask is 0

Signed-off-by: Bryan Whitehead <Bryan.Whitehead@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mscc.c