]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00281186 dmaengine: pxp: not fetch data from AS buffer if it's not used
authorRobby Cai <R63905@freescale.com>
Wed, 25 Sep 2013 05:35:46 +0000 (13:35 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:34 +0000 (10:06 +0200)
commitf5dc7d7e14fd562f7a58d2668df3ee92bf12c145
tree9a7e7df2e7ca20416de20ba745181dfe31cf3ac7
parent52412d5997053c48b0193bc7adbbfd6b5f85a228
ENGR00281186 dmaengine: pxp: not fetch data from AS buffer if it's not used

There's no explicit BIT in PxP register to disable AS buffer.
The right way to disable AS is to set ULC to a higher value than the LRC.
It has been done once in probe time, but not in run time.
This could cause one potential problem because even when ULC, LRC
and buffer address is set to 0 PxP will still fetch one pixel data from addr 0.
This patch fixes it by set ULC higher than LRC for AS if it's not used (i.e.,
no alpha-blending) at run time.

Signed-off-by: Robby Cai <R63905@freescale.com>
drivers/dma/pxp/pxp_dma_v2.c