Re: SERIAL_IMX in RS485 mode - EOT, read back
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Stefan Agner <stefan@xxxxxxxx>, Linus Walleij <linus.walleij@xxxxxxxxxx>
- Subject: Re: SERIAL_IMX in RS485 mode - EOT, read back
- From: Adam Rudziński <adam.rudzinski@xxxxxxxxxx>
- Date: Fri, 14 Sep 2018 10:09:44 +0200
- Cc: Dong Aisheng <aisheng.dong@xxxxxxx>, Shawn Guo <shawnguo@xxxxxxxxxx>, Pengutronix Kernel Team <kernel@xxxxxxxxxxxxxx>, Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>, Fabio Estevam <festevam@xxxxxxxxx>, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx>, linux-serial@xxxxxxxxxxxxxxx, Baruch Siach <baruch@xxxxxxxxxx>, Clemens Gruber <clemens.gruber@xxxxxxxxxxxx>
- In-reply-to: <110471b4-ab73-16cb-3a0e-568706c4b88c@arf.net.pl>
- References: <3f93a756-c165-bf5d-a81e-c5909ba208aa@arf.net.pl> <CAOMZO5ArmmQvPfJR++VgXDDi8YBd8CJjHuFdLnegkCEaYJNnig@mail.gmail.com> <42fb908a-d0d0-af6b-42af-73120a6fe383@arf.net.pl> <CAOMZO5BBTroDav=LiVsC6zcGZ3vw0cCXLKtpGYQ4Y4V8XiseOg@mail.gmail.com> <7136ce4a-7a92-bc6b-48e7-9cca779ab00b@arf.net.pl> <20180911055428.tkqxwrtt6wdhe74x@pengutronix.de> <49001ccf-f081-5444-3bcd-be9aeb39cabc@arf.net.pl> <CACRpkda_wks20=SGpHG4xqpmWcmZ1gzQOtp-SEoWFHnPR70RMw@mail.gmail.com> <2b7b9409-7e2a-b78d-c24a-570a0ff4cbc6@arf.net.pl> <CACRpkdZ5i9YqcMyOqBsA37PnQpLGLwSzxmy3+V8aT7zkEwVBrw@mail.gmail.com> <40051267720dfe715c8948185dd7788e@agner.ch> <110471b4-ab73-16cb-3a0e-568706c4b88c@arf.net.pl>
- User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
1) Since RS485 is half-duplex, it is necessary to share transmission
time with other devices. I think that for reasons of flexibility the
preferred solution would be to control that from application, not from
the driver. But to do that properly, the information that the TX
buffer is empty would be welcome (note: not that TX buffer can accept
more bytes, but that there are no more left for sending out). Is it
available somewhere already?
Probably the way to go is tcdrain(). Does it really wait until hardware
completes the transmission, or some "intermediate" buffer becomes empty?
Best regards,
Adam
[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]