]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: gvp11: Convert m68k WD33C93 drivers to DMA API
authorMichael Schmitz <schmitzmic@gmail.com>
Thu, 30 Jun 2022 03:33:02 +0000 (15:33 +1200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jul 2022 21:01:22 +0000 (17:01 -0400)
commitffa3f15d54cfd5ba9be0fb6d393776fa53fc5e06
tree701538f7d4c28875204e3cdf8908843c5f742ef9
parentfaafeec664d41a9350917a7d4789353e72d5c778
scsi: gvp11: Convert m68k WD33C93 drivers to DMA API

Use dma_map_single() for gvp11 driver (leave bounce buffer logic
unchanged).

Use dma_set_mask_and_coherent() to avoid explicit cache flushes.

Compile-tested only.

CC: linux-scsi@vger.kernel.org
Link: https://lore.kernel.org/r/6d1d88ee-1cf6-c735-1e6d-bafd2096e322@gmail.com
Link: https://lore.kernel.org/r/20220630033302.3183-4-schmitzmic@gmail.com
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
--

Changes from v1:

Arnd Bergmann:
- reorder bounce buffer copy and dma mapping
drivers/scsi/gvp11.c