Subject: Re: Huawei E220 support?
To: Matthias Drochner <M.Drochner@fz-juelich.de>
From: Dieter Baron <dillo@danbala.tuwien.ac.at>
List: current-users
Date: 11/29/2007 13:02:20
hi,
> dillo@danbala.ifoer.tuwien.ac.at said:
> > #define UBSA_CONFIG_INDEX 1
>
> What happens if you change this to 0?
ubsa0 at uhub1 port 2
ubsa0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2
ubsa0: Could not find interrupt in
This is the code that sets sc->intr_number:
sc->sc_intr_number = -1;
[...]
id = usbd_get_interface_descriptor(sc->sc_iface);
[...]
for (i = 0; i < id->bNumEndpoints; i++) {
ed = usbd_interface2endpoint_descriptor(sc->sc_iface,
i);
if (ed == NULL) {
printf("%s: no endpoint descriptor for %d\n",
USBDEVNAME(sc->sc_dev), i);
sc->sc_dying = 1;
goto error;
}
if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN &&
UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT)
{
sc->sc_intr_number = ed->bEndpointAddress;
sc->sc_isize = UGETW(ed->wMaxPacketSize);
}
[...]
}
if (sc->sc_intr_number == -1) {
printf("%s: Could not find interrupt in\n", devname);
sc->sc_dying = 1;
goto error;
}
thanks,
dillo