Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755423Ab0BQU1U (ORCPT ); Wed, 17 Feb 2010 15:27:20 -0500 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:38508 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755198Ab0BQU1S (ORCPT ); Wed, 17 Feb 2010 15:27:18 -0500 Date: Wed, 17 Feb 2010 20:26:17 +0000 From: Russell King - ARM Linux To: Alan Stern Cc: "Shilimkar, Santosh" , Oliver Neukum , Catalin Marinas , Pavel Machek , Greg KH , Matthew Dharm , Sergei Shtylyov , Ming Lei , Sebastian Siewior , "linux-usb@vger.kernel.org" , linux-kernel , linux-arm-kernel , "Mankad, Maulik Ojas" , "Gadiyar, Anand" Subject: Re: USB mass storage and ARM cache coherency Message-ID: <20100217202617.GB30033@n2100.arm.linux.org.uk> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1234 Lines: 27 On Wed, Feb 17, 2010 at 12:02:21PM -0500, Alan Stern wrote: > Why do you skip mapping the setup packet but not the data packet? This is something of a FAQ in this thread. Here are the responses to similar questions yesterday: "Gadiyar, Anand" said: > Not really. For instance, in the case of the DMA engine in the MUSB > controller in OMAP3, we can only use DMA with endpoints other than > EP0, and EP0 is what is used for control transfers. > > It's not PIO for all the endpoints or DMA for all of them. "Shilimkar, Santosh" said: > On the OMAP4 (ARM cortex-a9) platform, the enumeration fails because control > transfer buffers are corrupted. On our platform, we use PIO mode for control > transfers and DMA for bulk transfers. > > The current stack performs dma cache maintenance even for the PIO transfers > which leads to the corruption issue. The control buffers are handled by CPU > and they already coherent from CPU point of view. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/