Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1223198rdb; Tue, 30 Jan 2024 11:28:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMVoe+/cgqEegkU87GHBZ4h3s/yHBHJYZimMHLdHmIL6RfH2LGDq1lyMy8tK1qya99uVCd X-Received: by 2002:a17:90b:4d8e:b0:290:6155:d327 with SMTP id oj14-20020a17090b4d8e00b002906155d327mr5256477pjb.28.1706642920466; Tue, 30 Jan 2024 11:28:40 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id r36-20020a17090a43a700b00295aaad967asi1787975pjg.137.2024.01.30.11.28.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 11:28:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-45187-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=MoZ2CrlM; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-45187-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-45187-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 229DCB2613F for ; Tue, 30 Jan 2024 19:26:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 413BA69DE8; Tue, 30 Jan 2024 19:25:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="MoZ2CrlM" Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2044.outbound.protection.outlook.com [40.107.6.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17C287B3C2; Tue, 30 Jan 2024 19:25:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.6.44 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706642758; cv=fail; b=jbx+7FxflkPVF9xTJY6XfZOF0qWgXfypHBepPDyYXAydq3QePMVv+jY+BhfQMbVZPibd7Ns5JREwAK/mG9E6kjk+0Xj23o88AFeZmuwq/gEuPSGk7LeXQc3VlrdGrx5bQU/j4GPRgiawRhTZpSX2twSTRhcSmOV7tAyW/K5sJ2w= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706642758; c=relaxed/simple; bh=5y7vwlY9H04RteIv6+UFiuemQPCLYb0lTTJXw/LgHQY=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=N3F92V7HIxNt7er/BTe0n8POWqh8p5/tq4a8OS00Gs1Njh09abOzpwoszk+rHgIRfqo0VbtKTHCYHg48gFrh5wxe7motQoR+fHi78JcWMleAkzr2fcNUb6EVfBTO043dT3/65Lp5MYRGUAJUxHabFTRr24QLUnaUD1/3OHeYPzA= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=MoZ2CrlM; arc=fail smtp.client-ip=40.107.6.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eLWAecHVu+rcMTLyKRJY02T5o3PlDBCQtLRa8E03iddpX8iuWit3KmZJQDva/3pm/KbZRLyKy+NA7Xst9S+lUR0ZS8+G8km/Oef4I0v/UELsbXqUQ59idSE4V7CUXA2c3axynnYhanohYVWVN6uPT9M1jt2hRWgoKt6OD90Btogoh2f7IUDI1jqm2PVJathH4bZ+AdLvMW3G41eQ3uB+2Uht8mGbnPltlVKJqBfx2sUs+7VfGdEVccsLwj4jC5Vhv3+q+JFZ/T8RLftOHbNbOzqDJh/4VY3R6GbKMpf+6zt16RlaMKhjkWKo7D5v0zdw+WO0tRLu+I9BPXWrvMJ3lg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iYjGtEwNFNF9+RrArSaw9HdhaPGquPWsAA7Sv4kngic=; b=TK8ZzW+aGqs48aViAAgGpvj9wTtvjZylU+KlSn4vJUaytTo4zQUie5PZRAd4IybNoSE1USl6J8FDaXLaR0oztzAcKmU/NvTjFDv5HQv0lcqqM2jHDLxTGipHejg7L+fE3XOfCnS3PdfdG+DjRy3HON5DR8mjkBqQmvnH6Rl3HYWtgWKq5DSlHQF3gb+Qe4o34slKUGS1i5ktRWwSFLlY/qgMEYHfGlCrgwUOhN5zkmATPfMbok8V47+eWgvpFFebvtG9hJ3702b04K0WIBzHs9LrEtuQ7DRjCd1vsB2ZTS5Z4MzBZMgfhcnIVs8Rrm+YsPMrOm8+uTO/lP/NI100yQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iYjGtEwNFNF9+RrArSaw9HdhaPGquPWsAA7Sv4kngic=; b=MoZ2CrlM4E/fMHAHDZh73K4EUMH5iC22tDWCdoUolcu7KZAA2EGS8sBMzi9xtq8hfwXlGT/5sn7FQbRGcArDzhJGGq4HLQHW8+ukS7b0JLTNcZnnbCUEKJJFKaP25Wk0Wj7XyCEWff9sCn8KagxS597Poug1664NiI3zqVFYSD0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by VE1PR04MB7487.eurprd04.prod.outlook.com (2603:10a6:800:1a2::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.23; Tue, 30 Jan 2024 19:25:52 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::c8b4:5648:8948:e85c]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::c8b4:5648:8948:e85c%3]) with mapi id 15.20.7228.029; Tue, 30 Jan 2024 19:25:52 +0000 Date: Tue, 30 Jan 2024 14:25:43 -0500 From: Frank Li To: Conor Dooley Cc: thinh.nguyen@synopsys.com, balbi@kernel.org, devicetree@vger.kernel.org, gregkh@linuxfoundation.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, mark.rutland@arm.com, mathias.nyman@intel.com, pku.leo@gmail.com, ran.wang_1@nxp.com, robh+dt@kernel.org, sergei.shtylyov@cogentembedded.com Subject: Re: [PATCH v4 2/3] dt-bindings: usb: dwc3: Add snps,host-vbus-glitches-quirk avoid vbus glitch Message-ID: References: <20240124152525.3910311-1-Frank.Li@nxp.com> <20240124152525.3910311-3-Frank.Li@nxp.com> <20240130-eligible-barrette-5b2258e150f5@spud> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240130-eligible-barrette-5b2258e150f5@spud> X-ClientProxiedBy: BYAPR05CA0017.namprd05.prod.outlook.com (2603:10b6:a03:c0::30) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|VE1PR04MB7487:EE_ X-MS-Office365-Filtering-Correlation-Id: b32bbc3c-eee0-4fe9-a2a0-08dc21c945da X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2e9cNboE4sHIZ7v7FLJWmiuJsOBo53KR0jyXI8TAxcCr1bv/PYC804V0l0lTG4APNTzBrYHCw9zS15qoDKsaMSY0bjlX4xGOsUv6olZpWP3EWlPYRsSHeEIRRxgt4xPXqi5rNZR6whGHF/1eFGX8HjkNVPowkn3Qj4FYCsEmQq7kEzoe+WICeZr10I/R2ZOIvyGUbX0/44dktB3utd7Aw5l/fVLBo88jyG7eEmzOFKaPkPrcA22jop3yU+o2+B6Eq5GYRzFQmqnOiXKqgmbhVMo30Go2ICbaXSDyGJT5EqgOwFkB8hebQxc+jl9ukK62niSIhoxb+qRrj37QtWozeg0E36pGrPapWt9Sj0Eq0oVItR01WASU9/dlHVuaTY9EwcKyyRr9FhuOFFvKCBFxnpGChfMpey1i4W0xkJn7HS4jzJS5BunB1UQAvgHoIsAc3OLLruYu+g9hD/PyjEh7wZcqhSGZo/apgzzXSIeEmIazCgMgNtItWHwU8/W+TNpZGjw/r9nOuX3zD0UDK0893Ee1YXAyCvqlMF76CAJ5d3EYdUYhogmLgTSwx4K0Gc5LzWxE3ujeVdep/WvdWPxCX65zDRK+X8FL6Tus9M2ViiC/sLLUoEaVJTztwpWMSmaPnwE6IVB7QpUBgjis0JBqyA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7916004)(366004)(396003)(346002)(376002)(136003)(39860400002)(230173577357003)(230922051799003)(230273577357003)(451199024)(186009)(1800799012)(64100799003)(5660300002)(41300700001)(7416002)(6506007)(38100700002)(6666004)(52116002)(9686003)(26005)(6512007)(83380400001)(966005)(6486002)(8936002)(8676002)(4326008)(478600001)(316002)(38350700005)(86362001)(2906002)(66556008)(66476007)(6916009)(66946007)(33716001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?6T1q9lNhmjpYSSfIh+zIeaTc4RQXSsFw/kH09y+xqM2AkghioafhQ2lpi4Bf?= =?us-ascii?Q?6RFYaZzqV/VZg6qpVtasMAdCGAH0PGjDyWemiKTkGAM17yawU/OBHjn9jZdD?= =?us-ascii?Q?NbHfkeCmT8eOSC/0Ry1UYx2dcCFtGDGJj/MDq/62puFPFcEngzQsxzLGMnvy?= =?us-ascii?Q?z781ubyg61zE0t/DBfL9ZalyMGMYilfHDi1YiWNXWCq+VO74x9k+z1RKDRzm?= =?us-ascii?Q?jg0vHIfRJzdmEoXzzEnQx4pzrzA8plo1BK1Y9BBIoSNTz7OwFGYP3Bt+zMbY?= =?us-ascii?Q?PYVevZVZpomMuyqlWdNZAY4OpfB6i+H1PPt2HHq/1ggaJ5nxidT18JB/7saZ?= =?us-ascii?Q?lrJIjlYFAoLMdrSBrgffuHfDlSI+aYuLo6kfblGHrOr5EcIHjflqTy1Ugd4B?= =?us-ascii?Q?so1kR4Af9ZoPf5MGyarLUk/dnMabU/jqYOXxDQi6rb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YSKwriu9oeIbpNyn169MKBAlqbAht1cP3RiGZ?= =?us-ascii?Q?Act5/9oCvAd6XsvnJR9U5HtfbeTvIIG9MJK0FfkHxnc0itZSLDal/tSlPZo/?= =?us-ascii?Q?hkJopEWRG73/pPUh1wYmiOM129ru0c1ztvIrio6AsCvM1hDetw+1xmMBYqzl?= =?us-ascii?Q?uv0SZtsCT8YQztWTD59JNgTwJwM02nGANeIWzLO0PkQi3DiIUG2mTDYRxu7L?= =?us-ascii?Q?mn5vXYTmqARcNE20jdhEQBx5UaBULanTF85Y8rje?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b32bbc3c-eee0-4fe9-a2a0-08dc21c945da X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jan 2024 19:25:52.6194 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: s8wzYKLa94XosgJ44eeYS4YBNy18aJEhCSczZaEEbL8JqTAT0Z20p5bADOlIVWp5IYWCP6J1/EhlMRQIojJ5pw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7487 On Tue, Jan 30, 2024 at 06:28:25PM +0000, Conor Dooley wrote: > Hey, > > This version seems to be the lastest (v4) for this binding, but went out > prior to discussion actually finishing on the v1!! of this patch, even > ignoring Rob's comment today. > Please wait for conversations to resolve before sending new versions. > I, at least, do not get paid for what I do here, so I often need well > more than a day before I can get around to clearing my review queue. > On Wed, Jan 24, 2024 at 10:25:24AM -0500, Frank Li wrote: > > > From: Ran Wang > > > > When DWC3 is set to host mode by programming register DWC3_GCTL, VBUS > > (or its control signal) will turn on immediately on related Root Hub > > ports. Then the VBUS will be de-asserted for a little while during xhci > > reset (conducted by xhci driver) for a little while and back to normal. > > > > This VBUS glitch might cause some USB devices emuration fail if kernel > > boot with them connected. One SW workaround which can fix this is to > > program all PORTSC[PP] to 0 to turn off VBUS immediately after setting > > host mode in DWC3 driver(per signal measurement result, it will be too > > late to do it in xhci-plat.c or xhci.c). > > > > Signed-off-by: Ran Wang > > Reviewed-by: Peter Chen > > Signed-off-by: Frank Li > > --- > > Where is your changelog? Sorry forget add it this patch. > > > Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > index 203a1eb66691f..8f5d250070c78 100644 > > --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml > > @@ -273,6 +273,13 @@ properties: > > with an external supply. > > type: boolean > > > > + snps,host-vbus-glitches-quirk: > > I specifically recall saying no to adding "-quirk" here, but that > might've been after this patch was sent. Your comment is at v0 version. I told you there are v4. > > > + description: > > + When set, power off all Root Hub ports immediately after > > + setting host mode to avoid vbus (negative) glitch happen in later > > + xhci reset. And the vbus will back to 5V automatically when reset done. > > + type: boolean > > Rob commented today on the v1 conversation: > https://lore.kernel.org/all/20240130181322.GA2079185-robh@kernel.org/ > > Please respond (there) to his comment. Okay I will reply at v1 thread. > > Thanks, > Conor. > > > snps,is-utmi-l1-suspend: > > description: > > True when DWC3 asserts output signal utmi_l1_suspend_n, false when > > -- > > 2.34.1 > >