From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83D5BC4345B for ; Mon, 20 Jul 2020 07:53:31 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 501A820674 for ; Mon, 20 Jul 2020 07:53:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="1q/pdX1w"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=toradex.com header.i=@toradex.com header.b="mPEX+3nj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 501A820674 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=toradex.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Content-ID:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=iFe9jxp0b49EcPLDcSrC9l7MDkTPxRz+CsvajLFlY+A=; b=1q/pdX1wwX5B/O8zW5E0Yxe1i 3k82vtQj2LnYtlsDe0+eoSxwHxSC6Vl8oA/XvcvBrdkHM5kJL71NS8T+VnDJ0Ejts2LXY4Gw2y1a/ m/20+cRXa+rDUgkMyKhiR9bWB+nB9XJBt0a7T0lpUD6XKUWVfCflE7LjP1fjhQVptMe6mi0yjPPfQ uGCsCC9NA5LJiOFw6/X3mcP5N5OFxmIs+sbTBCHMJJ8yg+R0Xn4LYHD72Ur8hVLifvoEYJ04+cGeH tw7KFMAd660ZkE9emd8Wslo50ySSlDMTQrlUwNuZKs8hIMWDm7zE9Q74iFy2fQSi97lmOCCAvNmf4 LzczhP9mg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxQaF-0005mQ-5I; Mon, 20 Jul 2020 07:51:35 +0000 Received: from mail-eopbgr20106.outbound.protection.outlook.com ([40.107.2.106] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jxQaC-0005lY-JN for linux-arm-kernel@lists.infradead.org; Mon, 20 Jul 2020 07:51:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V2eobh02jjUaNqSAxWe3uhqId0DqI3mPp0sReHzoakr5LniZrxts+aZVJWirnbu780GzVKMLEYphW8ARB8yGhv+mrTmnQPRxj8HjjgZr4CoxUowvwxkWt7WWg9oatcYFyW9bDIrRRZk35e0kdqI/VCZKcTqou+pA8m0+mpA/zE8BGj/L2krO7X6FT73kHhGMfJoLrudeo86+9Y3N1qeU4olLRHjnmBj/9z3AsLJ/GyZog6sGEe1Rn1/Hcufx9XTIqJS5AY+OUnyC2iDs2rxE1RV4d4CylwZ7UaIsxAialdwQZRHHKyL96h3UGTBt+sYrjg0SJM+wV49alO5PrCxcJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3Z8NbxAc3mraN8N40UUuHiNsd/Xk8HO8r83SeQ/h1Oc=; b=SA4jsF+3hzm/3et6uISIAZpdGsnUfZdqGHNQJnRKu2G1Z5q2Q2Q6sBkxp908sqcTzEMP5opH/hswSqQxC30GqajoxyS7SVrVwUKHoY72s9xfpm7EwOv4BuyvQNy771+hBF0VR2J8hdVa+XFOVKrzKmdouVCzhyi2ewngSsA9noDHjDJepvsZxR4eaFRddprZbNc1zHcXcZWXCYEZ9KRwgZ+PNFd/hVs0wjuASjHS27UTtBqGofmDlyYBaWnuk/mY/xo7kW6+PRGWsVRv16Ihrv9N7PjtndaWPmxpivqH7MupPg9MNxyIcxTI+RGhHr/72azbOi69ZIveYK/Y7duwFA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3Z8NbxAc3mraN8N40UUuHiNsd/Xk8HO8r83SeQ/h1Oc=; b=mPEX+3njgJUgNpnT7iZr0ovylczb62rnpNfx3CTjZ6AGlHSbA2jHgPyXc/UQhk0cXMWuQEYeAxZuqD/yc2Stmb+ipPdJ71skc/sOfDhP389X35vlddl88GQ7+Q7c6H9pMOgnyLzGdbFE1Bx1S4DbMOkLB7ALDwVlptQU8GkPD1Y= Received: from AM6PR05MB6120.eurprd05.prod.outlook.com (2603:10a6:20b:a8::25) by AM7PR05MB6840.eurprd05.prod.outlook.com (2603:10a6:20b:136::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.18; Mon, 20 Jul 2020 07:51:30 +0000 Received: from AM6PR05MB6120.eurprd05.prod.outlook.com ([fe80::1d81:6a9b:8c26:3b7d]) by AM6PR05MB6120.eurprd05.prod.outlook.com ([fe80::1d81:6a9b:8c26:3b7d%4]) with mapi id 15.20.3195.025; Mon, 20 Jul 2020 07:51:30 +0000 From: Philippe Schenker To: "peter.chen@nxp.com" , "devicetree@vger.kernel.org" , "linux-usb@vger.kernel.org" , "shawnguo@kernel.org" , "robh+dt@kernel.org" Subject: Re: [PATCH v2 2/3] usb: chipidea: imx: support disabling runtime-pm Thread-Topic: [PATCH v2 2/3] usb: chipidea: imx: support disabling runtime-pm Thread-Index: AQHWWfIMLexdmM4+M0C6zPGY8HP2U6kH0FqAgACfygCAB2wiAIAARP2A Date: Mon, 20 Jul 2020 07:51:29 +0000 Message-ID: <163befb5f97724a1279a33023980da3264f0c00e.camel@toradex.com> References: <20200714151822.250783-1-philippe.schenker@toradex.com> <20200714151822.250783-2-philippe.schenker@toradex.com> <08251297f72fe745be43205d0a73631f009681cc.camel@toradex.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.36.3 authentication-results: nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=toradex.com; x-originating-ip: [31.10.206.124] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f02efdcd-5237-44a2-7739-08d82c81b6b0 x-ms-traffictypediagnostic: AM7PR05MB6840: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZMparIapX/jaZK2egr6QqNkD+BUWCGXHYkFRVL8wnuuENSilEIuQvhc7UO7K8w+VnfcnSpOOsZyuzStCJaeoWj4JSct4xXbIPsYnUREEFliRoSZxvtfEDxZRXcYfo79/ngzgSiu11KqY06U9FvuMxrX/XeGAa8VM0ZcU0n4E+ei/eDf8wGYN5OdkhlWRUYeGyjhFWfKiuG8eZLgIRYQdmoFGWWTOEVejUFhzRSbrreqvc2d8weKSulHkeDbXBAYS+fSjj7M3jJcZ+2CZrMClqiy2HYsDINWhViVeLGFdrjtpAuoXbUlRFnryKUmv960GfHLmLtGI4QDNJcfpLXiBHw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR05MB6120.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(376002)(366004)(396003)(136003)(39840400004)(26005)(8936002)(44832011)(6486002)(66946007)(71200400001)(316002)(64756008)(66476007)(66556008)(66446008)(7416002)(6512007)(2616005)(8676002)(54906003)(91956017)(83380400001)(4326008)(110136005)(5660300002)(86362001)(6506007)(186003)(36756003)(76116006)(2906002)(478600001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: Ivuj6zEd80OI9s4eyxXuuYvAM5OT55VC+z6ZNFdYMOXMBWltH57Xp0izy+7cenAmbamGKVglGm9lE3haJGG/nsvl6tA8pP+biWkci8wKM+MkG/oYLjBEsUci/Dfh6DsUsc3cbin9mu/KCyBb/GNteleVTsc1jY7A9IWS9l1jGkPib60sr7FHUMAmsUujUgBip+cVmIj0FB4zOKHaG00rrnhAm25HIQZf7cqby1Dv422jIChOPfPrntMsX4kGhQebh9WwDpDFteK+kUqNTMKNIjpxpqvaAmrmup35uAooUBkvWgfPWIVVlSEQ8retVa9PlhVSUYV+Xu+3XB9mKubHv0rUJHycPuEvPFsZ2cnO07DPEPAzy6a6UJpH+fkL2arzKrblK+6lduxp3GCH8iuEsL5fFt9n6BIs32xQvQfTXVjdAJ5+Ep21APZLNvkRPijVaC/U9tbu/BtS8X9bjC/DCfDJPiMAV6M9xYcqCfi1ZJs= x-ms-exchange-transport-forked: True Content-ID: <602FA2E5CB648A449B3EBE19B3834B7E@eurprd05.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM6PR05MB6120.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f02efdcd-5237-44a2-7739-08d82c81b6b0 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2020 07:51:29.9417 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: yKQjIAx91CVMjEgyKF1EbAypO0d2p/7M00cNh5zsnWtlAEi0N5QbBeegCuGPT7CLINDp0aAD5qGL+kSog+dx/LcyD+mbiWwPeLHueZIoZ4k= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR05MB6840 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200720_035132_667320_4FD9A0DC X-CRM114-Status: GOOD ( 25.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "gregkh@linuxfoundation.org" , "s.hauer@pengutronix.de" , "linux-kernel@vger.kernel.org" , "linux-imx@nxp.com" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-arm-kernel@lists.infradead.org" , "jun.li@nxp.com" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 2020-07-20 at 03:44 +0000, Peter Chen wrote: > > > On Wed, 2020-07-15 at 00:51 +0000, Peter Chen wrote: > > > > The Toradex Colibri iMX6ULL board has a special USB hardware > > > > design. > > > > With runtime-pm enabled USB reset itself continuously. > > > > Furthermore > > > > the OTG port is also not enumerating devices if the Chipidea IP > > > > is > > > > in runtime sleep mode and a device or host gets plugged in. > > > > > > > > > > Hi Philippe, > > > > > > You may describe the detail what's the special USB hardware design > > > for > > > your board, > > > > If I only knew the root-cause of that problem - unfortunately I > > don't. > > That's also why I have such a hard time to describe it. > > > > > and why it causes the problem, and why disable runtime pm could > > > fix > > > this issue, then, > > > > I cannot provide the 'why' part yet. I'll try something more and > > hope I can provide > > you guys with the exact description. > > > > > the other users could know if it could apply to their platforms or > > > not > > > in future. > > > > I only found out about it because you were pointing me in that > > direction. I debugged > > for hours now and didn't came to the root-cause of the issue. I > > think to really > > understand it I would need to know much more about the Chipidea IP. > > > > I'll get back to you guys with a proposal for a new description. > > > > Philippe, is it possible to share your USB hardware design at 6ULL? It's actually pretty simple: We have on USB_OTG1_VBUS a 1uF capacitor and +3.0V on VDD_USB_CAP together with 100n and 10u bypass caps. Now the big problem is that the driver can not detect the 5V on VBUS signal. I tried to 'inject' 5V to that pin last week and things got really better with runtime-pm. But I still thinks disabling it for our board would make sense. I'll send a new description today where I try to point to VBUS signal not connected. Philippe > And how ci_hdrc_gadget_connect is called when the runtime pm is > disabled? > > Thanks, > Peter > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel