[PATCH] net: macb: Properly handle phylink on at91sam9x

David Miller davem at davemloft.net
Tue Aug 4 19:05:03 EDT 2020


From: Stefan Roese <sr at denx.de>
Date: Tue,  4 Aug 2020 14:17:16 +0200

> I just recently noticed that ethernet does not work anymore since v5.5
> on the GARDENA smart Gateway, which is based on the AT91SAM9G25.
> Debugging showed that the "GEM bits" in the NCFGR register are now
> unconditionally accessed, which is incorrect for the !macb_is_gem()
> case.
> 
> This patch adds the macb_is_gem() checks back to the code
> (in macb_mac_config() & macb_mac_link_up()), so that the GEM register
> bits are not accessed in this case any more.
> 
> Fixes: 7897b071ac3b ("net: macb: convert to phylink")
> Signed-off-by: Stefan Roese <sr at denx.de>

Applied and queued up for -stable, thanks.



More information about the linux-arm-kernel mailing list