Sierra Wireless CIS [Was: Re: Epia MII 10000, 2.6.13-mm2, cs: pcmcia_socket0: unable to apply power]

Sander sander at humilis.net
Thu Nov 17 07:08:17 EST 2005


Dominik Brodowski wrote (ao):
> On Fri, Oct 21, 2005 at 03:54:50PM +0200, Sander wrote:
> > Sorry for the delay. I became father and had to adjust priorities.
> 
> Congratulations :-)

Thanks :-)

> Sorry for the delay in my reply, I don't have as good reasons, just
> university examinations getting closer...

Good luck!

> > > The CIS in /sys/class/pcmcia_socket/pcmcia_socket0/cis looks to be
> > > useable, even though the two additional bytes confuse me. But decoding
> > > it (using dump_cis -f from pcmciautils, run "make debugtools" to
> > > compile it) shows no difference.
> > > 
> > > So, I'm quite curious why serial_cs doesn't attach. Could you check
> > > (by adding debug printk()s [if you're not confident in how to do this,
> > > I'll send you a patch]) whether serial_cs.c::attach() gets called?
> > 
> > Is it called 'serial_attach' in 2.6.14-rc4-mm1? That is the only
> > matching function I could find.
> 
> Yes, it is.

What I did is adding this line to drivers/serial/serial_cs.c line 241:

printk(KERN_NOTICE "serial_cs, debug prinkt 1\n");

Which makes:

static dev_link_t *serial_attach(void)
{
        struct serial_info *info;
        client_reg_t client_reg;
        dev_link_t *link;
        int ret;

        DEBUG(0, "serial_attach()\n");
        printk(KERN_NOTICE "serial_cs, debug prinkt 1\n");

        /* Create new serial device */
        info = kmalloc(sizeof (*info), GFP_KERNEL);
        if (!info)
                return NULL;
        memset(info, 0, sizeof (*info));
        link = &info->link;
        link->priv = info;

Is that correct? Nothing turns up in dmesg.
Should I place more of them elsewere?

Btw, I have CONFIG_PCMCIA_DEBUG=y so I assume the "serial_attach()\n"
should have been printed anyway.

What I have now is (2.6.14-mm2):

#
# PCCARD (PCMCIA/CardBus) support
#
CONFIG_PCCARD=y
CONFIG_PCMCIA_DEBUG=y
CONFIG_PCMCIA=y
CONFIG_PCMCIA_LOAD_CIS=y
# CONFIG_PCMCIA_IOCTL is not set
CONFIG_CARDBUS=y

#
# PC-card bridges
#
CONFIG_YENTA=y
# CONFIG_PD6729 is not set
# CONFIG_I82092 is not set
CONFIG_PCCARD_NONSTATIC=y


#
# Serial drivers
#
CONFIG_SERIAL_8250=m
CONFIG_SERIAL_8250_CS=m
CONFIG_SERIAL_8250_ACPI=y
CONFIG_SERIAL_8250_NR_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set


# pccardctl ident
Socket 0:
  product info: "Sierra Wireless", "AC710/AC750", "GPRS Network Adapter", "R1"
  manfid: 0x0192, 0x0710
  function: 6 (network)
Socket 1:
  no product info available


# pccardctl info
PRODID_1="Sierra Wireless"
PRODID_2="AC710/AC750"
PRODID_3="GPRS Network Adapter"
PRODID_4="R1"
MANFID=0192,0710
FUNCID=6
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255


[42949451.250000] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
[42949451.250000] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[42949461.190000] eth0: no IPv6 routers present
[42949496.850000] cs: memory probe 0x0c0000-0x0fffff: excluding 0xc0000-0xdffff 0xf0000-0xfffff
[42949496.850000] cs: memory probe 0x60000000-0x60ffffff: clean.
[42949496.850000] cs: memory probe 0xa0000000-0xa0ffffff: clean.

(ttyS0 is the onboard serial port, which shows up before I
do pcmcia-socket-startup and modprobe.

Anything I can do?

Thanks!

-- 
Humilis IT Services and Solutions
http://www.humilis.net



More information about the linux-pcmcia mailing list