OSDN Git Service

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)
committerWolfram Sang <wsa@kernel.org>
Fri, 4 Jun 2021 20:32:58 +0000 (22:32 +0200)
commit57648e860485de39c800a89f849fdd03c2d31d15
treebbea9ffbb7d90211540208c48b72502bdffb9934
parent9f78c607600ce4f2a952560de26534715236f612
i2c: qcom-geni: Suspend and resume the bus during SYSTEM_SLEEP_PM ops

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>
drivers/i2c/busses/i2c-qcom-geni.c