Skip to content
Commit 6a119745 authored by Hubert Chaumette's avatar Hubert Chaumette Committed by David S. Miller
Browse files

net/phy: micrel: fix bugged test on device tree loading for ksz9021



In ksz9021_load_values_from_of() val2 to val4 aren't tested against their
initialization value.
This causes the test to always succeed, and this value to be used as if it
was loaded from the devicetree instead of being ignored, in case of a
missing/invalid property in the ethernet OF device node.
As a result, the value "0" is written to the relevant registers.

Change the conditions to test against the right initialization value.

Signed-off-by: default avatarHubert Chaumette <hchaumette@adeneo-embedded.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6a51b5e4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment