disp: msm: dsi: create generic interface for read poll timeout
Creating a generic api that can be used with the driver for read poll timeouts. This allows for easy overriding of the function, if necessary. Change-Id: I7bc5176ebabe782089b1a4d6e94c17ad3eb9ada4 Signed-off-by: Nilaan Gunabalachandran <ngunabal@codeaurora.org> Signed-off-by: Michael Ru <mru@codeaurora.org>
This commit is contained in:

committed by
Michael Ru

parent
f470ecf038
commit
f3c66e9c1b
@@ -598,7 +598,7 @@ static int dsi_pll_5nm_lock_status(struct dsi_pll_resource *pll)
|
||||
u32 const delay_us = 100;
|
||||
u32 const timeout_us = 5000;
|
||||
|
||||
rc = readl_poll_timeout_atomic(pll->pll_base + PLL_COMMON_STATUS_ONE,
|
||||
rc = DSI_READ_POLL_TIMEOUT_ATOMIC_GEN(pll->pll_base, pll->index, PLL_COMMON_STATUS_ONE,
|
||||
status,
|
||||
((status & BIT(0)) > 0),
|
||||
delay_us,
|
||||
|
Reference in New Issue
Block a user