public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tim Small <tim@buttersideup.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>, Russell King <rmk@arm.linux.org.uk>
Cc: Pavel Roskin <proski@gnu.org>,
	linux-pcmcia@lists.infradead.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: TI yenta-alikes
Date: Thu, 07 Aug 2003 14:02:22 +0100	[thread overview]
Message-ID: <3F324DDE.3040409@buttersideup.com> (raw)
In-Reply-To: <1060258695.3123.36.camel@dhcp22.swansea.linux.org.uk>

Alan Cox wrote:

>On Iau, 2003-08-07 at 10:02, Russell King wrote:
>  
>
>>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
>>Linux kernel.
>>    
>>
>
>That assumes the yenta controller isnt hotplugged.
>  
>
Some (all?) PCI add-in cards leave this up to the OS/driver as well.  
The card I have has no firmware on board, and from a quick look at the 
PCI1031 datasheet, I can't see any easy way of adding one.  The default 
power-on state (at least for the PCI1031) is to disable all interrupts.

>>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.)
>>    
>>
>
>Basically we got burned by changing the IRQMUX register rather than just
>using it as an information source.
>  
>
I think it should be possible to use the IRQMUX, and other registers to 
work out whether the bridge has been setup or not..  e.g.

"device control register bits2,1:  R/W, Interrupt mode.
Bits 2 1 select the interrupt mode used by the PCI1031. Bits 2 1 are 
encoded as: 00 = No interrupts enabled (default) 01 = ISA 10 = 
Serialized IRQ type interrupt scheme 11 = Reserved"

If these bits are non-zero, I suppose we should probably leave the IRQ 
routing registers alone, as it would seem to be a good indicator that 
the BIOS has programmed these for us.  This is just on the 1031, 
however, I haven't checked any of the other datasheets...


Tim.


  reply	other threads:[~2003-08-07 13:02 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-06 18:25 [PATCH 2.6] ToPIC specific init for yenta_socket Daniel Ritz
2003-08-06 18:44 ` Russell King
2003-08-06 19:07   ` Pavel Roskin
2003-08-06 19:32     ` Russell King
2003-08-06 20:39       ` Pavel Roskin
2003-08-06 22:23         ` TI yenta-alikes (was: ToPIC specific init for yenta_socket) Tim Small
2003-08-07  4:01           ` Pavel Roskin
2003-08-07  9:02             ` Russell King
2003-08-07 12:18               ` Alan Cox
2003-08-07 13:02                 ` Tim Small [this message]
2003-08-07 13:16                   ` TI yenta-alikes Russell King
2003-08-07 14:00                     ` Alan Cox
2003-08-07 14:38                       ` Russell King
2003-08-07 14:49                     ` Tim Small
2003-08-07 13:12                 ` TI yenta-alikes (was: ToPIC specific init for yenta_socket) Russell King
2003-08-07  9:18             ` TI yenta-alikes Tim Small
2003-08-06 20:50   ` [PATCH 2.6] ToPIC specific init for yenta_socket Daniel Ritz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F324DDE.3040409@buttersideup.com \
    --to=tim@buttersideup.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pcmcia@lists.infradead.org \
    --cc=proski@gnu.org \
    --cc=rmk@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox