scsi: esp_scsi: De-duplicate PIO routines
authorFinn Thain <fthain@telegraphics.com.au>
Tue, 16 Oct 2018 05:31:25 +0000 (16:31 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 18 Oct 2018 01:38:20 +0000 (21:38 -0400)
commit53dce332db507a2bd9797adc938fa293d1f1acc6
treeb8eef76f487785808d03ad882d87b0c8e196bfd7
parent8bca2143335116af838305440d94539367382555
scsi: esp_scsi: De-duplicate PIO routines

As a temporary measure, the code to implement PIO transfers was
duplicated in zorro_esp and mac_esp. Now that it has stabilized move the
common code into the core driver but don't build it unless needed.

This replaces the inline assembler with more portable writesb() calls.
Optimizing the m68k writesb() implementation is a separate patch.

[mkp: applied by hand]

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Tested-by: Stan Johnson <userm57@yahoo.com>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/Kconfig
drivers/scsi/esp_scsi.c
drivers/scsi/esp_scsi.h
drivers/scsi/mac_esp.c
drivers/scsi/zorro_esp.c