]> 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)
commit29c5b9ed22e681501ec399fd8f419f7b45e3882c
treec08aa217d9c95b10fec4d1b788360cfcfc360afb
parent6b048e0587e69ffd14ffebea5c67f3089d9a44e7
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