]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
bus: mhi: core: Cache intmod from mhi event to mhi channel
authorHemant Kumar <hemantk@codeaurora.org>
Thu, 21 May 2020 17:02:37 +0000 (22:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 May 2020 07:35:41 +0000 (09:35 +0200)
commit44d4e063d18b87c0fef1b19f7883f10e71c544b6
tree39d2b18b6b9cdd02c57d6fc67940f10d2171ea94
parentcd116318803f5ee222301f3525578241a04822ee
bus: mhi: core: Cache intmod from mhi event to mhi channel

Driver is using zero initialized intmod value from mhi channel when
configuring TRE for bei field. This prevents interrupt moderation to
take effect in case it is supported by an event ring. Fix this by
copying intmod value from associated event ring to mhi channel upon
registering mhi controller.

Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Reviewed-by: Jeffrey Hugo <jhugo@codeaurora.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20200521170249.21795-3-manivannan.sadhasivam@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/mhi/core/init.c