From: Mattia Barbon <mbarbon@xxxxxxxx> On IGEP boards, the scratch register reports 0x8000 when there is no firmware running instead of 0x0000. Signed-off-by: Mattia Barbon <mbarbon@xxxxxxxx> Signed-off-by: Steve deRosier <steve@xxxxxxxxxxx> --- drivers/net/wireless/libertas_tf/if_sdio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/libertas_tf/if_sdio.c b/drivers/net/wireless/libertas_tf/if_sdio.c index d1624e3..d3d101e 100644 --- a/drivers/net/wireless/libertas_tf/if_sdio.c +++ b/drivers/net/wireless/libertas_tf/if_sdio.c @@ -738,7 +738,7 @@ static int if_sdio_prog_firmware(struct if_sdio_card *card) if (scratch == IF_SDIO_FIRMWARE_OK) { lbtf_deb_sdio("firmware already loaded\n"); goto success; - } else if ((card->model == IF_SDIO_MODEL_8686) && (scratch > 0)) { + } else if ((card->model == IF_SDIO_MODEL_8686) && ((scratch & 0x7fff) != 0)) { lbtf_deb_sdio("firmware may be running\n"); if( lbtf_reset_fw == 0 ) { goto success; -- 1.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html