net: macb: Not all the GEM are gigabit capable
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Wed, 16 Dec 2015 13:50:34 +0000 (14:50 +0100)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Wed, 27 Jan 2016 12:58:58 +0000 (13:58 +0100)
commit75b03cf14ccbe2371cd11e410238fff0a02e72b5
treeaa216a04ea5393d68654c96bb69eb1c3f022225c
parentb4670a0c2bb9fd0a141436626d1853f995c8ed54
net: macb: Not all the GEM are gigabit capable

During the initialization of PHY the gigabit bit capable is set if the
controller is a GEM. However, for sama5d2 and sama5d4, the GEM is
configured to support only 10/100.

Improperly setting the GBE capability leads to an unresponsive MAC
controller. This patch fixes this behavior allowing using the gmac with
these SoCs.

Suggested-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Andreas Bießmann <andreas.devel@googlemail.com>
[fixed minor checkpatch warning]
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
drivers/net/macb.c