kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Serial driver in-band control message
       [not found] <AM2PR02MB0689ABA3A4E9F20388D70BCEE86D0@AM2PR02MB0689.eurprd02.prod.outlook.com>
@ 2016-04-20 22:27 ` Ramon Fried
  2016-04-20 23:26   ` Valdis.Kletnieks at vt.edu
  0 siblings, 1 reply; 2+ messages in thread
From: Ramon Fried @ 2016-04-20 22:27 UTC (permalink / raw)
  To: kernelnewbies


Hi.
I'm developing a driver for a rather weird serial controller hardware.
The HW allows the host to put it in low power state.
The command for entering low power is an ASCII message sent in-band.

Till now, I used a user-space application to open the TTY port and send the command through it.
This is not acceptable solution as the device needs to be put in low power mode by its driver in the kernel.

I didn't find any example or reference on how to write characters to the serial device, or how to open and write to the  TTY device from the kernel space.
I guess this is discouraged. Do I have any other options to do so from the kernel space ?

Warm regards,
Ramon

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

* Serial driver in-band control message
  2016-04-20 22:27 ` Serial driver in-band control message Ramon Fried
@ 2016-04-20 23:26   ` Valdis.Kletnieks at vt.edu
  0 siblings, 0 replies; 2+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2016-04-20 23:26 UTC (permalink / raw)
  To: kernelnewbies

On Wed, 20 Apr 2016 22:27:27 -0000, Ramon Fried said:

> I'm developing a driver for a rather weird serial controller hardware.
> The HW allows the host to put it in low power state.
> The command for entering low power is an ASCII message sent in-band.

Do you happen to have the contact info for the vendor's pharmaceutical
supplier?  They obviously have some top-notch drugs involved. :)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160420/aa02b914/attachment.bin 

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

end of thread, other threads:[~2016-04-20 23:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <AM2PR02MB0689ABA3A4E9F20388D70BCEE86D0@AM2PR02MB0689.eurprd02.prod.outlook.com>
2016-04-20 22:27 ` Serial driver in-band control message Ramon Fried
2016-04-20 23:26   ` Valdis.Kletnieks at vt.edu

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