]> 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)
commitedb75cb880706b522856b93a4cedd08d501cea46
tree9d8d9ee013c68baadd5e0be47ca699508cd30ec6
parentfe37de6591f4e197ba48edafea15e9abd1afa6b4
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