]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: qcom-geni: Add shutdown callback for i2c
authorRoja Rani Yarubandi <rojay@codeaurora.org>
Tue, 25 May 2021 13:10:50 +0000 (18:40 +0530)
committerWolfram Sang <wsa@kernel.org>
Fri, 4 Jun 2021 20:32:39 +0000 (22:32 +0200)
commitc34d7d58d4288124ca7e3d17ae32723c1a8425ef
tree5f47caefc65af82f42209d4561dd2844f63f96db
parentf29a3e7f9553a664174f0c27d3fc01fd08ce2217
i2c: qcom-geni: Add shutdown callback for i2c

If the hardware is still accessing memory after SMMU translation
is disabled (as part of smmu shutdown callback), then the
IOVAs (I/O virtual address) which it was using will go on the bus
as the physical addresses which will result in unknown crashes
like NoC/interconnect errors.

So, implement shutdown callback for i2c driver to suspend the bus
during system "reboot" or "shutdown".

Fixes: b5b98d863e51 ("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