public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Wiktor Wodecki <wodecki@gmx.de>
To: Russell King <rmk@arm.linux.org.uk>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: hang with pcmcia wlan card
Date: Sun, 13 Jul 2003 13:02:11 +0200	[thread overview]
Message-ID: <20030713110211.GA3504@gmx.de> (raw)
In-Reply-To: <20030713110016.A2621@flint.arm.linux.org.uk>

[-- Attachment #1: Type: text/plain, Size: 3203 bytes --]

On Sun, Jul 13, 2003 at 11:00:16AM +0100, Russell King wrote:
> On Sun, Jul 13, 2003 at 12:50:33PM +0300, Jaakko Niemi wrote:
> > Alan Cox <alan@lxorguk.ukuu.org.uk> writes:
> > > On Sad, 2003-07-12 at 17:48, Wiktor Wodecki wrote:
> > >> > +      * If ISA interrupts don't work, then fall back to routing card
> > >> > +      * interrupts to the PCI interrupt of the socket.
> > >> > +      */
> > >> > +     if (!socket->socket.irq_mask) {
> > >> > +             int irqmux, devctl;
> > >> > +
> > >
> > > See the fix posted to the list a while ago and apply that and all should
> > > be well. The change you refer to breaks for some setups
> > 
> >  Was the fix against drivers/pcmcia/ti113x.h ? (other than backing off
> >  that patch..). If so, then I'm unable to locate it. Looks like I need
> >  local lkml archive anyway :)
> 
> The patch never went anywhere near lkml.  It was sent to Pat Mochel
> primerily for testing (since Pat was able to produce the feedback
> last time around to solve the problem.)  However, I haven't heard back
> from Pat.
> 
> I won't even bother putting this into my bk tree and asking Linus to
> pull; I'm sure someone else will integrate this into the kernel tree
> for me.  (as happened previously, and as a result I need to sort out
> my bk tree.)

oh, I'm sorry, I must have missed this patch. I just applied it on top
of 2.5.75-bk2 and it fixes the problem for me. Please apply it and tell
linus, thinks like that happen - don't be grumpy please :-)

> 
> --- orig/drivers/pcmcia/ti113x.h	Wed Jul  2 22:44:06 2003
> +++ linux/drivers/pcmcia/ti113x.h	Sun Jul  6 22:52:41 2003
> @@ -179,21 +179,26 @@
>  	/*
>  	 * If ISA interrupts don't work, then fall back to routing card
>  	 * interrupts to the PCI interrupt of the socket.
> +	 *
> +	 * Tweaking this when we are using serial PCI IRQs causes hangs
> +	 *   --rmk
>  	 */
>  	if (!socket->socket.irq_mask) {
> -		int irqmux, devctl;
> -
> -		printk (KERN_INFO "ti113x: Routing card interrupts to PCI\n");
> +		u8 irqmux, devctl;
>  
>  		devctl = config_readb(socket, TI113X_DEVICE_CONTROL);
> -		devctl &= ~TI113X_DCR_IMODE_MASK;
> +		if (devctl & TI113X_DCR_IMODE_MASK != TI12XX_DCR_IMODE_ALL_SERIAL) {
> +			printk (KERN_INFO "ti113x: Routing card interrupts to PCI\n");
> +
> +			devctl &= ~TI113X_DCR_IMODE_MASK;
>  
> -		irqmux = config_readl(socket, TI122X_IRQMUX);
> -		irqmux = (irqmux & ~0x0f) | 0x02; /* route INTA */
> -		irqmux = (irqmux & ~0xf0) | 0x20; /* route INTB */
> +			irqmux = config_readl(socket, TI122X_IRQMUX);
> +			irqmux = (irqmux & ~0x0f) | 0x02; /* route INTA */
> +			irqmux = (irqmux & ~0xf0) | 0x20; /* route INTB */
>  
> -		config_writel(socket, TI122X_IRQMUX, irqmux);
> -		config_writeb(socket, TI113X_DEVICE_CONTROL, devctl);
> +			config_writel(socket, TI122X_IRQMUX, irqmux);
> +			config_writeb(socket, TI113X_DEVICE_CONTROL, devctl);
> +		}
>  	}
>  
>  	socket->socket.ss_entry->init = ti_init;
> 
> 
> -- 
> Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
>              http://www.arm.linux.org.uk/personal/aboutme.html

-- 
Regards,

Wiktor Wodecki

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2003-07-13 10:47 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-11 16:20 hang with pcmcia wlan card Jaakko Niemi
2003-07-12 16:22 ` Jaakko Niemi
2003-07-12 16:30   ` Russell King
2003-07-12 16:48     ` Wiktor Wodecki
2003-07-12 17:30       ` Jaakko Niemi
2003-07-13  8:46       ` Alan Cox
2003-07-13  9:50         ` Jaakko Niemi
2003-07-13 10:00           ` Russell King
2003-07-13 10:48             ` Jaakko Niemi
2003-07-13 11:00               ` Russell King
2003-07-13 11:09                 ` Alan Cox
2003-07-13 11:02             ` Wiktor Wodecki [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-07-13  2:51 Sven Dowideit

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=20030713110211.GA3504@gmx.de \
    --to=wodecki@gmx.de \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    --cc=wodecki@gmx.net \
    /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