]> git.ipfire.org Git - thirdparty/linux.git/commit
powerpc/pseries/eeh: use correct API for error log size
authorNathan Lynch <nathanl@linux.ibm.com>
Fri, 18 Nov 2022 15:07:43 +0000 (09:07 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 7 Dec 2022 11:39:50 +0000 (22:39 +1100)
commit9aafbfa5f57a4b75bafd3bed0191e8429c5fa618
tree95d3f1908047ec4938298161dc1574bc3dc6e1e4
parent6c606e57eecc37d6b36d732b1ff7e55b7dc32dd4
powerpc/pseries/eeh: use correct API for error log size

rtas-error-log-max is not the name of an RTAS function, so rtas_token()
is not the appropriate API for retrieving its value. We already have
rtas_get_error_log_max() which returns a sensible value if the property
is absent for any reason, so use that instead.

Fixes: 8d633291b4fc ("powerpc/eeh: pseries platform EEH error log retrieval")
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
[mpe: Drop no-longer possible error handling as noticed by ajd]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221118150751.469393-6-nathanl@linux.ibm.com
arch/powerpc/platforms/pseries/eeh_pseries.c