Skip to content

Commit

Permalink
Revert "bcm2835-dma: Limit cyclic transfers on lite channels to 32k"
Browse files Browse the repository at this point in the history
This reverts commit 052c200.
  • Loading branch information
msperl authored and DigitalDreamtime committed Jun 9, 2016
1 parent dd03312 commit 7456547
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/dma/bcm2835-dma.c
Expand Up @@ -144,12 +144,6 @@ struct bcm2835_desc {
*/
#define MAX_LITE_TRANSFER (SZ_64K - 4)

/*
* Transfers larger than 32k cause issues with the bcm2708-i2s driver,
* so limit transfer size to 32k as bcm2708-dmaengine did.
*/
#define MAX_CYCLIC_LITE_TRANSFER SZ_32K

static inline struct bcm2835_dmadev *to_bcm2835_dma_dev(struct dma_device *d)
{
return container_of(d, struct bcm2835_dmadev, ddev);
Expand Down Expand Up @@ -418,7 +412,7 @@ static struct dma_async_tx_descriptor *bcm2835_dma_prep_dma_cyclic(
d->c = c;
d->dir = direction;
if (c->ch >= 8) /* LITE channel */
max_size = MAX_CYCLIC_LITE_TRANSFER;
max_size = MAX_LITE_TRANSFER;
else
max_size = MAX_NORMAL_TRANSFER;
period_len = min(period_len, max_size);
Expand Down

0 comments on commit 7456547

Please sign in to comment.