]> git.baikalelectronics.ru Git - kernel.git/commit
esp_scsi: let DMA driver provide a config2 value
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 24 Nov 2014 14:37:28 +0000 (15:37 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 24 Nov 2014 15:13:17 +0000 (16:13 +0100)
commit82b7471f149e0324af1bb5533f1268ed85b39000
tree8511f8a42a0b58e587c22f0288b1f1b5c7c2d81b
parentfbdeed25f25a2d8c5a2e78a0e0fb889e13b9894c
esp_scsi: let DMA driver provide a config2 value

On PCscsi, the FENAB configuration also enables 24-bit DMA
transfer lengths (and provides the chip id in TCHI after reset).
We want to be able to enable this parameter from the DMA driver.

Check if the caller of scsi_esp_register provided a value for esp->config2.
If this is the case, assume this is not an ESP100, skip the detection
phase and leave esp->config2 untouched.  It will be used in esp_reset_esp.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/esp_scsi.c