]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: add port base address to info
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 20 Jun 2016 17:14:10 +0000 (13:14 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 07:58:30 +0000 (03:58 -0400)
commitbdd8e3855d2dc8e5c61c45dbb1b9b6b9b2f7cba0
tree1a9af6d9f5796e3169d5941a08f7db16f6eb8e63
parent5ff0a4eac32a41a6996216ff49aee4b828edb209
net: dsa: mv88e6xxx: add port base address to info

The switch ID is located at address 0x3 of every Port Registers bank.

But not all Marvell switches have their Port Registers SMI Addresses
starting at 0x10. 88E6060 starts at 0x8 and 88E6390 starts at 0x0.

Add this data in the info structure and use it in the detection code.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx.c
drivers/net/dsa/mv88e6xxx.h