• Russell King's avatar
    [PATCH] smc91x: fix bank mismatch · e5254244
    Russell King authored
    The smc91x driver relies upon register bank 2 being selected whenever
    the interrupt handler is called.  This isn't always so, especially if
    we have a link change event during PHY configuration.
    
    This results in register bank 0 being selected when the interrupt
    handler is called, causing the wrong registers to be read for the
    IRQ mask and status.  In turn, this causes us to spin with a
    permanently asserted IRQ.
    
    The patch ensures that smc_phy_configure always exits with register
    bank 2 selected.
    Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
    Signed-off-by: default avatarNicolas Pitre <nico@cam.org>
    Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
    e5254244
smc91x.c 59.7 KB