]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Run HWIF Quirks after getting HW caps
authorJose Abreu <Jose.Abreu@synopsys.com>
Fri, 15 Jun 2018 15:17:27 +0000 (16:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jun 2018 16:38:52 +0000 (09:38 -0700)
commit7db7b6bacc43fc9b8c5cd3c46da9889d96faa5fe
tree596207da1c3aba8a6cd0cb7e22065aeaed1faa62
parent62e62c79c6021cd2471d90daa0d3ae45f29d5bec
net: stmmac: Run HWIF Quirks after getting HW caps

Currently we were running HWIF quirks before getting HW capabilities.
This is not right because some HWIF callbacks depend on HW caps.

Lets save the quirks callback and use it in a later stage.

This fixes Altera socfpga.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Fixes: 9079ee5ebab1 ("net: stmmac: Implement logic to automatically select HW Interface")
Reported-by: Dinh Nguyen <dinh.linux@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: Vitor Soares <soares@synopsys.com>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: Dinh Nguyen <dinh.linux@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/hwif.c
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c