usb mass storage ADSC cmd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

I am trying to implement a communication between the host and a usb mass storage device using ADSC cmd. The device is using the g_mass_storage gadget driver. So far, broken pipe (-32) from the host side is all what I have got. My questions are:

1. Could the device support ADSC cmd even it is using SCSI transport instead of CBI transport?
2. Is this composite correct for the host to retrieve 1 byte response from the device using ADSC?
usb_control_msg(udev,
	usb_rcvctrlpipe(udev, 0),
	0,	// ADSC
	USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE, // type
	0,	// value
	0,	// index
	buf,	// recv buf
	1,	// size
	10*HZ);	// timeout

Thanks,

Dave Tian
dave.jing.tian@xxxxxxxxx
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux