kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* [usb-serial] Support for console read from usb serial driver
@ 2018-02-01 18:22 Ivid Suvarna
  2018-02-01 20:15 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Ivid Suvarna @ 2018-02-01 18:22 UTC (permalink / raw)
  To: kernelnewbies

Hi All,

I was going through usb serial driver console related source code
(drivers/usb/serial/console.c) in linux kernel and came across
"usb_console_write" function and was wondering if any usb serial
convertor drivers were using this function? If so any pointers on how
it is being used?

Also can we implement something like "usb_console_read" which can be
useful for interactive debugging like in kgdb. I saw kgdb using
something like "poll_get_char and poll_put_char". I found them in most
of serial drivers like 8250 and so on.

I am using pl2303 usb to serial convertor for getting a serial
console. Is there any way to implement something like usb_console_read
in usb serial drivers? Can you guys give me some pointers on this.

Thanks,
IVID

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

* [usb-serial] Support for console read from usb serial driver
  2018-02-01 18:22 [usb-serial] Support for console read from usb serial driver Ivid Suvarna
@ 2018-02-01 20:15 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2018-02-01 20:15 UTC (permalink / raw)
  To: kernelnewbies

On Thu, Feb 01, 2018 at 11:52:18PM +0530, Ivid Suvarna wrote:
> Hi All,
> 
> I was going through usb serial driver console related source code
> (drivers/usb/serial/console.c) in linux kernel and came across
> "usb_console_write" function and was wondering if any usb serial
> convertor drivers were using this function? If so any pointers on how
> it is being used?

Yes, they all can use it.  Have you tried?

> Also can we implement something like "usb_console_read" which can be
> useful for interactive debugging like in kgdb. I saw kgdb using
> something like "poll_get_char and poll_put_char". I found them in most
> of serial drivers like 8250 and so on.

kgdb needs to run without interrupts enabled, which is impossible for
USB normally.  There has been external patches to get USB to work for
debugging, but that might have only been for simple keyboards.

> I am using pl2303 usb to serial convertor for getting a serial
> console. Is there any way to implement something like usb_console_read
> in usb serial drivers? Can you guys give me some pointers on this.

It should "just work" today for you.  What did you try that was not
working properly?

thanks,

greg k-h

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

end of thread, other threads:[~2018-02-01 20:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-01 18:22 [usb-serial] Support for console read from usb serial driver Ivid Suvarna
2018-02-01 20:15 ` Greg KH

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