diff options
author | Akhil R <akhilrajeev@nvidia.com> | 2025-07-10 16:12:04 +0300 |
---|---|---|
committer | Andi Shyti <andi.shyti@kernel.org> | 2025-07-24 01:38:00 +0300 |
commit | 56344e241c543f17e8102fa13466ad5c3e7dc9ff (patch) | |
tree | c1696552cf720c3ce0aeaa7f8bbe247358fa90e9 /lib/crypto/mpi/mpi-sub-ui.c | |
parent | 89be9a83ccf1f88522317ce02f854f30d6115c41 (diff) | |
download | linux-56344e241c543f17e8102fa13466ad5c3e7dc9ff.tar.xz |
i2c: tegra: Fix reset error handling with ACPI
The acpi_evaluate_object() returns an ACPI error code and not
Linux one. For the some platforms the err will have positive code
which may be interpreted incorrectly. Use device_reset() for
reset control which handles it correctly.
Fixes: bd2fdedbf2ba ("i2c: tegra: Add the ACPI support")
Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Cc: <stable@vger.kernel.org> # v5.17+
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250710131206.2316-2-akhilrajeev@nvidia.com
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions