Re: [PATCH] USB: gadget: add function module for vendor specific interface

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

 



On 15.06.2012 23:32, Greg Kroah-Hartman wrote:
> On Wed, Jun 13, 2012 at 01:07:50PM +0200, Daniel Mack wrote:
>> This new gadget function driver adds a vendor-specific interface with
>> two bulk endpoints. A misc device is registered and data sent to the
>> OUT endpoint of the interface is available as input stream to userspace
>> applications, and writing data to the char device from userspace will
>> issue IN packets on the USB interface.
>>
>> There is currently no user of this module in mainline, but it can be
>> easily added to any existing HID device drivers.
> 
> As Felipe pointed out, what's wrong with gadgetfs for stuff like this?
> That is what it was written for.
> 
> Creating a new misc device for something so basic as this seems very
> odd.  If all you need is a stream of data, what's wrong with the serial
> gadget code?  Shouldn't that do the same thing for you?
> 
> Why was this code created?  What is using it?

Most probably because I didn't know about the alternative solution,
sorry. I'll have a look and come back in case I still have problem.

Sorry, and thanks for the pointer!


Daniel


--
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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux