]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: add chip-wide ops
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Thu, 29 Sep 2016 16:22:00 +0000 (12:22 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Sep 2016 05:26:00 +0000 (01:26 -0400)
commit9364f7c711e7ca1fc045c092220f41e590fa471b
tree9d8d9ee013c68baadd5e0be47ca699508cd30ec6
parent9acf7097d6413f52354e6d05899f517e67fe1c90
net: dsa: mv88e6xxx: add chip-wide ops

Introduce a mv88e6xxx_ops structure to describe supported chip-wide
functions and assign the correct variant to the chip models.

For the moment, add only PHY access routines. This allows to get rid of
the PHY ops structures and the usage of PHY flags.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/mv88e6xxx.h