Linux Kernel Driver

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
LuSi

Linux Kernel Driver

Post by LuSi » Sun Jun 13, 2010 12:36 am

Hi,
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??

Post Reply