linux-sg2042/drivers/net/ethernet/cadence
Stefan Roese f7ba7dbf4f net: macb: Properly handle phylink on at91sam9x
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: 7897b071ac ("net: macb: convert to phylink")
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Reto Schneider <reto.schneider@husqvarnagroup.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-08-04 16:04:17 -07:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
macb.h net: macb: WoL support for GEM type of Ethernet controller 2020-07-20 17:01:45 -07:00
macb_main.c net: macb: Properly handle phylink on at91sam9x 2020-08-04 16:04:17 -07:00
macb_pci.c Replace HTTP links with HTTPS ones: ATMEL MACB ETHERNET DRIVER 2020-07-08 10:35:09 -07:00
macb_ptp.c Replace HTTP links with HTTPS ones: ATMEL MACB ETHERNET DRIVER 2020-07-08 10:35:09 -07:00