]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: powernv_flash: Don't treat OPAL_SUCCESS as an error
authorCyril Bur <cyrilbur@gmail.com>
Fri, 3 Nov 2017 02:41:38 +0000 (13:41 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Nov 2017 09:20:26 +0000 (20:20 +1100)
commiteeae59acb4d59a01fa9c83d5a8bfdabd17d93d40
tree40703bc32546880bd5ff70fb2cd392abd47c73e7
parent1ce3d1dd3c7df56adeefd062b6bff235c25e6f88
mtd: powernv_flash: Don't treat OPAL_SUCCESS as an error

While this driver expects to interact asynchronously, OPAL is well
within its rights to return OPAL_SUCCESS to indicate that the operation
completed without the need for a callback. We shouldn't treat
OPAL_SUCCESS as an error rather we should wrap up and return promptly to
the caller.

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