Thread (11 messages) 11 messages, 3 authors, 2020-05-13

Re: [PATCH 2/3] input: serio: allow more than one byte to be sent at once

From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Date: 2020-05-07 20:25:51
Also in: linux-media

On Thu, May 07, 2020 at 02:53:36PM +0100, Sean Young wrote:
serio drivers can only send one byte at a time. If the underlying tty
is a usb serial port, then each byte will be put into separate usb
urbs, which is not efficient.

Additionally, the Infrared Toy device refuses to transmit IR if the
IR data is sent one byte at a time. IR data is formatted in u16 values,
and the firmware expects complete u16 values in the packet.

https://github.com/DangerousPrototypes/USB_IR_Toy/blob/master/Firmware-main/IRs.c#L240
Ummm, serial protocol data size is at most 9 bits so I have no earthly
idea how they expect to get 16.

serio is explicitly byte-oriented layer, of you need to exchange
larger data I'd recommend using USB natively maybe?

Thanks.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help