]> git.baikalelectronics.ru Git - kernel.git/commit
bus: mhi: core: Skip handling BHI irq if MHI reg access is not allowed
authorHemant Kumar <hemantk@codeaurora.org>
Thu, 21 May 2020 17:02:46 +0000 (22:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 May 2020 07:35:44 +0000 (09:35 +0200)
commitada5e1def5da623cbf5709c921fd22cc321cd233
treefb648bdd11fdc851338604019d4f11dca66d2422
parent3c1bd0047124f506294520341cfe03e19ea773e3
bus: mhi: core: Skip handling BHI irq if MHI reg access is not allowed

Driver continues handling of BHI interrupt even if MHI register access
is not allowed. By doing so it calls the status call back and performs
early notification for the MHI client. This is not needed when MHI
register access is not allowed. Hence skip the handling in this case and
return. Also add debug log to print device state, local EE and device EE
when reg access is valid.

Signed-off-by: Hemant Kumar <hemantk@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-12-manivannan.sadhasivam@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/mhi/core/main.c