aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2006-09-17 01:38:15 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-09-23 18:48:11 -0400
commitcf2b5d3fcab77a9390293920ec5b49e67eced200 (patch)
tree63f85032f1a5a3423997880d3c9033f1928e90e1
parent3e3c60e3a8c7013d55768aa7256bb5a7f66b0bb4 (diff)
[SCSI] aic7xxx: pause sequencer before touching SBLKCTL
Some cards need to pause the sequencer before the SBLKCTL register is touched. This fixes a PCI related oops seen on powerpc macs with this card caused by trying to ascertain the bus signalling before beginning domain validation. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_osm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c
index 0b3c01ac4259..64c8b88a429f 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_osm.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c
@@ -2539,6 +2539,7 @@ static void ahc_linux_set_iu(struct scsi_target *starget, int iu)
2539static void ahc_linux_get_signalling(struct Scsi_Host *shost) 2539static void ahc_linux_get_signalling(struct Scsi_Host *shost)
2540{ 2540{
2541 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata; 2541 struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata;
2542 unsigned long flags;
2542 u8 mode; 2543 u8 mode;
2543 2544
2544 if (!(ahc->features & AHC_ULTRA2)) { 2545 if (!(ahc->features & AHC_ULTRA2)) {
@@ -2550,7 +2551,11 @@ static void ahc_linux_get_signalling(struct Scsi_Host *shost)
2550 return; 2551 return;
2551 } 2552 }
2552 2553
2554 ahc_lock(ahc, &flags);
2555 ahc_pause(ahc);
2553 mode = ahc_inb(ahc, SBLKCTL); 2556 mode = ahc_inb(ahc, SBLKCTL);
2557 ahc_unpause(ahc);
2558 ahc_unlock(ahc, &flags);
2554 2559
2555 if (mode & ENAB40) 2560 if (mode & ENAB40)
2556 spi_signalling(shost) = SPI_SIGNAL_LVD; 2561 spi_signalling(shost) = SPI_SIGNAL_LVD;