]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: pass compatible info
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Mon, 20 Jun 2016 17:14:09 +0000 (13:14 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jun 2016 07:58:30 +0000 (03:58 -0400)
commit5ff0a4eac32a41a6996216ff49aee4b828edb209
tree8cad9d51033709b6a31248074f31f1cfd85cfee2
parent69a52da1c16b3d5210ba1fb3da025e0de4829311
net: dsa: mv88e6xxx: pass compatible info

After allocating the chip structure, pass it a compatible info pointer.

The compatible info structure will be used later to describe how to
access the switch registers and where to read the switch ID.

For the standard MDIO probe, get it from the device node data. For the
legacy DSA driver probing, pass it the 88E6085 info.

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