linux/drivers/net/ethernet/renesas
Thomas Petazzoni 2aab6b40b0 net: sh_eth: do not advertise Gigabit capabilities when not available
Not all variants of the sh_eth hardware have Gigabit
support. Unfortunately, the current driver doesn't tell the PHY about
the limited MAC capabilities. Due to this, if you have a Gigabit
capable PHY, the PHY will advertise its Gigabit capability and
establish a link at 1Gbit/s, even though the MAC doesn't support it.

In order to avoid this, we use the recently introduced
phy_set_max_speed() to tell the PHY to not advertise speed higher than
100 MBit/s.

Tested on a SH7786 platform, with a Gigabit PHY.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-11 11:53:55 -05:00
..
Kconfig ptp_clock: Allow for it to be optional 2016-11-16 09:26:34 +01:00
Makefile
ravb_main.c ravb: Consolidate clock handling 2017-10-12 23:00:50 -07:00
ravb_ptp.c
ravb.h ravb: add wake-on-lan support via magic packet 2017-08-01 17:54:38 -07:00
sh_eth.c net: sh_eth: do not advertise Gigabit capabilities when not available 2017-12-11 11:53:55 -05:00
sh_eth.h sh_eth: add missing EESIPR bits 2017-01-30 22:05:43 -05:00