From: Russell King - ARM Linux Date: Mon, 3 Jan 2011 22:36:50 +0000 (+0000) Subject: ARM: PL08x: don't assume that the LLI pointer has the bus bit clear X-Git-Tag: v2.6.38-rc1~25^2~11^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c0df6a3ce8eb947647c7ed2640d0172936d8ef3;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git ARM: PL08x: don't assume that the LLI pointer has the bus bit clear We only want use the address of the LLI pointer when locating the corresponding structure in memory, so clear the master bus selection bit. Signed-off-by: Russell King Acked-by: Linus Walleij Signed-off-by: Dan Williams --- diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index 78c84b3..1081165 100644 --- a/drivers/dma/amba-pl08x.c +++ b/drivers/dma/amba-pl08x.c @@ -356,7 +356,7 @@ static u32 pl08x_getbytes_chan(struct pl08x_dma_chan *plchan) if (ch && txd) { struct pl08x_lli *llis_va = txd->llis_va; struct pl08x_lli *llis_bus = (struct pl08x_lli *) txd->llis_bus; - u32 clli = readl(ch->base + PL080_CH_LLI); + u32 clli = readl(ch->base + PL080_CH_LLI) & ~PL080_LLI_LM_AHB2; /* First get the bytes in the current active LLI */ bytes = get_bytes_in_cctl(readl(ch->base + PL080_CH_CONTROL));