0389-Revert-bcm2835-dma-Limit-cyclic-transfers-on-lite-ch.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 50523fe3cfcef4a7728176b11a6e2975243ab74e Mon Sep 17 00:00:00 2001
  2. From: Martin Sperl <kernel@martin.sperl.org>
  3. Date: Fri, 22 Apr 2016 17:17:22 +0000
  4. Subject: [PATCH] Revert "bcm2835-dma: Limit cyclic transfers on lite channels
  5. to 32k"
  6. This reverts commit 052c2005b6ecedc5abad86632f5781adda310aa7.
  7. ---
  8. drivers/dma/bcm2835-dma.c | 8 +-------
  9. 1 file changed, 1 insertion(+), 7 deletions(-)
  10. --- a/drivers/dma/bcm2835-dma.c
  11. +++ b/drivers/dma/bcm2835-dma.c
  12. @@ -144,12 +144,6 @@ struct bcm2835_desc {
  13. */
  14. #define MAX_LITE_TRANSFER (SZ_64K - 4)
  15. -/*
  16. - * Transfers larger than 32k cause issues with the bcm2708-i2s driver,
  17. - * so limit transfer size to 32k as bcm2708-dmaengine did.
  18. - */
  19. -#define MAX_CYCLIC_LITE_TRANSFER SZ_32K
  20. -
  21. static inline struct bcm2835_dmadev *to_bcm2835_dma_dev(struct dma_device *d)
  22. {
  23. return container_of(d, struct bcm2835_dmadev, ddev);
  24. @@ -418,7 +412,7 @@ static struct dma_async_tx_descriptor *b
  25. d->c = c;
  26. d->dir = direction;
  27. if (c->ch >= 8) /* LITE channel */
  28. - max_size = MAX_CYCLIC_LITE_TRANSFER;
  29. + max_size = MAX_LITE_TRANSFER;
  30. else
  31. max_size = MAX_NORMAL_TRANSFER;
  32. period_len = min(period_len, max_size);