Skip to content
Commit 4124b131 authored by Anthony Felice's avatar Anthony Felice Committed by Greg Kroah-Hartman
Browse files

net: tc35815: Fix phydev supported/advertising mask

[ Upstream commit 4b5b71f7 ]

Commit 3c1bcc86 ("net: ethernet: Convert phydev advertize and
supported from u32 to link mode") updated ethernet drivers to use a
linkmode bitmap. It mistakenly dropped a bitwise negation in the
tc35815 ethernet driver on a bitmask to set the supported/advertising
flags.

Found by Anthony via code inspection, not tested as I do not have the
required hardware.

Fixes: 3c1bcc86

 ("net: ethernet: Convert phydev advertize and supported from u32 to link mode")
Signed-off-by: default avatarAnthony Felice <tony.felice@timesys.com>
Reviewed-by: default avatarAkshay Bhat <akshay.bhat@timesys.com>
Reviewed-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7bbf73e9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment