]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: socfpga: add additional ocp reset line for Stratix10
authorDinh Nguyen <dinguyen@kernel.org>
Tue, 19 Jun 2018 15:35:38 +0000 (10:35 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Jun 2018 05:34:26 +0000 (14:34 +0900)
commite9b5527c5e995e97a81d66eb4589ca5e44b74bca
treef3199c5520ea0e318526763c4386abe40725ed7b
parenta50b9e4e04800a85bcc9d163f88b4e36dc4350df
net: stmmac: socfpga: add additional ocp reset line for Stratix10

The Stratix10 platform has an additional reset line, OCP(Open Core Protocol),
that also needs to get deasserted for the stmmac ethernet controller to work.
Thus we need to update the Kconfig to include ARCH_STRATIX10 in order to build
dwmac-socfpga.

Also, remove the redundant check for the reset controller pointer. The
reset driver already checks for the pointer and returns 0 if the pointer
is NULL.

Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/Kconfig
drivers/net/ethernet/stmicro/stmmac/dwmac-socfpga.c