]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: esp_scsi: move dma mapping into the core code
authorChristoph Hellwig <hch@lst.de>
Sat, 13 Oct 2018 07:26:27 +0000 (09:26 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 16 Oct 2018 03:00:38 +0000 (23:00 -0400)
commit71a0aa28c3741381525275cccb0c39fc4456fc96
treec08aa217d9c95b10fec4d1b788360cfcfc360afb
parenta143245652001772772c453e3cff3e35849cee3b
scsi: esp_scsi: move dma mapping into the core code

Except for the mac_esp driver, which uses PIO or pseudo DMA, all drivers
share the same dma mapping calls.  Move the dma mapping into the core
code using the scsi_dma_map / scsi_dma_unmap helpers, with a special
identify mapping variant triggered off a new ESP_FLAG_NO_DMA_MAP flag
for mac_esp.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/am53c974.c
drivers/scsi/esp_scsi.c
drivers/scsi/esp_scsi.h
drivers/scsi/jazz_esp.c
drivers/scsi/mac_esp.c
drivers/scsi/sun3x_esp.c
drivers/scsi/sun_esp.c
drivers/scsi/zorro_esp.c