• Jose Abreu's avatar
    net: stmmac: Run HWIF Quirks after getting HW caps · 7cfde0af
    Jose Abreu authored
    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: default avatarJose Abreu <joabreu@synopsys.com>
    Fixes: 5f0456b4 ("net: stmmac: Implement logic to automatically select HW Interface")
    Reported-by: default avatarDinh 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: default avatarDavid S. Miller <davem@davemloft.net>
    7cfde0af
hwif.c 5.98 KB