linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* USB cdc-acm driver: break and command
@ 2025-07-15 21:00 H. Peter Anvin
  2025-07-16  6:58 ` Greg KH
  2025-07-16  8:29 ` Oliver Neukum
  0 siblings, 2 replies; 9+ messages in thread
From: H. Peter Anvin @ 2025-07-15 21:00 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: linux-usb, linux-kernel, gregkh, Jiri Slaby, linux-serial

Hi,

I noticed looking at the CDC-ACM driver that it uses the assert/local 
delay/deassert method of sending BREAK.  Given that the CDC model has a 
delay specifier in the command packet, is there any reason not to set 
TTY_DRIVER_HARDWARE_BREAK and sending only one packet?

I'm also wondering if it would make sense to support the 
SEND_ENCAPSULATED_COMMAND and GET_ENCAPSULATED_RESPONSE commands, 
presumably via an ioctl().  I'm not 100% sure because I'm not sure there 
aren't potential security issues.

I'm guessing both of these could be of some use to embedded devices that 
emulate a ttyACM serial port.

	-hpa


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-07-17 11:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-15 21:00 USB cdc-acm driver: break and command H. Peter Anvin
2025-07-16  6:58 ` Greg KH
2025-07-16  8:29 ` Oliver Neukum
2025-07-16 15:06   ` H. Peter Anvin
2025-07-16 16:17     ` Oliver Neukum
2025-07-16 17:30       ` H. Peter Anvin
2025-07-17 11:32         ` Oliver Neukum
2025-07-16 17:49       ` H. Peter Anvin
2025-07-17 11:28         ` Oliver Neukum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).