]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: bgmac: add NS2 support
authorJon Mason <jon.mason@broadcom.com>
Fri, 4 Nov 2016 05:11:01 +0000 (01:11 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2016 18:11:22 +0000 (13:11 -0500)
commit3e4a94aad7b06df6ff7f1d28c6eeac14bc600458
tree82315d28619398db2804325ceee7504bf9545f09
parent916ada6c3eca2394ce84feeb25ebf13bbc0ebf5e
net: ethernet: bgmac: add NS2 support

Add support for the variant of amac hardware present in the Broadcom
Northstar2 based SoCs.  Northstar2 requires an additional register to be
configured with the port speed/duplexity (NICPM).  This can be added to
the link callback to hide it from the instances that do not use this.
Also, clearing of the pending interrupts on init is required due to
observed issues on some platforms.

Signed-off-by: Jon Mason <jon.mason@broadcom.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac-platform.c
drivers/net/ethernet/broadcom/bgmac.c
drivers/net/ethernet/broadcom/bgmac.h