esp_scsi: correctly detect am53c974
authorHannes Reinecke <hare@suse.de>
Mon, 24 Nov 2014 14:37:27 +0000 (15:37 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 24 Nov 2014 15:13:16 +0000 (16:13 +0100)
commiteeea2f9c2f2ecc5f3217edcacc95817047b143c2
tree30ae59b8af6754aca843d83a334f040459f1a031
parent6df388f2d549d3a2a7ad58b632d2ecd25fc0ff3f
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>
drivers/scsi/am53c974.c
drivers/scsi/esp_scsi.c
drivers/scsi/esp_scsi.h