Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35055
b: refs/heads/master
c: 3e3c60e
h: refs/heads/master
i:
  35053: 1b39a13
  35051: 8acb092
  35047: f5949b8
  35039: db61f26
v: v3
  • Loading branch information
James Bottomley authored and James Bottomley committed Sep 23, 2006
1 parent 646e3a9 commit 0fbfc8e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 231839102b54512ced7d3ee7fc9b8bcf5e3b583b
refs/heads/master: 3e3c60e3a8c7013d55768aa7256bb5a7f66b0bb4
16 changes: 12 additions & 4 deletions trunk/drivers/scsi/aic7xxx/aic7xxx_osm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2539,15 +2539,23 @@ static void ahc_linux_set_iu(struct scsi_target *starget, int iu)
static void ahc_linux_get_signalling(struct Scsi_Host *shost)
{
struct ahc_softc *ahc = *(struct ahc_softc **)shost->hostdata;
u8 mode = ahc_inb(ahc, SBLKCTL);
u8 mode;

if (mode & ENAB40)
spi_signalling(shost) = SPI_SIGNAL_LVD;
else if (mode & ENAB20)
if (!(ahc->features & AHC_ULTRA2)) {
/* non-LVD chipset, may not have SBLKCTL reg */
spi_signalling(shost) =
ahc->features & AHC_HVD ?
SPI_SIGNAL_HVD :
SPI_SIGNAL_SE;
return;
}

mode = ahc_inb(ahc, SBLKCTL);

if (mode & ENAB40)
spi_signalling(shost) = SPI_SIGNAL_LVD;
else if (mode & ENAB20)
spi_signalling(shost) = SPI_SIGNAL_SE;
else
spi_signalling(shost) = SPI_SIGNAL_UNKNOWN;
}
Expand Down

0 comments on commit 0fbfc8e

Please sign in to comment.