Re: Why does printk helps PCMCIA card to initialise?

2005-02-22 Thread David Hinds
On Mon, 21 Feb 2005, Linus Torvalds wrote: > On Mon, 21 Feb 2005, Russell King wrote: > > > > In cs.c, alloc_io_space(), find the line: > > > > if (*base & ~(align-1)) { > > > > delete the ~ and rebuild. This may resolve your problem. > > Unlikely. The code is too broken for words. The original c

Re: Why does printk helps PCMCIA card to initialise?

2005-02-22 Thread Martin Drohmann
Russell King wrote: On Sun, Feb 20, 2005 at 12:38:17PM +, Russell King wrote: The first thing that needs solving is why you're getting the "odd IO request" crap. That may explain why the resource can't be allocated. In cs.c, alloc_io_space(), find the line: if (*base & ~(align-1)) { delet

Re: Why does printk helps PCMCIA card to initialise?

2005-02-21 Thread Linus Torvalds
On Mon, 21 Feb 2005, Russell King wrote: > > In cs.c, alloc_io_space(), find the line: > > if (*base & ~(align-1)) { > > delete the ~ and rebuild. This may resolve your problem. Unlikely. The code is too broken for words. First off, setting align to zero makes no sense. An alignment can

Re: Why does printk helps PCMCIA card to initialise?

2005-02-21 Thread Andrew Morton
Russell King <[EMAIL PROTECTED]> wrote: > > On Sun, Feb 20, 2005 at 12:38:17PM +, Russell King wrote: > > The first thing that needs solving is why you're getting the "odd IO > > request" crap. That may explain why the resource can't be allocated. > > In cs.c, alloc_io_space(), find the li

Re: Why does printk helps PCMCIA card to initialise?

2005-02-21 Thread Russell King
On Sun, Feb 20, 2005 at 12:38:17PM +, Russell King wrote: > The first thing that needs solving is why you're getting the "odd IO > request" crap. That may explain why the resource can't be allocated. In cs.c, alloc_io_space(), find the line: if (*base & ~(align-1)) { delete the ~ and re

Re: Why does printk helps PCMCIA card to initialise?

2005-02-20 Thread Russell King
On Sun, Feb 20, 2005 at 12:44:25PM +0100, Martin Drohmann wrote: > #ifdef CONFIG_PCI > if (s->cb_dev) { > ret = pci_bus_alloc_resource(s->cb_dev->bus, res, num, 1, > min, 0, pcmcia_align, &data); > } else > #endif > -

Re: Why does printk helps PCMCIA card to initialise?

2005-02-20 Thread Vicente Feito
Hello On Sunday 20 February 2005 11:44 am, you wrote: > > diff -u -U 7 /linux-2.6.11-rc4.changed/drivers/pcmcia/rsrc_nonstatic.c > ../linux-2.6.11-rc4/drivers/pcmcia/rsrc_nonstatic.c > --- /linux-2.6.11-rc4.changed/drivers/pcmcia/rsrc_nonstatic.c > 2005-02-20 11:37:39.0 +0100 > +++

Why does printk helps PCMCIA card to initialise?

2005-02-20 Thread Martin Drohmann
Hi, After updating to a new kernel (>2.6.8) my PCMCIA ISDN did not work anymore. My test system now looks like this: > uname -s -r -v -m Linux 2.6.11-rc4 #5 Sun Feb 20 05:19:02 CET 2005 x86_64 > lspci | grep CardBus :02:07.0 CardBus bridge: Texas Instruments PCI4510 PC card Cardbus Control