diff options
author | Hannes Reinecke <hare@suse.de> | 2014-11-24 09:37:27 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-11-24 10:13:16 -0500 |
commit | eeea2f9c2f2ecc5f3217edcacc95817047b143c2 (patch) | |
tree | 30ae59b8af6754aca843d83a334f040459f1a031 /drivers/scsi/am53c974.c | |
parent | 6df388f2d549d3a2a7ad58b632d2ecd25fc0ff3f (diff) |
esp_scsi: correctly detect am53c974
The am53c974 returns the same ID as the FAS236, but implements
things slightly differently. So detect the am53c974 by checking
for ESP_CONFIG4 register.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/am53c974.c')
-rw-r--r-- | drivers/scsi/am53c974.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/am53c974.c b/drivers/scsi/am53c974.c index a42e8db057a4..6e88e38bd2a4 100644 --- a/drivers/scsi/am53c974.c +++ b/drivers/scsi/am53c974.c | |||
@@ -368,6 +368,8 @@ static void dc390_check_eeprom(struct esp *esp) | |||
368 | } | 368 | } |
369 | esp->scsi_id = EEbuf[DC390_EE_ADAPT_SCSI_ID]; | 369 | esp->scsi_id = EEbuf[DC390_EE_ADAPT_SCSI_ID]; |
370 | esp->num_tags = 2 << EEbuf[DC390_EE_TAG_CMD_NUM]; | 370 | esp->num_tags = 2 << EEbuf[DC390_EE_TAG_CMD_NUM]; |
371 | if (EEbuf[DC390_EE_MODE2] & DC390_EE_MODE2_ACTIVE_NEGATION) | ||
372 | esp->config4 |= ESP_CONFIG4_RADE | ESP_CONFIG4_RAE; | ||
371 | } | 373 | } |
372 | 374 | ||
373 | static int pci_esp_probe_one(struct pci_dev *pdev, | 375 | static int pci_esp_probe_one(struct pci_dev *pdev, |