swconfig: add (PHY) generic helper setting port link
authorrmilecki <rmilecki@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 3 Feb 2016 09:33:38 +0000 (09:33 +0000)
committerrmilecki <rmilecki@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 3 Feb 2016 09:33:38 +0000 (09:33 +0000)
commitd3066aac393e68dde7dfe37440e862088796f21d
tree42e8c98ea41e9279da12f1937941487a6153f235
parentee4367a9e87b822a85e8a012b1ce1cc76356f8f0
swconfig: add (PHY) generic helper setting port link

It's quite common for switches to have PHY per port so adding a generic
helper setting link state will help many drivers. It just needs an API
to access PHYs which this patch also adds.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48621 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/swconfig.c
target/linux/generic/files/include/linux/switch.h