reset: ACPI reset support
authorKrishna Yarlagadda <kyarlagadda@nvidia.com>
Mon, 7 Mar 2022 13:56:26 +0000 (19:26 +0530)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 3 May 2022 15:41:25 +0000 (17:41 +0200)
commit82816b4ffce96e7b0df3de583037490ba7dc8792
tree38ae9891b2156788bad49e4e496dbe7ef35b82c5
parent77fb4e45260ac2e2f20616bea6aa1003f4cd168c
reset: ACPI reset support

Some of the IO devices like I2C or SPI require reset at runtime to
recover from an error condition without changing the power state of
the system. Added check for ACPI handle and a call to method '__RST'
if supported. Devices using device tree method are unaffected by this.

Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
[p.zabel@pengutronix.de: wrap in #ifdef CONFIG_ACPI due to missing stubs]
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20220307135626.16673-1-kyarlagadda@nvidia.com
drivers/reset/core.c