Thread (6 messages) 6 messages, 5 authors, 2021-12-15

Re: [PATCH v2] serial-uartlite: Remove an un-necessary read of control register

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2021-11-24 10:08:00

On Tue, Nov 23, 2021 at 06:43:48PM +0530, Shubhrajyoti Datta wrote:
The control register is a writeonly register that's why reading it
doesn't make any sense.
The manual states "This is a write-only register. Issuing a read request
to the control register generates the read acknowledgment with zero data."
Are you sure this is ok to remove?  Usually you have to do a read after
a write to ensure that the write succeeded.

What ensures that the write succeeded now if you remove this read?

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help