[PATCH v5 0/2] m68k: pata_cswarp: Add Amiga cslab ata support

Paolo Pisati posted 2 patches 1 month ago
There is a newer version of this series
arch/m68k/configs/amiga_defconfig |   1 +
arch/m68k/configs/multi_defconfig |   1 +
drivers/ata/Kconfig               |  10 ++
drivers/ata/Makefile              |   1 +
drivers/ata/pata_cswarp.c         | 180 ++++++++++++++++++++++++++++++
5 files changed, 193 insertions(+)
create mode 100644 drivers/ata/pata_cswarp.c
[PATCH v5 0/2] m68k: pata_cswarp: Add Amiga cslab ata support
Posted by Paolo Pisati 1 month ago
Here is a driver (and the subsequent defconfig change) for the pata/CF socket in
the CS-Lab Warp series of Amiga boards.

This is a respin of v4 addressing Geert's review - apologies for the long delay.

Tested on real Warp hardware.

v4: https://lore.kernel.org/linux-ide/20250325155613.352680-1-p.pisati@gmail.com/

Changes in v5:
 - return the number of bytes actually consumed on the bus
 - fix the trailing byte in pata_cswarp_data_xfer()
 - drop a blank line in Kconfig
 - fix the remaining checkpatch complaints

Changes in v4:
 - refactor pata_cswarp_data_xfer()
 - ioremap WARP_OFFSET_ATA region

Changes in v3:
 - suppress a comment
 - properly return ata_host_activate() error code

Change in v2:
 - fix style, remove duplicate swap macro, driver version, etc
 - rework the zorro attach mechanism
 - remove the unnecessary zorro ids refactor

Paolo Pisati (2):
  ata: pata_cswarp: Add Amiga cslab ata support
  m68k: defconfig: enable PATA_CSWARP

 arch/m68k/configs/amiga_defconfig |   1 +
 arch/m68k/configs/multi_defconfig |   1 +
 drivers/ata/Kconfig               |  10 ++
 drivers/ata/Makefile              |   1 +
 drivers/ata/pata_cswarp.c         | 180 ++++++++++++++++++++++++++++++
 5 files changed, 193 insertions(+)
 create mode 100644 drivers/ata/pata_cswarp.c


base-commit: 8d3ae59288f1e7d58d76558a6ee96d533bc5019f
-- 
2.43.0