]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
net: macb: fix default configuration for GMAC on AT91
authorNicolas Ferre <nicolas.ferre@atmel.com>
Thu, 10 Mar 2016 15:44:32 +0000 (16:44 +0100)
committerKamal Mostafa <kamal@canonical.com>
Wed, 13 Jul 2016 15:59:48 +0000 (08:59 -0700)
commitf37a54619aa3331e88bf0ad47f59d9b868c17086
tree430bc9532b5cc45c14cd0dbb9af2c52165d20ae8
parent4498429c6852c2563e089cc8f0ba2db308fc3b96
net: macb: fix default configuration for GMAC on AT91

BugLink: http://bugs.launchpad.net/bugs/1601952
[ Upstream commit 6bdaa5e9ed39b3b3328f35d218e8ad5a99cfc4d2 ]

On AT91 SoCs, the User Register (USRIO) exposes a switch to configure the
"Reduced" or "Traditional" version of the Media Independent Interface
(RMII vs. MII or RGMII vs. GMII).
As on the older EMAC version, on GMAC, this switch is set by default to the
non-reduced type of interface, so use the existing capability and extend it to
GMII as well. We then keep the current logic in the macb_init() function.

The capabilities of sama5d2, sama5d4 and sama5d3 GEM interface are updated in
the macb_config structure to be able to properly enable them with a traditional
interface (GMII or MII).

Reported-by: Romain HENRIET <romain.henriet@l-acoustics.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
[cyrille.pitchen@atmel.com: backported to 4.4.y]
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/net/ethernet/cadence/macb.c
drivers/net/ethernet/cadence/macb.h