Re: [PATCH] USB: musb: cppi dma: set default max_len for dma channel

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

 



Hello.

On 17-09-2010 4:18, tom.leiming@xxxxxxxxx wrote:

From: Ming Lei<tom.leiming@xxxxxxxxx>

Set max_len of cppi dma channel as max size of int type, so
make musb dma handling happier.

Signed-off-by: Ming Lei<tom.leiming@xxxxxxxxx>
Reported-by:   Sergei Shtylyov<sshtylyov@xxxxxxxxxx>
Cc: Felipe Balbi<balbi@xxxxxx>
Cc: David Brownell<dbrownell@xxxxxxxxxxxxxxxxxxxxx>
Cc: Anand Gadiyar<gadiyar@xxxxxx>
Cc: Mike Frysinger<vapier@xxxxxxxxxx>
Cc: Sergei Shtylyov<sshtylyov@xxxxxxxxxxxxx>
---
  drivers/usb/musb/cppi_dma.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/musb/cppi_dma.c b/drivers/usb/musb/cppi_dma.c
index 59dc3d3..28c4c85 100644
--- a/drivers/usb/musb/cppi_dma.c
+++ b/drivers/usb/musb/cppi_dma.c
@@ -322,6 +322,7 @@ cppi_channel_allocate(struct dma_controller *c,
  				index, transmit ? 'T' : 'R', cppi_ch);
  	cppi_ch->hw_ep = ep;
  	cppi_ch->channel.status = MUSB_DMA_STATUS_FREE;
+	cppi_ch->channel.max_len = 0x7fffffff;

  	DBG(4, "Allocate CPPI%d %cX\n", index, transmit ? 'T' : 'R');
  	return&cppi_ch->channel;

I'm for mergidng this patch with the patch that makes use of 'max_len' for CPPI -- to keep the bisectability.

WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux