2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-29 15:43:59 +08:00
linux-next/drivers/net/ethernet/faraday
Benjamin Herrenschmidt 874b55bf62 ftgmac100: Rework MAC reset and init
The HW requires a full MAC reset when changing the speed.

Additionally the Aspeed documentation spells out that the
MAC needs to be reset twice with a 10us interval.

We thus move the speed setting and top level reset code
into a new ftgmac100_reset_and_config_mac() function which
handles both. Move the ring pointers initialization there
too in order to reflect the HW change.

Also reduce the timeout for the MAC reset as it shouldn't
take more than 300 clock cycles according to the doc.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-04-06 12:38:04 -07:00
..
ftgmac100.c ftgmac100: Rework MAC reset and init 2017-04-06 12:38:04 -07:00
ftgmac100.h net/faraday: Mask out PHYSTS_CHG interrupt 2016-09-22 03:31:14 -04:00
ftmac100.c drivers: net: ethernet: remove incorrect __exit markups 2017-03-02 14:33:49 -08:00
ftmac100.h
Kconfig drivers/net: remove all references to obsolete Ethernet-HOWTO 2015-06-23 06:50:35 -07:00
Makefile