tmp_suning_uos_patched/drivers/of
Florian Fainelli 5a8d7f126c of: of_mdio: Correct loop scanning logic
Commit 209c65b61d ("drivers/of/of_mdio.c:fix of_mdiobus_register()")
introduced a break of the loop on the premise that a successful
registration should exit the loop. The premise is correct but not to
code, because rc && rc != -ENODEV is just a special error condition,
that means we would exit the loop even with rc == -ENODEV which is
absolutely not correct since this is the error code to indicate to the
MDIO bus layer that scanning should continue.

Fix this by explicitly checking for rc = 0 as the only valid condition
to break out of the loop.

Fixes: 209c65b61d ("drivers/of/of_mdio.c:fix of_mdiobus_register()")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-06-19 13:39:00 -07:00
..
unittest-data of: unittest: kmemleak in duplicate property update 2020-04-17 08:31:34 -05:00
address.c
base.c
device.c
dynamic.c of: of_detach_node() remove unneeded local return variable 2020-04-14 07:59:54 -05:00
fdt_address.c
fdt.c of/fdt: Remove redundant kbasename function call 2020-05-28 20:57:17 -06:00
irq.c
Kconfig
kobj.c of: Fix a refcounting bug in __of_attach_node_sysfs() 2020-05-27 19:30:25 -06:00
Makefile
of_mdio.c of: of_mdio: Correct loop scanning logic 2020-06-19 13:39:00 -07:00
of_net.c
of_numa.c
of_private.h
of_reserved_mem.c Devicetree updates for v5.8: 2020-06-04 20:11:25 -07:00
overlay.c of: overlay: kmemleak in dup_and_fixup_symbol_prop() 2020-04-17 08:31:34 -05:00
pdt.c
platform.c Driver core patches for 5.8-rc1 2020-06-07 10:53:36 -07:00
property.c of: property: Do not link to disabled devices 2020-04-28 12:47:47 -05:00
resolver.c
unittest.c of: unittest: kmemleak in duplicate property update 2020-04-17 08:31:34 -05:00