]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita8d8194487cca3eb8fa2201524db07050386f997
tree38ae9891b2156788bad49e4e496dbe7ef35b82c5
parentdffac3a0e94635d8a5e261b0fd07ea2abfa47d51
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