i2c: qcom-geni: Suspend and resume the bus during SYSTEM_SLEEP_PM ops
authorRoja Rani Yarubandi <rojay@codeaurora.org>
Tue, 25 May 2021 13:10:51 +0000 (18:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jun 2021 11:39:29 +0000 (13:39 +0200)
commiteddf2d9f76b01201dd778f2d36d75b8050217cf7
tree9ba51720ea4a9bf5e25e793dd1865d21d25e4612
parentf20eef4d068637dc48ed24887ebc7b1faa860ae5
i2c: qcom-geni: Suspend and resume the bus during SYSTEM_SLEEP_PM ops

commit 57648e860485de39c800a89f849fdd03c2d31d15 upstream.

Mark bus as suspended during system suspend to block the future
transfers. Implement geni_i2c_resume_noirq() to resume the bus.

Fixes: 37692de5d523 ("i2c: i2c-qcom-geni: Add bus driver for the Qualcomm GENI I2C controller")
Signed-off-by: Roja Rani Yarubandi <rojay@codeaurora.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-qcom-geni.c