[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <536A61A3.3050601@wwwdotorg.org>
Date: Wed, 07 May 2014 10:38:59 -0600
From: Stephen Warren <swarren@...dotorg.org>
To: Christopher Freeman <cfreeman@...dia.com>, ldewangan@...dia.com,
swarren@...dia.com, vinod.koul@...el.com, dan.j.williams@...el.com
CC: dmaengine@...r.kernel.org, linux-tegra@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1 3/3] dma: tegra: avoid int overflow for transferred
count
On 05/06/2014 03:22 PM, Christopher Freeman wrote:
> bytes_transferred will overflow during long audio playbacks. Since
> the driver only ever consults this value modulo bytes_requested, store the
> value modulo bytes_requested.
The audio driver may only interpret the value modulo bytes_requested,
but what about other drivers such as the high-speed UART (and SPI?) drivers?
What is the dmaengine API's design requirement here, and what do other
dmaengine drivers do. If it's to store the modulo, then I'm fine with
this change.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists