]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: tegra: Fix reset error handling with ACPI
authorAkhil R <akhilrajeev@nvidia.com>
Thu, 10 Jul 2025 13:12:04 +0000 (18:42 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Aug 2025 08:48:42 +0000 (09:48 +0100)
commit5622108c3041ee7903392e16e98c959cb8bcf84f
treeefca974ec905919c06005e16bbacc4d95d71f91c
parent42c4471b30fa203249f476dd42321cd7efb7f6a8
i2c: tegra: Fix reset error handling with ACPI

commit 56344e241c543f17e8102fa13466ad5c3e7dc9ff upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-tegra.c