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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 AF101C33C9E for ; Thu, 30 Jan 2020 10:06:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 86255206D5 for ; Thu, 30 Jan 2020 10:06:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580378819; bh=yPW5b+1gIvCMOfzYx+UibrQNkpmfAOzwpIV3Lj9sm64=; h=Subject:To:Cc:From:Date:List-ID:From; b=SYXli3UyHqUu2/T7o705p9cGZv19RlhBbFLdyZ9hTLgIXpXk2txBNuDJb+FNTe2rK H9hPxx8llQTzF52JNcwRhgC2VXB/Dp5RAx2JpYW2T0pmeZclCtxMhRHJYtjnygXxuD NwFVYFqgh6q6n1nlYYVWgXTMAlYfvGswOL102x7E= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726913AbgA3KG7 (ORCPT ); Thu, 30 Jan 2020 05:06:59 -0500 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:36053 "EHLO wout4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726882AbgA3KG7 (ORCPT ); Thu, 30 Jan 2020 05:06:59 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id F29084A7; Thu, 30 Jan 2020 05:06:57 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 30 Jan 2020 05:06:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=mvMU4e iRCsBYlQE83R123s/ipVMrYU4cr7revGyc0xE=; b=IeiRuUv5Q2GSKPdDXfSZ+d 0Wi8pbeNdLCkC35nbN8UPcVvrFvUNaCTfmQT+sk2VDkIeRVmukpjDq5cfVL8JuqY dM1PwHayEJtFkM6NtUokS2qnm1Cxs3x35MMazdThksAlR1gAO8wv4t4a1LPysOpy lEcHQNPwGPne9matB7q6L8wc6zDLqi3AG5BIu1WRikcK/G/6Ve+7jppaKUMI2I/r mnLQ/dS06GjDc7DEbGnNotvZR9nfxXZcgTNecLQDUZIt8pBbGPesLdv2Cf31cgc8 15d50Dzi6hW8ybgkzf2/lih2VZhF6qpf2Q1BEsOnWiqt7BPgl9EP2ryQ7zwGnzGA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrfeekgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvhfffkfggtgfgsehtkeertddttd flnecuhfhrohhmpeeoghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnrdhorhhg qeenucfkphepkeefrdekiedrkeelrddutdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 2E0E33280063; Thu, 30 Jan 2020 05:06:57 -0500 (EST) Subject: FAILED: patch "[PATCH] usb: dwc3: turn off VBUS when leaving host mode" failed to apply to 4.9-stable tree To: b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org Cc: From: Date: Thu, 30 Jan 2020 11:06:56 +0100 Message-ID: <1580378816222208@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.9-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 09ed259fac621634d51cd986aa8d65f035662658 Mon Sep 17 00:00:00 2001 From: Bin Liu Date: Wed, 11 Dec 2019 10:10:03 -0600 Subject: [PATCH] usb: dwc3: turn off VBUS when leaving host mode VBUS should be turned off when leaving the host mode. Set GCTL_PRTCAP to device mode in teardown to de-assert DRVVBUS pin to turn off VBUS power. Fixes: 5f94adfeed97 ("usb: dwc3: core: refactor mode initialization to its own function") Cc: stable@vger.kernel.org Signed-off-by: Bin Liu Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index f561c6c9e8a9..1d85c42b9c67 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -1246,6 +1246,9 @@ static void dwc3_core_exit_mode(struct dwc3 *dwc) /* do nothing */ break; } + + /* de-assert DRVVBUS for HOST and OTG mode */ + dwc3_set_prtcap(dwc, DWC3_GCTL_PRTCAP_DEVICE); } static void dwc3_get_properties(struct dwc3 *dwc)