]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Add udelay to A100U2W SCSI driver
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 15 Jul 2008 21:16:38 +0000 (17:16 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Jul 2008 21:30:56 +0000 (14:30 -0700)
udelay is required on Sun Ultra 5.

I don't know any reason or explanation for this, it was found purely
experimentally.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/scsi/a100u2w.c

index 1dd0fcfe1d7056812dfa603f4ba675b24a9e4daa..1e8bdd45783462ecda77c3413bfaab8b4aafe813 100644 (file)
@@ -401,6 +401,7 @@ static u8 orc_load_firmware(struct orc_host * host)
 
        /* Copy the code from the BIOS to the SRAM */
 
+       udelay(500);    /* Required on Sun Ultra 5 ... 350 -> failures */
        bios_addr = (u16) le32_to_cpu(data32);  /* FW code locate at BIOS address + ? */
        for (i = 0, data32_ptr = (u8 *) & data32;       /* Download the code    */
             i < 0x1000;        /* Firmware code size = 4K      */