reset of pcmcia device.

Russell King rmk+pcmcia at arm.linux.org.uk
Sat May 6 12:08:59 EDT 2006


On Sat, May 06, 2006 at 06:03:10PM +0200, Krzysztof Drewicz wrote:
> Russell King napisa?(a):
> >But I think someone's getting confused - note that Krzysztof talks of
> >a reset as "rmmoding pcmcia-related modules and modprobing".  That's
> >not a reset, that's a complete tear-down of PCMCIA.
> >
> >Also note that Krzysztof doesn't post any kernel messages illustrating
> >what happened during this "rmmod and modprobe" action, so no one knows
> >why it doesn't work.
> >
> Sorry for so a few details. Here is some better info:
> OK, here it's afert boot-up and modprobe pcmcia-et-all:
> 
> ACPI: PCI Interrupt 0000:00:0a.0[A] -> GSI 18 (level, low) -> IRQ 169
> Yenta: CardBus bridge found at 0000:00:0a.0 [0000:0000]
> Yenta: ISA IRQ mask 0x0000, PCI irq 169
> Socket status: 30000810
> parport: PnPBIOS parport detected.
> parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
> lp0: using parport0 (interrupt-driven).
> eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
> cs: IO port probe 0x100-0x3af: excluding 0x170-0x177 0x290-0x297 0x370-0x37f
> cs: IO port probe 0x3e0-0x4ff: excluding 0x400-0x40f 0x4d0-0x4d7
> cs: IO port probe 0x820-0x8ff: excluding 0x828-0x87f
> cs: IO port probe 0xc00-0xcf7: clean.
> cs: IO port probe 0xa00-0xaff: clean.
> cs: memory probe 0xa0000000-0xa0ffffff: clean.
> ttyS1 at I/O 0x2f8 (irq = 169) is a 16550A

Okay, so it detected it at boot.

> So, everything is ok, but i do a "hot plug off, plug in" pcmcia card:

I think you mean "I unplugged the card" here.

> [root at asia:~]$ pccardctl info
> PRODID_1=""
> PRODID_2=""
> PRODID_3=""
> PRODID_4=""
> MANFID=0000,0000
> FUNCID=255
> [root at asia:~]$ pccardctl status
> Socket 0:
>  no card
> 
> And than i would like to insert card (to the pcmcia controler):

and "I plugged the card back in".

> [root at asia:~]$ pccardctl status
> Socket 0:
>  3.3V 16-bit PC Card
>  Subdevice 0 (function 0) [unbound]

This is telling - the card wasn't bound to any driver.

> [root at asia:~]$ pccardctl info
> PRODID_1="PRETEC"
> PRODID_2="CompactGPRS"
> PRODID_3="20030619"
> PRODID_4="Ver 2.02"
> MANFID=02a5,0000
> FUNCID=2
> [root at asia:~]$ gammu --identify
> Error during reading device.
> [root at asia:~]$ cat < /dev/ttyS1
> cat: Read Error: Input/output error
>...
> dmesg says nothing new.

Presumably because PCMCIA didn't bind the device to the driver, despite
the function ID matching.  Sounds like a core PCMCIA issue to me.

Why did it work at boot but not subsequently?  I don't know the answer
to that.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core



More information about the linux-pcmcia mailing list