Re: [PATCH 1/2] dmaengine: zxdma: Fix data width bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 05, 2015 at 11:32:00AM +0800, Jun Nie wrote:
> 2015-08-05 11:24 GMT+08:00 Vinod Koul <vinod.koul@xxxxxxxxx>:
> > On Tue, Jul 21, 2015 at 11:01:05AM +0800, Jun Nie wrote:
> >> Align src and dst width to fix data alignment issue. Hardware
> >> burst length limitation can be addressed well too.
> > What is the data alignment issue you have? Why not document that in code and
> > changelog?

??


> >>
> >> Signed-off-by: Jun Nie <jun.nie@xxxxxxxxxx>
> >> ---
> >>  drivers/dma/zx296702_dma.c | 8 ++++----
> >>  1 file changed, 4 insertions(+), 4 deletions(-)
> >>
> >> diff --git a/drivers/dma/zx296702_dma.c b/drivers/dma/zx296702_dma.c
> >> index ec470bc..4757f74 100644
> >> --- a/drivers/dma/zx296702_dma.c
> >> +++ b/drivers/dma/zx296702_dma.c
> >> @@ -143,6 +143,7 @@ static void zx_dma_terminate_chan(struct zx_dma_phy *phy, struct zx_dma_dev *d)
> >>
> >>       val = readl_relaxed(phy->base + REG_ZX_CTRL);
> >>       val &= ~ZX_CH_ENABLE;
> >> +     val |= ZX_FORCE_CLOSE;
> > how is this related to data width?
> 
> Burst length has limitation and destination burst length is calculated
> from other src/dst parameters. So it is safe to align src/dst data
> width to avoid to run into limitation.

thats fine but what does it have to do with terminate and ZX_FORCE_CLOSE?

-- 
~Vinod
--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux