Openwrt/target/linux
Pavel Kubelun a3454d1929 net: ar8216: prevent device duplication in ar8xxx_dev_list
Import from fd7b89dd46%5E%21/#F0
Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>

CHROMIUM: drivers: ar8216: prevent device duplication in ar8xxx_dev_list

If probe is called twice, once for PHY0 and a second time for PHY4,
the same switch device will be added twice to ar8xxx_dev_list, while
supposedly this list should have one element per hardware switch present
in the system.

While no negative impact have been observed, it does happen if a
platform instanciates these two PHYs from device-tree, as an example.

Change-Id: Iddcbdf7d4adacb0af01975b73f8e56b4582e894e
Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
Reviewed-on: https://chromium-review.googlesource.com/234790
Reviewed-by: Matthias Kaehlcke <mka@chromium.org>
Reviewed-by: Toshi Kikuchi <toshik@chromium.org>
Tested-by: Toshi Kikuchi <toshik@chromium.org>
2016-12-01 15:47:43 +01:00
..
adm5120
adm8668
apm821xx kernel: bump to 4.4.35 2016-11-29 21:12:08 +01:00
ar7
ar71xx ar71xx: fix syntax error in /lib/ar71xx.sh 2016-11-29 19:53:47 +01:00
arc770
archs38
arm64
at91
ath25
au1000
bcm53xx kernel: bump to 4.4.35 2016-11-29 21:12:08 +01:00
brcm47xx kernel: bump to 4.4.35 2016-11-29 21:12:08 +01:00
brcm63xx brcm63xx: Livebox 1: add userspace board support 2016-11-21 18:40:15 +01:00
brcm2708
cns3xxx
gemini
generic net: ar8216: prevent device duplication in ar8xxx_dev_list 2016-12-01 15:47:43 +01:00
imx6
ipq806x ipq806x: refactor rpm clock controller patches 2016-12-01 15:47:43 +01:00
ixp4xx
kirkwood
lantiq kernel: bump to 4.4.35 2016-11-29 21:12:08 +01:00
layerscape kernel: bump to 4.4.35 2016-11-29 21:12:08 +01:00
malta
mcs814x
mediatek
mpc85xx
mvebu mvebu: fix typo in image metadata support 2016-11-27 15:34:22 +01:00
mxs
octeon
omap
omap24xx
orion
oxnas
ppc40x
ppc44x
ramips treewide: fix button keys codes used in dts 2016-11-27 15:34:23 +01:00
rb532
realview
sunxi sunxi: enable CONFIG_VHOST_NET like on x86 2016-11-24 13:25:16 +01:00
uml uml: clean up the kernel config and add squashfs+ext4/f2fs support 2016-11-24 12:53:18 +01:00
x86
xburst
zynq
Makefile