]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: Replace mii_bus with a generic host device
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 15 Sep 2014 17:00:27 +0000 (13:00 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Sep 2014 21:24:20 +0000 (17:24 -0400)
commit1a1fa2baa2ede313ab64170799778fcdfeb95f53
tree348e36396eda758e021a8473b330c19cd571e76f
parentcab3fa4f5bccba1538193fe9394c1bae257a439e
dsa: Replace mii_bus with a generic host device

This change makes it so that instead of passing and storing a mii_bus we
instead pass and store a host_dev.  From there we can test to determine the
exact type of device, and can verify it is the correct device for our switch.

So for example it would be possible to pass a device pointer from a pci_dev
and instead of checking for a PHY ID we could check for a vendor and/or device
ID.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm/plat-orion/common.c
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/mv88e6060.c
drivers/net/dsa/mv88e6123_61_65.c
drivers/net/dsa/mv88e6131.c
drivers/net/dsa/mv88e6171.c
drivers/net/dsa/mv88e6xxx.c
include/net/dsa.h
net/dsa/dsa.c
net/dsa/slave.c