Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp793586img; Tue, 26 Feb 2019 08:41:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IY+2SFUTELnBMYWOOXuIUGOSKTFBxw7PuhhZoqcUBKnZ03YFouD+qkGWpB4F3QACoSbNbkF X-Received: by 2002:a65:6149:: with SMTP id o9mr21681258pgv.315.1551199280539; Tue, 26 Feb 2019 08:41:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551199280; cv=none; d=google.com; s=arc-20160816; b=FGvG7SQWtj5xxjNMZ2H2ohlOQwEyeXDmeIlW0s/N+HH+X9sU38z65VuEGwvbwWVjXL fryMv3DrNDvoJbs6E94bdepedFHor7QcAHwTIOSJI73yDTJJVnRVgP+Mw9713K6tlEzJ YFjiCYL4VO6nvcR147/65I88XzPpFOumOv9O0dLDn6Pzb0BVVXyZftrHvE6ZywNFsVjc +O10swIQ0IMSXKcVm7w1l+g8A2y1N8y3p+kZrHKOu3wDso1Gxxb66nfpZoDspfgmSScm bx9Kih4Syhcu9pq6H8N8COqUeOHCVNWXJVTcq6073vlcLm3MijhInHCOY8lxwwU9IJuY nQ0Q== 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=cMT88YQQfyXIgu4kn+RVboLvqoRCCLw3kepgIJfJrq8=; b=Y4axm2J7LmqLmRArCtPoFdf6AU8aZt1ggwZKfgzTPZjBLc/LLE/ejgd/UHm8/HwoXS GsB1GYfyNFHTgU/9mZikt0e/UxUVc8BsuQgSDyIivYM+a+BhlKDP2Ve6UhJoqRxx4Bc+ 4cuu5jnpp9UG3P1pKUbgUtjC2apxx8twYRMt1jEqvIqh0JXstGBSifR1W70J0j+KFk9B 62WJVqz2HjMvqww2kJkmzyipgPYnMYx7sLmTOlh4PJIAQdsVErtskj6wVwEnIiKuP+r5 qN7l3wh4eSjkvQy4s1dGXzcYOaDWt4bkOrJVy3zpnRX7zvxPRV7sV6DHos4+3Le+C22c urpg== 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 q17si12314222pll.343.2019.02.26.08.41.04; Tue, 26 Feb 2019 08:41:20 -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 S1728462AbfBZQjv (ORCPT + 99 others); Tue, 26 Feb 2019 11:39:51 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:40458 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727054AbfBZQju (ORCPT ); Tue, 26 Feb 2019 11:39:50 -0500 Received: by mail-ot1-f66.google.com with SMTP id v20so11625974otk.7; Tue, 26 Feb 2019 08:39:50 -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=cMT88YQQfyXIgu4kn+RVboLvqoRCCLw3kepgIJfJrq8=; b=ESZK3O0t98A2/CEK/piD4qjJ/E+jidKkx039uXYk9rJbZQFuXn9yh0G4sMb5bdEAAz yQE5qoYuCBU3Gumtj/oiL5Ls2O9ftcU84ol8Hhw5TYlkpg0KKOUQoKrPZCcpbm+VQhv8 zSFbBL24l0ZKcXLj6YjJ4yemQWBXiYrhBn1CmoPq1Fin2QGg8v+ksXP1fERMg6r7b+3f Nk0WjjvM0gs+CPxYWL1G60JQsYXlHU4Ob6+NgA5bCFIdZNnTZRNyz1MuSet1+pgCmnqM HvEbT5rMsTqqF4YHO3VCXXqkHeO+zakQsrbOjY+ugTtOw7CedQoQTESOTEFog3E/okbZ nfJw== X-Gm-Message-State: AHQUAuZPllbfeaJ/uajS4D17dhAy1FVnraB0Jpjqv2QExF623XtKISHr P4CJDPz4pGgnbptdr6OP8YlLZ8w= X-Received: by 2002:a9d:4c02:: with SMTP id l2mr15855630otf.56.1551199189701; Tue, 26 Feb 2019 08:39:49 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id y37sm6061269ota.17.2019.02.26.08.39.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Feb 2019 08:39:48 -0800 (PST) Date: Tue, 26 Feb 2019 10:39:48 -0600 From: Rob Herring To: Ran Wang Cc: Greg Kroah-Hartman , Yang Li , "linux-usb@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Ran Wang Subject: Re: [PATCH v3 1/2] usb: dwc3: Add avoiding vbus glitch happen during xhci reset Message-ID: <20190226163948.GA8854@bogus> References: <20190226070016.27372-1-ran.wang_1@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190226070016.27372-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, 26 Feb 2019 06:59:21 +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 v3: > - None > > 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(-) > Please add Acked-by/Reviewed-by tags when posting new versions. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for acks received on the version they apply. If a tag was not added on purpose, please state why and what changed.