Christian Banik | 4 Aug 2006 21:46
Picon

Problems running the driver

Hello everybody!

I'm having a Toshiba Satellite 2430 and I'm trying to get my internal SD card 
reader to work. It's a W83L51xD and is accepted by the wbsd driver (with 
parameters nopnp=1 irq=11).

When I insert a SD card, my keyboard stops working. When I remove the card, 
the keyboard works again.

OS: Gentoo Linux 2006.0, gcc-Version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, 
pie-8.7.9)
Kernel: Linux stockholm 2.6.17-suspend2-r3 #1 PREEMPT Mon Jul 31 13:39:43 CEST 
2006 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz GNU/Linux

I have added the kernel log from the time I insert the card.

How can I make the card reader work?

Greetings,
Christian
--

-- 
Christian Banik
ICQ #12712782 -- PGP
Aug  4 21:26:34 stockholm kernel: wbsd: Card inserted
Aug  4 21:26:35 stockholm kernel: mmc0: clock 0Hz busmode 1 powermode 1 cs 0 Vdd 21 width 0
Aug  4 21:26:35 stockholm kernel: mmc0: clock 375000Hz busmode 1 powermode 2 cs 0 Vdd 21 width 0
Aug  4 21:26:35 stockholm kernel: mmc0: clock 375000Hz busmode 1 powermode 2 cs 1 Vdd 21 width 0
Aug  4 21:26:35 stockholm kernel: mmc0: starting CMD0 arg 00000000 flags 00000040
(Continue reading)

Pierre Ossman | 4 Aug 2006 22:22

Re: Problems running the driver

Christian Banik wrote:
> Hello everybody!
> 
> I'm having a Toshiba Satellite 2430 and I'm trying to get my internal SD card 
> reader to work. It's a W83L51xD and is accepted by the wbsd driver (with 
> parameters nopnp=1 irq=11).
> 
> When I insert a SD card, my keyboard stops working. When I remove the card, 
> the keyboard works again.
> 
> OS: Gentoo Linux 2006.0, gcc-Version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, 
> pie-8.7.9)
> Kernel: Linux stockholm 2.6.17-suspend2-r3 #1 PREEMPT Mon Jul 31 13:39:43 CEST 
> 2006 i686 Intel(R) Pentium(R) 4 CPU 2.53GHz GNU/Linux
> 
> I have added the kernel log from the time I insert the card.
> 
> How can I make the card reader work?
> 

I assume you've tried just loading the kernel? nopnp should only be used
on laptops with a broken BIOS. It would seem you have a problem with the
delivery of interrupts, so you should try different values for irq.

Rgds
Pierre
Christian Banik | 4 Aug 2006 22:41
Picon

Re: Problems running the driver

Am Freitag, den 4. August 2006 22:22 schrieb Pierre Ossman:
> Christian Banik wrote:
> > How can I make the card reader work?
>
> I assume you've tried just loading the kernel? nopnp should only be used
> on laptops with a broken BIOS. It would seem you have a problem with the
> delivery of interrupts, so you should try different values for irq.

I tried it again without the nopnp and irq option, and it works without a 
hassle :-) (although it reports a buggy BIOS).

Some weeks ago I had the system working with 16 MB Toshiba cards and crashing 
the system with a 256 MB Sandisk card. But as it looks now, these problems 
are gone.

Thanks for your help! The SD card reader in the Toshiba Satellite 2430 works 
now.

Greetings,
Christian
--

-- 
Christian Banik
ICQ #12712782 -- PGP
_______________________________________________
Wbsd-devel mailing list
Wbsd-devel <at> list.drzeus.cx
http://list.drzeus.cx/mailman/listinfo/wbsd-devel
(Continue reading)

Christian Banik | 5 Aug 2006 12:24
Picon

Re: Problems running the driver

Hello again,

it looks like it still doesn't work as expected.

Am Freitag, den 4. August 2006 22:41 schrieb Christian Banik:
> Some weeks ago I had the system working with 16 MB Toshiba cards and
> crashing the system with a 256 MB Sandisk card. But as it looks now, these
> problems are gone.

When loading on boot the wbsd driver loads but doesn't find the device:

Aug  5 12:00:30 stockholm kernel: wbsd: Winbond W83L51xD SD/MMC card interface 
driver, 1.5
Aug  5 12:00:30 stockholm kernel: wbsd: Copyright(c) Pierre Ossman
Aug  5 12:00:30 stockholm kernel: wbsd [wbsd_pnp_probe()]: PnP resources: port   
0 irq -1 dma -1
Aug  5 12:00:30 stockholm kernel: pnp: Device 00:0b disabled.
Aug  5 12:00:30 stockholm kernel: wbsd: probe of 00:0b failed with error -22

After removing mmc_block and wbsd from the kernel and reloading them, I get 
the following messages:

