i'm writing kernel driver for vusb device. And I can't obtain vendorName and productName of my device.
I'd tried this:
Code: Select all
rv = usb_control_msg(dev->udev, usb_rcvctrlpipe(dev->udev, 0), USB_REQ_GET_DESCRIPTOR, (USB_DT_STRING << 8) , 0x0409, dev->interface, vendor, 64, 500);
It should put vendorName of VUSB device to char table vendor.
But it doesn't work. Does anyone has any idea??