Re: [PATCH v4 34/78] atari_NCR5380: Use arbitration timeout
From: Michael Schmitz
Date: Mon Jan 25 2016 - 14:56:31 EST
On Mon, Jan 25, 2016 at 9:05 PM, Geert Uytterhoeven
>>> Perhaps this is an ARAnyM quirk?
>> The MR_ARBITRATE bit should remain set until the driver clears it (or the
>> reset logic clears it). But it looks like aranym simply discards writes to
>> the mode register, such that reads always return 0.
>> with the MAME/MESS emulated device
>> I don't know what the Hatari emulator does.
>> In principle I think that Linux drivers should not carry workarounds for
> Please consider ARAnyM is the current m68k workhorse, so it would be
> nice to handle this someway.
> Alternatively, we need to fix ARAnyM, or can make the creation of the
> atari_scsi platform device conditional on not running under ARAnyM.
Should be possible based on the machine cookie, unless that gets
munged by kernel startup code.
(Making the 5380 emulation a bit more complete such as in the MAME
source snippet would be my preference, too)
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
> -- Linus Torvalds