From patchwork Fri Nov 23 11:22:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 10695657 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E4DF513B5 for ; Fri, 23 Nov 2018 11:30:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D55B92C6DF for ; Fri, 23 Nov 2018 11:30:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9D662C72E; Fri, 23 Nov 2018 11:30:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 581AB2C6DF for ; Fri, 23 Nov 2018 11:30:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=bAtx8n/oH0uU9I2Xe3YNG4cUZXO9GZdRDnSYyOr3F3w=; b=TVo/H9qBdAS2eU raM2cfnRWxmlASpWMfu2qP6PzqVvhHtGviUSxpDZX222OUMAZaQvuvGMPnWxHShu7U5BKSpX59KJ0 rRdgVqstf40Qk4eLSGp3CUFAjvkBKQPKbb1N1/04xYOZVLwRq7+Xbg4pM0DjSx3nXY0aWWM5RuIHi 2xgsVzDrW7evg525Mbt26a2IGZQ+Ut9w2/3PBW6nk7jSjL0Q6mlmkx+g3R3s751wsVju5FO6xLRiu RYgsAFOb/LAWQUN/T4F5L1HcRSPaGbZ185+RtVqwggVtc3FHZQY+q3L47Kro5kT+o56VP2rtAFn05 UP0O5PCC2Tn4QqhvddrA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gQ9f0-0005Oz-28; Fri, 23 Nov 2018 11:30:10 +0000 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gQ9Xa-0001ia-0M for linux-arm-kernel@lists.infradead.org; Fri, 23 Nov 2018 11:22:33 +0000 Received: by mail.bootlin.com (Postfix, from userid 110) id C85F820712; Fri, 23 Nov 2018 12:22:18 +0100 (CET) Received: from localhost.localdomain (aaubervilliers-681-1-94-205.w90-88.abo.wanadoo.fr [90.88.35.205]) by mail.bootlin.com (Postfix) with ESMTPSA id 631C320712; Fri, 23 Nov 2018 12:22:18 +0100 (CET) From: Miquel Raynal To: Gregory Clement , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Rob Herring , Mark Rutland , Greg Kroah-Hartman , Mathias Nyman Subject: [PATCH 0/3] Bring suspend to RAM support to xHCI MVEBU driver Date: Fri, 23 Nov 2018 12:22:14 +0100 Message-Id: <20181123112217.4878-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181123_032230_184313_C4216E12 X-CRM114-Status: GOOD ( 15.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Antoine Tenart , linux-usb@vger.kernel.org, Maxime Chevallier , Nadav Haklai , Thomas Petazzoni , Miquel Raynal , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, As part of an effort to bring suspend to RAM support to Armada 3700 SoCs (main target: ESPRESSObin), this series handles the work around the USB3 host IP. First, a change in the core adds support for the new PHY framework by following the phy_set_mode()/phy_power_on() sequence (patch 1). The second change needed is to update the xHCI MVEBU driver (patch 2) with the XHCI_RESET_ON_RESUME quirk that will do most of the reconfiguration work when resuming. Then, because of the asynchronous suspend feature implemented lately the driver was blocking during the S2RAM operation, probably due to a register access while the clock was not enabled. A first patch has been written for that, adding a new quirk to ignore the asynchronous setting [1] which has become useless once clock links with consumer have been contributed [2] (series not merged yet). Finally, the ESPRESSObin device tree is updated (patch 3) to reference the PHY. xHCI bindings already document the PHY so no update is needed on this regard. [1] http://code.bulix.org/s2ccd4-511198 [2] http://lists.infradead.org/pipermail/linux-arm-kernel/2018-November/614527.html Thanks, Miquèl Miquel Raynal (2): usb: core: comply to PHY framework ARM64: dts: marvell: armada-3720-espressobin: declare USB3 PHY Ofer Heifetz (1): usb: host: xhci: mvebu: add reset on resume quirk .../dts/marvell/armada-3720-espressobin.dts | 1 + drivers/usb/core/hcd.c | 5 ++++ drivers/usb/core/phy.c | 28 +++++++++++++++++++ drivers/usb/core/phy.h | 2 ++ drivers/usb/host/Kconfig | 2 +- drivers/usb/host/xhci-mvebu.c | 11 ++++++++ drivers/usb/host/xhci-mvebu.h | 6 ++++ drivers/usb/host/xhci-plat.c | 7 +++++ 8 files changed, 61 insertions(+), 1 deletion(-)