]> git.baikalelectronics.ru Git - kernel.git/commit
bus: mhi: ep: Save channel state locally during suspend and resume
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 28 Dec 2022 16:17:04 +0000 (21:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:34:31 +0000 (09:34 +0100)
commita5c8be60a7307270a0ee0205d135799a449dc5da
tree12c7959a6a72db4fb2b3dc99f1df65c2e579586c
parent4047bcfff03f9bf68eb1288e3c2c9f0d83145d8e
bus: mhi: ep: Save channel state locally during suspend and resume

commit 1a891d57a6cf4d925c9ac2a37d4d857b2f21cd9e upstream.

During suspend and resume, the channel state needs to be saved locally.
Otherwise, the endpoint may access the channels while they were being
suspended and causing access violations.

Fix it by saving the channel state locally during suspend and resume.

Cc: <stable@vger.kernel.org> # 5.19
Fixes: 9ac68db5eafd ("bus: mhi: ep: Add support for suspending and resuming channels")
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com)
Link: https://lore.kernel.org/r/20221228161704.255268-7-manivannan.sadhasivam@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/mhi/ep/main.c