Commit bfaa4a0ce1bb ("scsi: gvp11: Remove unused gvp11_setup() function") removed the unused gvp11_setup() which had allowed to override the default DMA transfer mask defined for GVP II SCSI boards on Amiga. There now is no way to set a non-default DMA mask on these boards. Introduce a module parameter to allow users to override the default DMA mask for the gvp11 driver. Fixes: bfaa4a0ce1bb ("scsi: gvp11: Remove unused gvp11_setup() function") Link: https://lore.kernel.org/r/20230810141947.1236730-12-arnd@xxxxxxxxxx Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Cc: Arnd Bergmann <arnd@xxxxxxxx> Signed-off-by: Michael Schmitz <schmitzmic@xxxxxxxxx> --- drivers/scsi/gvp11.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/gvp11.c b/drivers/scsi/gvp11.c index 0420bfe9bd42..12160d70a571 100644 --- a/drivers/scsi/gvp11.c +++ b/drivers/scsi/gvp11.c @@ -50,6 +50,9 @@ static irqreturn_t gvp11_intr(int irq, void *data) static int gvp11_xfer_mask = 0; +module_param(gvp11_xfer_mask, int, 0444); +MODULE_PARM_DESC(gvp11_xfer_mask, "DMA mask (0xff000000 == 24 bit DMA)"); + static int dma_setup(struct scsi_cmnd *cmd, int dir_in) { struct scsi_pointer *scsi_pointer = WD33C93_scsi_pointer(cmd); -- 2.17.1