Re: serial: start_tx & buffer handling

2018-05-04 Thread Muni Sekhar
On Fri, May 4, 2018 at 5:44 PM, loïc tourlonias wrote: > Hi > > On Fri, May 4, 2018 at 6:31 AM, Muni Sekhar wrote: >>> >>> On Fri, May 4, 2018 at 12:04 AM, Greg KH wrote: >>> > On Thu, May 03, 2018 at 08:08:48PM +0530, Muni Sekhar wrote: >>> >> Hi All, >>> >> >>> >> I’m trying to understand ho

Re: serial: start_tx & buffer handling

2018-05-04 Thread loïc tourlonias
Hi On Fri, May 4, 2018 at 6:31 AM, Muni Sekhar wrote: >> >> On Fri, May 4, 2018 at 12:04 AM, Greg KH wrote: >> > On Thu, May 03, 2018 at 08:08:48PM +0530, Muni Sekhar wrote: >> >> Hi All, >> >> >> >> I’m trying to understand how user mode buffer is written to low level >> >> serial hardware re

Re: serial: start_tx & buffer handling

2018-05-03 Thread Muni Sekhar
On Fri, May 4, 2018 at 12:04 AM, Greg KH wrote: > On Thu, May 03, 2018 at 08:08:48PM +0530, Muni Sekhar wrote: >> Hi All, >> >> I’m trying to understand how user mode buffer is written to low level >> serial hardware registers. >> >> For this I read the kernel code and I came to know that from use

Re: serial: start_tx & buffer handling

2018-05-03 Thread Greg KH
On Thu, May 03, 2018 at 08:08:48PM +0530, Muni Sekhar wrote: > Hi All, > > I’m trying to understand how user mode buffer is written to low level > serial hardware registers. > > For this I read the kernel code and I came to know that from user mode > write() API lands into kernel’s tty_write() ("

serial: start_tx & buffer handling

2018-05-03 Thread Muni Sekhar
Hi All, I’m trying to understand how user mode buffer is written to low level serial hardware registers. For this I read the kernel code and I came to know that from user mode write() API lands into kernel’s tty_write() ("drivers/tty/tty_io.c") and then it calls a uart_write() ("drivers/tty/seria