Re: [PATCH 2/4] serdev: make synchronous write return bytes written

2018-11-20 Thread Johan Hovold
On Mon, Nov 19, 2018 at 09:15:37AM -0600, Rob Herring wrote: > On Wed, Nov 14, 2018 at 9:10 AM Johan Hovold wrote: > > > > Make the synchronous serdev_device_write() helper behave analogous to > > the asynchronous serdev_device_write_buf() by returning the number of > > bytes written (or rather bu

Re: [PATCH 2/4] serdev: make synchronous write return bytes written

2018-11-19 Thread Rob Herring
On Wed, Nov 14, 2018 at 9:10 AM Johan Hovold wrote: > > Make the synchronous serdev_device_write() helper behave analogous to > the asynchronous serdev_device_write_buf() by returning the number of > bytes written (or rather buffered) also on timeout. > > This will allow drivers to distinguish the

[PATCH 2/4] serdev: make synchronous write return bytes written

2018-11-14 Thread Johan Hovold
Make the synchronous serdev_device_write() helper behave analogous to the asynchronous serdev_device_write_buf() by returning the number of bytes written (or rather buffered) also on timeout. This will allow drivers to distinguish the case where data was partially written from the case where no da