mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
dcc_v2: fix 1 write 1 read register configuration fail issue
Re-use base address from last entry only when the decs_type of last entry equal to "DCC_ADDR_TYPE" in dcc_config_add(). Change-Id: I6c678ddaac6c689d73b14c63d03abdbd6289dc0c Signed-off-by: Yuanfang Zhang <zhangyuanfang@codeaurora.org>
This commit is contained in:
parent
38b1718d28
commit
d59a83501c
1 changed files with 2 additions and 1 deletions
|
|
@ -1053,7 +1053,8 @@ static int dcc_config_add(struct dcc_drvdata *drvdata, unsigned int addr,
|
|||
pentry = list_last_entry(&drvdata->cfg_head[drvdata->curr_list],
|
||||
struct dcc_config_entry, list);
|
||||
|
||||
if (addr >= (pentry->base + pentry->offset) &&
|
||||
if (pentry->desc_type == DCC_ADDR_TYPE &&
|
||||
addr >= (pentry->base + pentry->offset) &&
|
||||
addr <= (pentry->base + pentry->offset + MAX_DCC_OFFSET)) {
|
||||
|
||||
/* Re-use base address from last entry */
|
||||
|
|
|
|||
Loading…
Reference in a new issue