Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp1861100imc; Fri, 22 Feb 2019 12:36:55 -0800 (PST) X-Google-Smtp-Source: AHgI3IbR78ClxjNmImzfTE5b5RlVfhtEF+yyv0wDimNXx3mPGyBpmKpW5tHsufD+359ZTpwNbHvS X-Received: by 2002:a62:fb10:: with SMTP id x16mr6120572pfm.5.1550867815309; Fri, 22 Feb 2019 12:36:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550867815; cv=none; d=google.com; s=arc-20160816; b=JSBRVAYykB9K/2E+7dhJK07uhZPZJo6sdhoiQNTNnDnmNCvXvARCTsirK4H4nCjXA6 xCna0ROUnSizPncjsWzBUlx7LUEGE61CzvgSLxZEiiY6ibYWGp+boNWlKjBQxr30jooJ 9m0JkmPZJFQhJ3FONQB8nx0dymcOaTzWjZ8zoNESY4Yl89BcjpgsAW3KxCWrCxNYZR4T VPHN1O9Qck8BWoUkriSkt4C3zkt3KHcpERuuhh9pDb3Kgui3MBmT3o0yHMaSf3A+q3rJ LNcaM0h+VqEZlJ4Imj9PJpYeL6NCDNixr9rwF6W2QAG+3XwfzICrcaoqzs99Zkob3fxB HgFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DPZubu+48opp2+sPVYdKlvqjiRKERF/rzD8rM9cu458=; b=SLKlpMHSUkO5q0wK88I/biJImWBH5XOmSgN/GNnRFnw72BNtMycZMFikohkmg7iS16 wcQtoZXUYggSEm5xjRRwvjkVlZQ6DFKfq4qebAMFyJDBwVGZVdVgmR6TdBEOObzC15ZO T4b2bAKFbQ+N0dwVE9zevL1ha8tih3PD7YOqeLn0oTjH+BhbBgGXbvDc7/It9X53BBSi 75/xdert5mhJtj6tdo9tjPmwIuxcp1HXM+oWKd/SPj0VBGe20D6Oa4pF7R7brIZgOE4Z jCzGjA7QQHZ1/pQx6Ku+yfPGmbwxSKZiERbu2Ct4WATQUI9MZbc4PXL2jmMw0t/WS87Q 8tJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si2084660pgq.405.2019.02.22.12.36.38; Fri, 22 Feb 2019 12:36:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726973AbfBVUfD (ORCPT + 99 others); Fri, 22 Feb 2019 15:35:03 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:36641 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725980AbfBVUfC (ORCPT ); Fri, 22 Feb 2019 15:35:02 -0500 Received: by mail-oi1-f196.google.com with SMTP id t206so2762440oib.3; Fri, 22 Feb 2019 12:35:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DPZubu+48opp2+sPVYdKlvqjiRKERF/rzD8rM9cu458=; b=dsTxe4lTAjYWeGG/vCd6pBgevPnBLsmmMF1YFQjnu72bwJ0JZxFk8xlbkxp7HSIofy AP+frZj/uYT3OA52vwvpUS0k760jgj/JN1igtDIi+npIb4la/Tkf72uvIqIuNeDWCdmK CWRyh+kPPx9/OZvkoHKvjlZxBBvN2TS/zeeLeX+NZniI0h6AIzaxF/0HGYkP3eIvK2CN aE4ciCnVhJHLCX6Toq9Phtwi4rSSbxQY30sZ+Im3JS7u6dsslixHnG8T5O4f33E5oa2C N3/uQi+mzDXor4zmR4VzzosLEaGaf0VyQvo4btrfVqaw/yCd7BBEGyavXfDYRNazwR2O /vfg== X-Gm-Message-State: AHQUAuaoIaacn2OQ+moiKFyTUV+6e6o5FB5F4nWKDTO2SwG13Gwm17L+ MiWLvHkzrD0BHsxAQNDZEA== X-Received: by 2002:aca:cd0c:: with SMTP id d12mr3745860oig.49.1550867700924; Fri, 22 Feb 2019 12:35:00 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id l6sm936359otf.63.2019.02.22.12.35.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Feb 2019 12:35:00 -0800 (PST) Date: Fri, 22 Feb 2019 14:34:59 -0600 From: Rob Herring To: Ran Wang Cc: Greg Kroah-Hartman , "linux-usb@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Ran Wang Subject: Re: [PATCH v2 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset Message-ID: <20190222203459.GA16999@bogus> References: <20190219072358.43493-1-ran.wang_1@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190219072358.43493-1-ran.wang_1@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Feb 2019 07:23:14 +0000, Ran Wang wrote: > 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 > --- > Changes in v2: > - Correct typos > - Shorten the name to snps,host-vbus-glitches > > Documentation/devicetree/bindings/usb/dwc3.txt | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > Reviewed-by: Rob Herring