Aug  5 12:04:42 stockholm kernel: wbsd: unloaded
Aug  5 12:04:47 stockholm kernel: wbsd: Winbond W83L51xD SD/MMC card interface 
driver, 1.5
Aug  5 12:04:47 stockholm kernel: wbsd: Copyright(c) Pierre Ossman
Aug  5 12:04:47 stockholm kernel: pnp: Device 00:0b activated.
Aug  5 12:04:47 stockholm kernel: wbsd [wbsd_pnp_probe()]: PnP resources: port   
0 irq 11 dma -1
Aug  5 12:04:47 stockholm kernel: wbsd: Unknown hardware (id fc00) found at 2e
(Continue reading)

Pierre Ossman | 6 Aug 2006 20:12

Re: Problems running the driver

Christian Banik wrote:
> 
> When loading on boot the wbsd driver loads but doesn't find the device:
> 
> Aug  5 12:00:30 stockholm kernel: wbsd: Winbond W83L51xD SD/MMC card interface 
> driver, 1.5
> Aug  5 12:00:30 stockholm kernel: wbsd: Copyright(c) Pierre Ossman
> Aug  5 12:00:30 stockholm kernel: wbsd [wbsd_pnp_probe()]: PnP resources: port   
> 0 irq -1 dma -1
> Aug  5 12:00:30 stockholm kernel: pnp: Device 00:0b disabled.
> Aug  5 12:00:30 stockholm kernel: wbsd: probe of 00:0b failed with error -22

Looks like there's some problem with your PNP layer here. Could you do:

cat /sys/bus/pnp/devices/00\:0b/options
cat /sys/bus/pnp/devices/00\:0b/resources

> 
> Inserting and mounting the Canon 16 MB SD cards works without a problem, 
> inserting my SanDisk 256 MB card (even without mounting) makes my system 
> crash immediately.
> 
> How can I make this work?
> 

I'm going to need a dump of that crash to figure out what the problem is.

Rgds
Pierre
(Continue reading)

Christian Banik | 6 Aug 2006 20:51
Picon

Re: Problems running the driver

Am Sonntag, den 6. August 2006 20:12 schrieb Pierre Ossman:
> Christian Banik wrote:
> > When loading on boot the wbsd driver loads but doesn't find the device:
> >
> > Aug  5 12:00:30 stockholm kernel: wbsd: Winbond W83L51xD SD/MMC card
> > interface driver, 1.5
> > Aug  5 12:00:30 stockholm kernel: wbsd: Copyright(c) Pierre Ossman
> > Aug  5 12:00:30 stockholm kernel: wbsd [wbsd_pnp_probe()]: PnP resources:
> > port 0 irq -1 dma -1
> > Aug  5 12:00:30 stockholm kernel: pnp: Device 00:0b disabled.
> > Aug  5 12:00:30 stockholm kernel: wbsd: probe of 00:0b failed with error
> > -22
>
> Looks like there's some problem with your PNP layer here. Could you do:
>
> cat /sys/bus/pnp/devices/00\:0b/options
> cat /sys/bus/pnp/devices/00\:0b/resources

$ cat /sys/bus/pnp/devices/00\:0b/options
Dependent: 01 - Priority acceptable
   port 0x248-0x248, align 0x7, size 0x8, 16-bit address decoding
   irq 6 High-Edge
Dependent: 02 - Priority acceptable
   port 0x200-0x2ff, align 0x7, size 0x8, 16-bit address decoding
   irq 6,10,11 High-Edge
$ cat /sys/bus/pnp/devices/00\:0b/resources
state = disabled
io 0x0-0x7

After having removed the modules mmc_block and wbsd and reloaded them, it 
(Continue reading)

Pierre Ossman | 6 Aug 2006 21:22

Re: Problems running the driver

Christian Banik wrote:
> Am Sonntag, den 6. August 2006 20:12 schrieb Pierre Ossman:
>   
>> Christian Banik wrote:
>>     
>>> When loading on boot the wbsd driver loads but doesn't find the device:
>>>
>>> Aug  5 12:00:30 stockholm kernel: wbsd: Winbond W83L51xD SD/MMC card
>>> interface driver, 1.5
>>> Aug  5 12:00:30 stockholm kernel: wbsd: Copyright(c) Pierre Ossman
>>> Aug  5 12:00:30 stockholm kernel: wbsd [wbsd_pnp_probe()]: PnP resources:
>>> port 0 irq -1 dma -1
>>> Aug  5 12:00:30 stockholm kernel: pnp: Device 00:0b disabled.
>>> Aug  5 12:00:30 stockholm kernel: wbsd: probe of 00:0b failed with error
>>> -22
>>>       
>> Looks like there's some problem with your PNP layer here. Could you do:
>>
>> cat /sys/bus/pnp/devices/00\:0b/options
>> cat /sys/bus/pnp/devices/00\:0b/resources
>>     
>
> $ cat /sys/bus/pnp/devices/00\:0b/options
> Dependent: 01 - Priority acceptable
>    port 0x248-0x248, align 0x7, size 0x8, 16-bit address decoding
>    irq 6 High-Edge
> Dependent: 02 - Priority acceptable
>    port 0x200-0x2ff, align 0x7, size 0x8, 16-bit address decoding
>    irq 6,10,11 High-Edge
> $ cat /sys/bus/pnp/devices/00\:0b/resources
(Continue reading)


Gmane