diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-03-26 18:02:33 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-03-30 16:10:32 +0300 |
commit | 741de617661794246f84a21a02fc5e327bffc9ad (patch) | |
tree | b85a6830c1722c33d3c8b2db55a4ccc0f3b2308f /drivers/macintosh/windfarm_ad7417_sensor.c | |
parent | 0f9bdfe3c77091e8704d2e510eb7c2c2c6cde524 (diff) | |
download | linux-741de617661794246f84a21a02fc5e327bffc9ad.tar.xz |
powerpc/powernv: Handle unknown OPAL errors in opal_nvram_write()
opal_nvram_write currently just assumes success if it encounters an
error other than OPAL_BUSY or OPAL_BUSY_EVENT. Have it return -EIO
on other errors instead.
Fixes: 628daa8d5abf ("powerpc/powernv: Add RTC and NVRAM support plus RTAS fallbacks")
Cc: stable@vger.kernel.org # v3.2+
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Acked-by: Stewart Smith <stewart@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/macintosh/windfarm_ad7417_sensor.c')
0 files changed, 0 insertions, 0 deletions