• Michael Walle's avatar
    net: phy: icplus: fix paged register access · f9bc51e6
    Michael Walle authored
    Registers >= 16 are paged. Be sure to set the page. It seems this was
    working for now, because the default is correct for the registers used
    in the driver at the moment. But this will also assume, nobody will
    change the page select register before linux is started. The page select
    register is _not_ reset with a soft reset of the PHY.
    
    To ease the function reuse between the non-paged register space of the
    IP101A and the IP101G, add noop read_page()/write_page() callbacks so
    the IP101G functions can also be used for the IP101A.
    Signed-off-by: default avatarMichael Walle <michael@walle.cc>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    f9bc51e6
icplus.c 11.3 KB