Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755840Ab0GML06 (ORCPT ); Tue, 13 Jul 2010 07:26:58 -0400 Received: from ksp.mff.cuni.cz ([195.113.26.206]:42077 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750801Ab0GML04 (ORCPT ); Tue, 13 Jul 2010 07:26:56 -0400 Date: Tue, 13 Jul 2010 13:26:49 +0200 From: Cyril Hrubis To: Robert Jarzmik Cc: Marek Vasut , linux-arm-kernel@lists.infradead.org, Eric Miao , dbaryshkov@gmail.com, arminlitzel@web.de, kernel list , utx@penguin.cz, lenz@cs.wisc.edu, rpurdie@rpsys.net, pave@ucw.cz, thommycheck@gmail.com, zaurus-devel@www.linuxtogo.org, omegamoon@gmail.com Subject: Re: usb gadget on zaurus and kexec Message-ID: <20100713112649.GA17065@atrey.karlin.mff.cuni.cz> References: <20100519154618.GA26381@atrey.karlin.mff.cuni.cz> <201006100900.23981.marek.vasut@gmail.com> <87wru7xc4z.fsf@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wru7xc4z.fsf@free.fr> 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: 1990 Lines: 47 Hi! > >> > Dumping out the registers of the two situations and doing a comparison > >> > then might be a quick way. > >> > >> Any debugging update on this? > > > > Yeah, there's a workaround. Cyril's working on a proper fix, but that might take > > some time. Simply -- UP2OCR is misconfigured. > > That's quite interesting. In the pxa27x_udc gadget driver, I seem to have a > regression on the resume from suspend to RAM path. My USB UDC is not enumerated > anymore. > > > The might be a correlation, as UP2OCR is lost in the suspend process. I'm very > interested by your analysis of the issue you have on kexec, as that might ease > my work :) Well it seems, at least for spitz that UP2OCR is set to host at the initialization and not touched anymore (spitz.c). I guess that the OE kernel, that is flashed in my spitz, changes UP2OCR when gadget/host driver is loaded but this doesn't work in vanilla kernels for some time. That would clarify why gadgets doesn't work after kexec at least for me. > Besides, it's been some time I've been thinking that the pxa deserves a proper > encapsulation of the USB internal routing paths (ie. a proper way to switch from > usb host handled by ohci-pxa27x to an usb client handled by pxa2x_udc), to > reflect the setup of the Pad Unit (see TRM chapter 12.4 : tables 12.2, 12.15, > 12.17, 12.18 and 12.19). > > Whatever you find on the USB Port2 configuration register would help me design > the Pad block. > Would be great. So far the GPIO for usb host/slave cable detection is not used on spitz so there is no way to switch to USB slave for gadgets to work if you don't want to play with devmem2. There is some otg code in drivers/usb/otg/ but I haven't time to look on that yet. -- metan -- 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/