On Tue, 26 Jun 2007, linlei 60022748 wrote: > Phil, > Thank you for accept the unusual_devs.h portion of the previous patch. > > Greg, > This is the updated patch, please check it.
> +/* This places the HUAWEI E220 devices in multi-port mode */ > +int usb_stor_switch_ports_init(struct us_data *us) > +{ > + int result = 0; > + us->iobuf[0] = 0x1; > + result = usb_control_msg(us->pusb_dev, usb_sndctrlpipe(us->pusb_dev, 0), > + USB_REQ_SET_FEATURE, USB_TYPE_STANDARD | USB_RECIP_DEVICE, > + 0x01, 0x0, us->iobuf, 0x1, 1000); > + US_DEBUGP("usb_control_msg performing result is %d\n", result); > + return (result ? 0 : -1); > +} You should call usb_stor_control_msg() instead of usb_control_msg(). Also you don't need to call usb_sndctrlpipe(); you can use us->send_ctrl_pipe directly. Alan Stern ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel