Skip to content

Commit

Permalink
Add udelay to A100U2W SCSI driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mikulas Patocka authored and Linus Torvalds committed Jul 15, 2008
1 parent 987ff95 commit 56d387e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/a100u2w.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 56d387e

Please sign in to comment.