]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: allow switch drivers to specify phy_device::dev_flags
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 19 Sep 2014 20:07:54 +0000 (13:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Sep 2014 20:27:07 +0000 (16:27 -0400)
commitfafea7f038898b025a3adde65f69a73a053b4100
tree2769e45763a0e1da6c4550d33259ae2635efc16c
parent1c5b7f35f94100c0cb71865fc2a62e1c694a44b7
net: dsa: allow switch drivers to specify phy_device::dev_flags

Some switch drivers (e.g: bcm_sf2) may have to communicate specific
workarounds or flags towards the PHY device driver. Allow switches
driver to be delegated that task by introducing a get_phy_flags()
callback which will do just that.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/dsa.h
net/dsa/slave.c