From: Stefan Roese <s...@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 <s...@denx.de> Applied and queued up for -stable, thanks.