Re: Serial driver in-band control message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 20, 2016 at 08:46:10AM +0000, Ramon Fried wrote:
> 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.

Why not just have userspace do this?

And are you sure the UART itself is needing this, or is it the device
attached to the serial port?

> 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 ?

Get a different vendor?  :)

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux