mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
disp: pll: Fix cfg1 value when pclk_src_mux parent is updated
Currently, PLL_CFG1(1:0) register is updated with cached values in dsi_pll_enable. This can create issue when UEFI and kernel cfg1 programming is not same. To fix it, return cached value of cfg1 when its read in pclk_mux_read, so that pclk_mux_write is called and cached value is updated. This fix is for 10nm pll. Change-Id: I8465cb9027a1639f3cdeb02274513ac680f84632 Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
This commit is contained in:
parent
043cd065b3
commit
272f660e76
1 changed files with 7 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#define pr_fmt(fmt) "%s: " fmt, __func__
|
||||
|
|
@ -282,6 +282,12 @@ static inline int pclk_mux_read_sel(void *context, unsigned int reg,
|
|||
int rc = 0;
|
||||
struct dsi_pll_resource *rsc = context;
|
||||
|
||||
/* Return cached cfg1 as its updated with cached cfg1 in pll_enable */
|
||||
if (!rsc->handoff_resources) {
|
||||
*val = (rsc->cached_cfg1) & 0x3;
|
||||
return rc;
|
||||
}
|
||||
|
||||
*val = (DSI_PLL_REG_R(rsc->phy_base, reg) & 0x3);
|
||||
|
||||
return rc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue