linux-mips
[Top] [All Lists]

Re: "No such device" with PCI card

To: linux-mips@linux-mips.org
Subject: Re: "No such device" with PCI card
From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
Date: Mon, 14 Jun 2004 16:27:30 +0200
In-reply-to: <20040614115631.17040.qmail@web16612.mail.tpe.yahoo.com>
Mail-followup-to: linux-mips@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20040614115631.17040.qmail@web16612.mail.tpe.yahoo.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.6i
On Mon, 2004-06-14 19:56:31 +0800, jospehchan <jospehchan@yahoo.com.tw>
wrote in message <20040614115631.17040.qmail@web16612.mail.tpe.yahoo.com>:
> Hi all,
>   I'm new in MIPS. 
>   Recently, I encountered a strange problem. 
>   That is when I plugged in a USB1.1 PCI card on my
> MIPS machine.
>   When I load "usb-uhci" modules, the system returns
> "Init_modules: No such device".
>   But checking "lspci", I can see the device's ID of
> the USB PCI card.
>   Is there anything I missed? Any suggestion or advice
> is appreciated. 

lspci tells you vendor and device id. These IDs need to be told to the
driver. Because the uhci driver uses:

static const struct pci_device_id uhci_pci_ids[] = { {
        /* handle any USB UHCI controller */
        PCI_DEVICE_CLASS(((PCI_CLASS_SERIAL_USB << 8) | 0x00), ~0),
        .driver_data =  (unsigned long) &uhci_driver,
        }, { /* end: all zeroes */ }
};

I think your device is just broken (and doesn't tell it's a USB host).
If you think it's really driven by uhci (and not by ohci), then stick
your device IDs into that table, or add those dynamically by echo'ing
them to /sys/bus/pci/drivers/uhci_hcd/new_id. You need sysfs mounted to
/sys, though.

MfG, JBG

-- 
   Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
   ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

Attachment: signature.asc
Description: Digital signature

<Prev in Thread] Current Thread [Next in Thread>