Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9673ff38 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dcc_v2: fix 1 write 1 read register configuration fail issue"

parents 029363db 7f71bed4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1110,7 +1110,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 */