openwrtv4/target/linux/generic/files/drivers/net/phy
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
..
b53 kernel: b53: force BCM531x5 port 5 link state if enabled 2016-09-08 23:03:46 +02:00
adm6996.c kernel: adm6996: set carrier status 2016-08-10 03:04:08 +02:00
adm6996.h treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
ar8216.c net: ar8216: prevent device duplication in ar8xxx_dev_list 2016-12-01 15:47:43 +01:00
ar8216.h treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
ar8327.c net: ar8327: replace sprintf() by scnprintf() 2016-12-01 15:47:43 +01:00
ar8327.h treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
ip17xx.c treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
mvsw61xx.c mvsw61xx: enable SerDes on 6176 if required 2016-09-26 13:04:04 +02:00
mvsw61xx.h mvsw61xx: enable SerDes on 6176 if required 2016-09-26 13:04:04 +02:00
mvswitch.c treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
mvswitch.h treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
psb6970.c unify extended vlan id swconfig attributes. AR8216 and PSB6970 used "pvid", IP17xx used "tag" and RTL8306 called it "vid". Change all to "vid" and annotate the description with the valid ID range. 2010-10-12 20:49:35 +00:00
rtl8306.c treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
rtl8366_smi.c strict_strtoul is obsolete, use kstrtoul instead 2013-07-27 09:23:18 +00:00
rtl8366_smi.h linux: generic: rtl836*: fix compilation with !CONFIG_OF 2012-12-15 13:32:02 +00:00
rtl8366rb.c generic: add port mirroring/monitoring capability to rtl8366rb switch 2013-06-04 13:25:52 +00:00
rtl8366s.c fix rtl8366s OF binding 2013-04-12 18:56:05 +00:00
rtl8367.c kernel: rtl8367(b): fix build error 2016-11-19 17:57:04 +01:00
rtl8367b.c kernel: rtl8367(b): fix build error 2016-11-19 17:57:04 +01:00
swconfig.c swconfig: revert the portmapping patches, they seem to cause a segfault 2016-08-16 10:20:01 +02:00
swconfig_leds.c switch: allow Ethernet port LEDs to show specific port speeds only 2016-02-25 13:31:26 +00:00