From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Trimarchi Subject: Re: Help wanted with USB and OMAP3 off_mode Date: Wed, 09 Jan 2013 12:42:43 +0100 Message-ID: <50ED57B3.9060507@amarulasolutions.com> References: <20130109092915.1c2077b5@notabene.brown> <50ED3FA5.9030905@compulab.co.il> <20130109211931.0e00db5d@notabene.brown> <50ED4549.6080802@amarulasolutions.com> <20130109223456.7832c2bd@notabene.brown> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mail-bk0-f48.google.com ([209.85.214.48]:47536 "EHLO mail-bk0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756115Ab3AILmt (ORCPT ); Wed, 9 Jan 2013 06:42:49 -0500 Received: by mail-bk0-f48.google.com with SMTP id jc3so823975bkc.7 for ; Wed, 09 Jan 2013 03:42:48 -0800 (PST) In-Reply-To: <20130109223456.7832c2bd@notabene.brown> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: NeilBrown Cc: Igor Grinberg , linux-omap@vger.kernel.org On 01/09/2013 12:34 PM, NeilBrown wrote: > On Wed, 09 Jan 2013 11:24:09 +0100 Michael Trimarchi > wrote: > >> Hi Neil >> >> On 01/09/2013 11:19 AM, NeilBrown wrote: >>> On Wed, 09 Jan 2013 12:00:05 +0200 Igor Grinberg >>> wrote: >>> >>>> -----BEGIN PGP SIGNED MESSAGE----- >>>> Hash: SHA1 >>> >>>> Hi Neil, >>> >>>> On 01/09/13 00:29, NeilBrown wrote: >>>>> >>>>> Hi, >>>>> I'm trying to get off_mode working reliably on my gta04 mobile phone. >>>>> >>>>> My current stumbling block is USB. The "Option" GSM module is attached via >>>>> USB (there is a separate transceiver chip attached to port 1 which is placed >>>>> in OMAP_EHCI_PORT_MODE_PHY). >>> >>>> Which PHY is this (vendor/model)? >>> >>> Hi Igor, >>> it is the SMSC USB3322 >>> >>> http://www.smsc.com/media/Downloads_Public/Data_Sheets/3320.pdf >>> >>> >>> BTW I subsequently discovered that keeping USBHOST out off off_mode only >>> sometimes avoid the problem, not always. So there are probably multiple >>> issues :-( >> >> Are you sure that you don't have glitch on power, reset pin during suspend? >> > > No, I don't really have the equipment to measure such things. > But is it likely? Would enabling off_mode make it more likely? > Can you suggest some way I could test the hypothesis? > > The power pin is connected to a 3v3 regulator which certainly should stay on > the whole time and other things which depend on it keep working. > > The reset line is connected to GPIO174 which is configured: > > # cat /sys/kernel/debug/omap_mux/mcspi1_cs0 > name: mcspi1_cs0.gpio_174 (0x480021ce/0x19e = 0x011c), b ac2, t NA > mode: OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE4 > signals: mcspi1_cs0 | sdmmc2_dat7 | NA | NA | gpio_174 | NA | NA | safe_mode > > The "PIN_INPUT" seems a bit odd, so I changed it to OMAP_PIN_OUTPUT but that > didn't appear to make any difference. > Can you try to add this OMAP_PIN_OFF_OUTPUT_HIGH or LOW? It's suppose to be the off_mode status of the pin. Is it correct? Michael > Thanks, > NeilBrown > -- | Michael Nazzareno Trimarchi Amarula Solutions BV | | COO - Founder Cruquiuskade 47 | | +31(0)851119172 Amsterdam 1018 AM NL |