Re: [PATCH v4 04/10] mtd: powernv_flash: Don't return -ERESTARTSYS on interrupted token acquisition

2017-10-30 Thread Boris Brezillon
On Tue, 10 Oct 2017 14:32:56 +1100 Cyril Bur wrote: > Because the MTD core might split up a read() or write() from userspace > into several calls to the driver, we may fail to get a token but already > have done some work, best to return -EINTR back to userspace and have > them decide what to do.

[PATCH v4 04/10] mtd: powernv_flash: Don't return -ERESTARTSYS on interrupted token acquisition

2017-10-09 Thread Cyril Bur
Because the MTD core might split up a read() or write() from userspace into several calls to the driver, we may fail to get a token but already have done some work, best to return -EINTR back to userspace and have them decide what to do. Signed-off-by: Cyril Bur --- drivers/mtd/devices/powernv_f