TI yenta-alikes (was: ToPIC specific init for yenta_socket)
rmk at arm.linux.org.uk
Thu Aug 7 11:02:11 BST 2003
On Thu, Aug 07, 2003 at 12:01:06AM -0400, Pavel Roskin wrote:
> I have no idea, but I think it's an important consideration. I wonder how
> it's possible to put IRQ3 and INTA on the same pin?
It's not, and this is the whole point about why what we're currently
doing is *wrong*. The only people who know whether the pin has been
wired for INTA or IRQ3 are the _designers_ of the hardware, not the
Currently, the Linux kernel assumes a "greater than designers" approach
to fiddling with the registers which control the function of these pins,
and so far I've seen:
- changing the mode from serial PCI interrupts to parallel PCI interrupts
causes the machine to lock hard (since some cardbus controllers use the
same physical pins for both functions.)
- fiddling with the IRQMUX register changes the mapping between the card
IRQ selector register and the physical ISA IRQ on which the interrupt
appears, or even changes the function of the pin connected to a shared
ISA IRQ (IRQ3 and 4) to become the ZV status output.
In essense, when we find that a particular machine has not setup the
function of these multi-purpose signals, we need to find a way to
perform the fixup which is dependent on the machine not on the
cardbus controller type.
If we can't do that, then we can't fix up the problem automatically -
chances are applying the same "fix" across different machines will
break the cases which presently work.
So, to find a solution, as of last night, Linus has integrated changes
which completely disables the frobbing of the IRQMUX register on TI
chips, and disables the "select PCI only IRQ mode" code which was
recently merged from the -ac tree. The latter was rather bogus -
it disabled the ISA interrupts before we determined if we had any
to start with.
In addition, we display the slot and subsystem vendor and device IDs
at boot. Hopefully, this will allow us to gather sufficient information
to put together a reasonable picture of which machines are broken and
give us a way to perform the necessary fixups on a per-machine basis.
I'm hoping that those who need these machine specific registers frobbed
are going to be testing 2.6.0-test kernels.
Russell King (rmk at arm.linux.org.uk) The developer of ARM Linux
More information about the linux-pcmcia