• Ansuel Smith's avatar
    net: phy: at803x: fix resume for QCA8327 phy · ba3c01ee
    Ansuel Smith authored
    From Documentation phy resume triggers phy reset and restart
    auto-negotiation. Add a dedicated function to wait reset to finish as
    it was notice a regression where port sometime are not reliable after a
    suspend/resume session. The reset wait logic is copied from phy_poll_reset.
    Add dedicated suspend function to use genphy_suspend only with QCA8337
    phy and set only additional debug settings for QCA8327. With more test
    it was reported that QCA8327 doesn't proprely support this mode and
    using this cause the unreliability of the switch ports, especially the
    malfunction of the port0.
    
    Fixes: 15b9df4e ("net: phy: at803x: add resume/suspend function to qca83xx phy")
    Signed-off-by: default avatarAnsuel Smith <ansuelsmth@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    ba3c01ee
at803x.c 39.7 KB