From patchwork Wed Apr 5 14:06:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sjoerd Simons X-Patchwork-Id: 96881 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp282861qgd; Wed, 5 Apr 2017 07:11:34 -0700 (PDT) X-Received: by 10.84.169.36 with SMTP id g33mr36749905plb.36.1491401494171; Wed, 05 Apr 2017 07:11:34 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w73si20745651pfd.237.2017.04.05.07.11.33; Wed, 05 Apr 2017 07:11:34 -0700 (PDT) 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=collabora.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755249AbdDEOGp (ORCPT + 13 others); Wed, 5 Apr 2017 10:06:45 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:52069 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753497AbdDEOGR (ORCPT ); Wed, 5 Apr 2017 10:06:17 -0400 Received: from dawn.luon.net (unknown [IPv6:2001:1af8:fe00:8421:4dce:99df:b40f:9871]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: sjoerd) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 7FCEA2656B7; Wed, 5 Apr 2017 15:06:15 +0100 (BST) Received: by dawn.luon.net (Postfix, from userid 1000) id 0C5D22E404E3; Wed, 5 Apr 2017 16:06:13 +0200 (CEST) From: Sjoerd Simons To: John Youn , Heiko Stuebner Cc: devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Randy Li , linux-rockchip@lists.infradead.org, Rob Herring , Kishon Vijay Abraham I , Mark Rutland , Russell King , linux-arm-kernel@lists.infradead.org, Greg Kroah-Hartman Subject: [PATCH 0/3] rockchip dwc2: Turn off vbus on shutdown Date: Wed, 5 Apr 2017 16:06:09 +0200 Message-Id: <20170405140613.4444-1-sjoerd.simons@collabora.co.uk> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A board I'm working on seems to get its usb->sata bridge in a rather confused state during reboot, which unfortunately can't be recovered on the next boot (only hard reset helps). This seems to be avoidable by turning off vbus, which turns the internal usb hub off on shutdown. First patch add the ability to describe vbus regulators for the rockchip usb phy, second one starts using that on the rock2 square board and while the final one adds the actual workaround of turning off the phy on shutdown. Sjoerd Simons (3): phy: rockchip-usb: Add vbus regulator support. ARM: dts: rockchip: rock2: Setup usb vbus-supply usb: dwc2: Power off the phy on shutdown .../devicetree/bindings/phy/rockchip-usb-phy.txt | 1 + arch/arm/boot/dts/rk3288-rock2-square.dts | 8 ++++---- drivers/phy/phy-rockchip-usb.c | 19 +++++++++++++++++++ drivers/usb/dwc2/platform.c | 3 +++ 4 files changed, 27 insertions(+), 4 deletions(-) -- 2.11.0