• Antonio Borneo's avatar
    net: stmmac: fix disabling flexible PPS output · 570ed400
    Antonio Borneo authored
    [ Upstream commit 520cf600 ]
    
    Accordingly to Synopsys documentation [1] and [2], when bit PPSEN0
    in register MAC_PPS_CONTROL is set it selects the functionality
    command in the same register, otherwise selects the functionality
    control.
    Command functionality is required to either enable (command 0x2)
    and disable (command 0x5) the flexible PPS output, but the bit
    PPSEN0 is currently set only for enabling.
    
    Set the bit PPSEN0 to properly disable flexible PPS output.
    
    Tested on STM32MP15x, based on dwmac 4.10a.
    
    [1] DWC Ethernet QoS Databook 4.10a October 2014
    [2] DWC Ethernet QoS Databook 5.00a September 2017
    Signed-off-by: default avatarAntonio Borneo <antonio.borneo@st.com>
    Fixes: 9a8a02c9 ("net: stmmac: Add Flexible PPS support")
    Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
    Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
    570ed400
dwmac5.c 15.3 KB