[PATCH v5 0/2] HiSilicon I2C bus recovery support

From: Bowen Yu

Date: Tue Sep 29 2026 - 08:20:52 EST


Changes since v4:
- Patch 1 (new): Add a static inline stub for acpi_has_method() in
<linux/acpi.h> for !CONFIG_ACPI builds. This is the prerequisite
for dropping the #ifdef in the driver: acpi_has_method() is the
only ACPI symbol referenced by the recovery code that lacks an
automatic stub (the ACPICA core helpers already get stubs via
ACPI_EXTERNAL_RETURN_*).
- Patch 2: Drop the #ifdef CONFIG_ACPI guard around the recovery
helpers in i2c-hisi.c. The six recovery functions are now compiled
unconditionally.

Patch 2 depends on Patch 1 for !CONFIG_ACPI compilation.

Bowen Yu (2):
ACPI: Add stub for acpi_has_method() for !CONFIG_ACPI
i2c: hisi: Add I2C bus recovery support

drivers/i2c/busses/i2c-hisi.c | 142 ++++++++++++++++++++++++++++++++++
include/linux/acpi.h | 5 ++
2 files changed, 147 insertions(+)

--
2.33.0