Re: [PATCH 14/14] m68k/atari: USB - Add ISP1160 USB host controller support

Michael Schmitz <[email protected]> Sat, 18 Jul 2026 02:40:59 +1200
Newsgroups gmane.linux.debian.ports.68k,gmane.linux.ports.m68k
Message-ID <[email protected]>
Miro,

[resent as plain text, sorry]

On 18/07/2026 1:49 AM, Miro Kropáček wrote:
> Hi Michael,
>
> On Mon, 25 Mar 2013 at 11:36, Michael Schmitz <[email protected]> 
> wrote:
>
>     Add Atari specific support code for isp116x-hcd driver used by
>     EtherNAT
>     and NetUSBee adapters. Both use a 16-bit data bus wiring that is
>     byte-swapped
>     in hardware. The EtherNAT adapter also has quirks relating to
>     interrupts
>     and needs interrupts disabled until after the chip has been reset.
>
>     Debugging of FIFO register access code and NetUSBee support by
>     David Galvez
>     <[email protected]> (MiNT driver author).
>
>     Signed-off-by: Michael Schmitz <[email protected]>
>
> Sorry to necro-bump this email thread but this specific commit is 
> quite interesting. As far as I understand it, this patch was proposed 
> and merged on top of Geert's m68k-queue branch. However five hours 
> later there was another set of patches meant for upstream/debian 
> merge: 
> https://lore.kernel.org/linux-m68k/[email protected] 
> (interestingly, it wasn't CC'ed to debian-m68k) where you explicitly 
> asked (https://lore.kernel.org/linux-m68k/[email protected]) to 
> skip 
> https://lore.kernel.org/linux-m68k/[email protected] 
> and 
> https://lore.kernel.org/linux-m68k/[email protected] 
> (this one) patches.
>
> "I don't mind for it to live in m68k-queue for a while" ... so, 13 
> years later ;), what prevents merging NetUSBee support upstream?

The register access logic was far too hacky for my taste (and I'm sure, 
Geert's). Unless a way can be found to handle the endianness issues and 
required byte swapping transparently, this patch just isn't up to the 
expected standards.

I never tried to submit these patches to linux-usb but I had 
interactions with the netdev and scsi maintainers, and despite my best 
efforts, some patches that were a lot cleaner than this one never got 
accepted.

These days, my EtherNAT board is broken (PHY dead as far as I can tell, 
never generates an interrupt when probing for carrier), and the CT60 
boots up with  broken video mode, so I even if I could improve on this 
patch, I can't test the USB code anymore. Haven't had much time for 
kernel hacking either recently.

Anyone with access to the hardware and an inclination to get their hands 
dirty is welcome to take over these patches and have a little fun with 
the code review!

Cheers,

     Michael


>
> -- 
> http://mikro.atari.org