diff options
Diffstat (limited to 'drivers/scsi/aacraid/rx.c')
-rw-r--r-- | drivers/scsi/aacraid/rx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/aacraid/rx.c b/drivers/scsi/aacraid/rx.c index 73eef3dc5dc6..a08bbf1fd76c 100644 --- a/drivers/scsi/aacraid/rx.c +++ b/drivers/scsi/aacraid/rx.c | |||
@@ -465,7 +465,7 @@ static int aac_rx_restart_adapter(struct aac_dev *dev, int bled) | |||
465 | u32 var; | 465 | u32 var; |
466 | 466 | ||
467 | if (!(dev->supplement_adapter_info.SupportedOptions2 & | 467 | if (!(dev->supplement_adapter_info.SupportedOptions2 & |
468 | le32_to_cpu(AAC_OPTION_MU_RESET)) || (bled >= 0) || (bled == -2)) { | 468 | AAC_OPTION_MU_RESET) || (bled >= 0) || (bled == -2)) { |
469 | if (bled) | 469 | if (bled) |
470 | printk(KERN_ERR "%s%d: adapter kernel panic'd %x.\n", | 470 | printk(KERN_ERR "%s%d: adapter kernel panic'd %x.\n", |
471 | dev->name, dev->id, bled); | 471 | dev->name, dev->id, bled); |
@@ -549,7 +549,9 @@ int _aac_rx_init(struct aac_dev *dev) | |||
549 | dev->OIMR = status = rx_readb (dev, MUnit.OIMR); | 549 | dev->OIMR = status = rx_readb (dev, MUnit.OIMR); |
550 | if ((((status & 0x0c) != 0x0c) || aac_reset_devices || reset_devices) && | 550 | if ((((status & 0x0c) != 0x0c) || aac_reset_devices || reset_devices) && |
551 | !aac_rx_restart_adapter(dev, 0)) | 551 | !aac_rx_restart_adapter(dev, 0)) |
552 | ++restart; | 552 | /* Make sure the Hardware FIFO is empty */ |
553 | while ((++restart < 512) && | ||
554 | (rx_readl(dev, MUnit.OutboundQueue) != 0xFFFFFFFFL)); | ||
553 | /* | 555 | /* |
554 | * Check to see if the board panic'd while booting. | 556 | * Check to see if the board panic'd while booting. |
555 | */ | 557 | */ |