Re: [PATCH] m68k/mac: Replace macide driver with generic platform driver

From: Michael Schmitz
Date: Tue Apr 27 2021 - 15:55:04 EST


Hi Finn,

On 27/04/21 3:47 pm, Finn Thain wrote:
On Tue, 27 Apr 2021, Michael Schmitz wrote:

On 26/04/21 7:37 pm, Finn Thain wrote:
Was macide the only IDE driver in Debian/m68k kernels without a libata
alternative? If so, this patch would allow you to finally drop
CONFIG_IDE.

There's still q40ide.c (ISA IDE interface, byte-swapped, so would need
treatment similar to Falcon IDE). Hasn't been updated to a platform
device yet.

AIUI, q40 support is not included in Debian/m68k kernel builds.
I see.
I wonder whether q40 could re-use the pata_falcon driver . I suppose

I'm pretty sure it could, but there is no reason why it would have to be crippled in that way. Interrupts should work perfectly fine with IDE on Q40.

There is another reason why using the same module binary for both might fail - the awkward address translation code in io_mm.h. Not certain at all whether we can even have Q40 and Atari in the same kernel binary...

pata_falcon_set_mode() would be undesirable on q40 (?) It could be made

Not sure what the defaults are - pata_buddha.c and pata_gayle.c use the same code in their _set_mode(). I suspect we'd need it for Q40, too.

Cheers,

    Michael