OSDN Git Service

mtd: powernv_flash: Use opal_async_wait_response_interruptible()
authorCyril Bur <cyrilbur@gmail.com>
Fri, 3 Nov 2017 02:41:46 +0000 (13:41 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Nov 2017 09:39:31 +0000 (20:39 +1100)
commit6f469b67ff8a3ec2698ef1041229e111065013ce
treea8bd54a13158fabb6fe45eef61c86586df03b313
parent77adbd2207e858f5923aa94e4a7d2f29f09217ed
mtd: powernv_flash: Use opal_async_wait_response_interruptible()

The OPAL calls performed in this driver shouldn't be using
opal_async_wait_response() as this performs a wait_event() which, on
long running OPAL calls could result in hung task warnings. wait_event()
prevents timely signal delivery which is also undesirable.

This patch also attempts to quieten down the use of dev_err() when
errors haven't actually occurred and also to return better information up
the stack rather than always -EIO.

Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/mtd/devices/powernv_flash.c