Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6766939rwp; Tue, 18 Jul 2023 05:46:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlEADLVTS5oyLgfqSlcBTrOkZEJ8OH+uCxc0ghwrudAriQ1yArhh1VDap65YO++lb+Tw4LPn X-Received: by 2002:a05:6512:2512:b0:4fb:7c94:b3e4 with SMTP id be18-20020a056512251200b004fb7c94b3e4mr10876122lfb.29.1689684368081; Tue, 18 Jul 2023 05:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689684368; cv=none; d=google.com; s=arc-20160816; b=cKWZKSYhJP7Gr1+jCNvBLPe+Qa13vt8/ITEXd3S3pH1Wh+p7biZFVddNwkX4M68NoR mwjsKxleaFajzYKZcTs62mL3nFBXIipH+kz3r4WyFZ4MCfY4Op9f9lBatra8Hs+5bUUx /8qIO0iG+MSUM/oaSpOL2flGRGjB4fsbWpJfAEWqsuoVqCqKroVJhQ3q7QD8dLlsSokQ dHjl07K2k9rsE8p9RmSiN3zhfoFKqhPMAhAhZpPPuG3eQgIgBtIzOuieNj7Pv8X20ITq Jw+fWkywYyCobv911xhyL7/EIQZoI9d2Z+3xXMmZvy2cHw7SllgcimALCjoNWY38Iz90 v7FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=L4Rr8+epwqNuJFPu2SACGV9w10aPsDPcHxXMePCOL88=; fh=iIxvicOKtyxD5/kkrvLdX0RMRUIqMv00VO7hmTH+7tU=; b=ZJPGhWx2HUjCfYS/i2lTE2N7t7Iv2olNH2leIj/4oZH2gyIPcjG2M+vkuCWFlaxZPa 4OHpROWA+3F0SalEeo2AHb+wtmcWbK8JuLvQ4eiKjFcw2xiQQ/zzhMQ+JMGsv7iXqyP4 YxxC6r8aOgLluBF7iWb66xA9I4VSXxNsriaHFtR6+EuojuaEm8tPtDclt1b/Kb66VW48 HqzUnj9szFsglkL50W4jL/NLVd7SElmPhn1PecWyRp1tFgjbdWhLSdpUU9mlw2O3L5w1 e/BoMPzF51BpkLx09cgmO0vC0A0mhmXJLGWviuB1Zw2Evcfuapx8MfTXtM0N6d8GDjy5 t5YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=lEN3rjIS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a3-20020aa7d743000000b0051de537901asi1146567eds.92.2023.07.18.05.45.43; Tue, 18 Jul 2023 05:46:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=lEN3rjIS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230017AbjGRMZN (ORCPT + 99 others); Tue, 18 Jul 2023 08:25:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjGRMZM (ORCPT ); Tue, 18 Jul 2023 08:25:12 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7529B10C2; Tue, 18 Jul 2023 05:25:09 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id E9902FF810; Tue, 18 Jul 2023 12:25:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1689683108; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L4Rr8+epwqNuJFPu2SACGV9w10aPsDPcHxXMePCOL88=; b=lEN3rjIS+6LEnVAAxqiebzncG6Ze0Kr2g3l6Jvjfq8deS4FFsNsnfyUB9N1d2zfvxggwsr DJzn6ShRi56lqKZXlxnD2yDE/3Ag9qAf/N3CTYY425/87kSrRffUWuzSwvAdVqgt5VbK/+ iaMKW3dgvuhbdeInCWoUvjVdEGm9UM3PP572udluQvH+/Etsm2H+bKY9myuCrPcPUQgYVV cG4ykhi8Ht9YxB1tVfyozFiLWQYqLCN1MwHzmu7AVAu0+jWNPSjSLmI6GYQN87ZdPs605b zKQVKnl9TrFY5Rsh0R03yE4b9zCATn6xvtHFqhitsgRdwtWqFUgHE7UjTcUMKA== Date: Tue, 18 Jul 2023 14:25:04 +0200 From: Luca Ceresoli To: Xu Yang Cc: Francesco Dolcini , Jun Li , "devicetree@vger.kernel.org" , "festevam@gmail.com" , "gregkh@linuxfoundation.org" , "kernel@pengutronix.de" , "linux-arm-kernel@lists.infradead.org" , dl-linux-imx , "linux-kernel@vger.kernel.org" , "linux-usb@vger.kernel.org" , "robh+dt@kernel.org" , "s.hauer@pengutronix.de" , "shawnguo@kernel.org" , Krzysztof Kozlowski , Francesco Dolcini Subject: Re: [EXT] Re: [PATCH v2 2/3] usb: chipidea: imx: support disabling runtime-pm Message-ID: <20230718142504.075d0186@booty> In-Reply-To: References: <20230504162312.1506763-1-luca.ceresoli@bootlin.com> <20230505120618.2f4cf22c@booty> <20230508151756.785ec07e@booty> <20230529121825.71e9b6d6@booty> <20230717184537.6d6ed607@booty> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-Sasl: luca.ceresoli@bootlin.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Xu, On Tue, 18 Jul 2023 08:31:48 +0000 Xu Yang wrote: > > -----Original Message----- > > > > Ciao Francesco, > > > > On Thu, 6 Jul 2023 12:23:43 +0200 > > Francesco Dolcini wrote: > > > > > Hello Luca, > > > > > > On Tue, May 30, 2023 at 11:22:51AM +0000, Jun Li wrote: > > > > Yes, your understanding is correct, talked with Xu(in CC), he will take this > > > > soon. > > > > > > A series was posted > > > > > > I had no time to try or look at it yet. > > > > Thanks for keeping me up to date on this topic, which is still totally > > relevant to me. > > > > I looked at the series, but it does not seem to be addressing the > > problem with USB host not detecting new devices when VBUS is not > > directly connected, e.g. in the Colibri imx6ull SoM. > > > > Xu, do you confirm the series at the link is _not_ solving the problem > > being discussed here? > > Have you tried this patchset? The upstream driver couldn't get correct > USB role from HW_USBPHY_CTRL register when the ID pin is float. This is > what this patchset is trying to fix. With this patch, condition > "(!vbus_is_on && !mxs_phy_is_otg_host(mxs_phy)" will always be false when > controller acts as host role, then __mxs_phy_disconnect_line(phy, true) > will never be called. So I think it doesn't matter whether VBUS is connected > or not when act as host mode. If you still have issue after apply this patchset, > please let me know. I tested this patchset on top of v6.5-rc2 and I confirm USB detection is still broken on the Colibri iMX6ULL. With or without the patches the behavior is the same: USB devices are detected only during boot, and anything connected after boot are never detected. For the archives, I'm replying also to the patch series. Luca -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com