On Wed, Jun 24, 2009 at 05:00:32PM +0530, Prabhu Chawandi wrote: > HI alan, > > I am reading the descriptor and speed of the USB storage device, for > that I wrote an ioctl locally, That should not be needed, it should already be in the structures you have within the kernel, and from sysfs in userspace. > Here is the code segment returning error --- > > ret = usb_control_msg(pRootHub, usb_rcvctrlpipe(pRootHub, 0), > USB_REQ_GET_STATUS, USB_DIR_IN | USB_RT_PORT, 0, > port_num + 1, portsts, sizeof(struct usb_hub_status), > 5000/* HZ */); > if (ret < 0) { > err("3 HUB_PORT: --> %s (%d) failed (err = %d)", > __FUNCTION__, pRootHub->devnum, ret); > } > > I am getting the above error: > > Getting in depth, I am having two HCDs, How can I check which HCD is > being used ? You should not care at all about this, why are you? confused, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html