bus: mhi: host: Add a separate timeout parameter for waiting ready
authorQiang Yu <quic_qianyu@quicinc.com>
Tue, 7 Nov 2023 08:14:49 +0000 (16:14 +0800)
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Thu, 14 Dec 2023 05:27:34 +0000 (10:57 +0530)
commit6ab3d50b106c9aea123a80551a6c9deace83b914
tree2d50880ed7bb8e66d9925a1ae58e8a27b12cfdb5
parent987fdb5a43a66764808371b54e6047834170d565
bus: mhi: host: Add a separate timeout parameter for waiting ready

Some devices(eg. SDX75) take longer than expected (default, 8 seconds) to
set ready after reboot. Hence add optional ready timeout parameter and pass
the appropriate timeout value to mhi_poll_reg_field() to wait enough for
device ready as part of power up sequence.

Signed-off-by: Qiang Yu <quic_qianyu@quicinc.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/1699344890-87076-2-git-send-email-quic_qianyu@quicinc.com
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
drivers/bus/mhi/host/init.c
drivers/bus/mhi/host/internal.h
drivers/bus/mhi/host/main.c
drivers/bus/mhi/host/pm.c
include/linux/mhi.h