[lkml]   [2017]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/1] usb: gadget: u_serial: Use kfifo instead of homemade circular buffer
Hi Felipe,

On 11/28/2017 04:05 PM, Felipe Balbi wrote:
> Hi,
> Lu Baolu <> writes:
>> The kernel FIFO implementation, kfifo, provides interfaces to manipulate
>> a first-in-first-out circular buffer. Use kfifo instead of the homemade
>> one to make the code more concise and readable.
>> Signed-off-by: Lu Baolu <>
> Thanks :-) Can you give a little description of how you tested this?

I tested it on an Intel Skylake box. On the gadget side, I loaded a serial
device (#modprobe g_serial). And then, connected it with a host.

On the gadget side, I run below scripts:


for j in `seq 1 200`;
for i in `seq 1 50000`;
echo $i.$j > /dev/ttyGS0

And, on the host side,

#cat /dev/ttyACM0

Best regards,
Lu Baolu

 \ /
  Last update: 2017-11-29 00:34    [W:0.087 / U:10.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site