From patchwork Fri Nov 23 10:15:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 10695547 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 093A95A4 for ; Fri, 23 Nov 2018 10:16:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E92882BBAA for ; Fri, 23 Nov 2018 10:16:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D9F432C477; Fri, 23 Nov 2018 10:16:38 +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 B492A2BE92 for ; Fri, 23 Nov 2018 10:16:37 +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=ckk8dLKSyAdTkudpOIxfWEQQrz7CD8TDURLibBr+07g=; b=RHhIFrUYk9RhDx wV62v6i4xRhyRQKuFzpn7fdcfTI0cXOKhQWKzCQbPdVwqm/fRZUVYJWk7tCxo62diKEc25ZkucsQT +61EdgjhOgdvG09axVwiKiMIDdbqhOB3PsxHXrZyAYHPei8tcAMzlEY0lods/TyoZP6ZyDnlwsPgB aCt44GbaBt6B1mSRkkTg/DHHs68BrZW/oEBxIO8QkyFIcim6FWIip3xAo7YRm6XVOeZ/cSZCOyC2x o4zymORbVewcAoFc3g3RG8Ch+N5SV/KM9h0hzd2rC+Mcp/UzpHhIVZ6XpEcp2QWVh4caTdtZCKMBm 6T2m2T35SMY9NElXGmNA==; 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 1gQ8Vj-00012s-7a; Fri, 23 Nov 2018 10:16:31 +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 1gQ8VY-0000q3-F6 for linux-arm-kernel@lists.infradead.org; Fri, 23 Nov 2018 10:16:22 +0000 Received: by mail.bootlin.com (Postfix, from userid 110) id 6126120DBF; Fri, 23 Nov 2018 11:16:09 +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 EE999207AD; Fri, 23 Nov 2018 11:15:58 +0100 (CET) From: Miquel Raynal To: Gregory Clement , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Rob Herring , Mark Rutland , Jens Axboe , Hans de Goede Subject: [PATCH 0/7] Bring suspend to RAM support to MVEBU SATA Date: Fri, 23 Nov 2018 11:15:49 +0100 Message-Id: <20181123101556.29888-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_021620_641255_5442606B X-CRM114-Status: GOOD ( 13.24 ) 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, linux-pm@vger.kernel.org, Antoine Tenart , Maxime Chevallier , Nadav Haklai , linux-ide@vger.kernel.org, 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 SATA IP. First, a change in the libahci platform adds support for the new PHY framework by following the phy_set_mode()/phy_power_on() sequence. Then, the AHCI MVEBU driver is a bit updated (patch 2 & 3) and a missing initialization is added for the A3700 in patch 4 (only done by the Bootloader before). Missing clock support is implemented in patch 5 to be sure the clock will be resumed before this driver (see [1] for the series adding device links to the clock core). Finally, device trees are updated to reflect the hardware: the missing PHY is added to the ESPRESSObin DT, and the clock is added to the SoC DT (patch 6 & 7). Bindings already document the clock and the PHY so no update is needed on this regard. [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2018-November/614527.html Thanks, Miquèl Miquel Raynal (7): ata: libahci_platform: comply to PHY framework ata: ahci: mvebu: remove stale comment ata: ahci: mvebu: do Armada 38x configuration only on relevant SoCs ata: ahci: mvebu: add Armada 3700 initialization needed for S2RAM ata: ahci: mvebu: add clock support ARM64: dts: marvell: armada-37xx: declare SATA clock ARM64: dts: marvell: armada-3720-espressobin: declare SATA PHY property .../dts/marvell/armada-3720-espressobin.dts | 2 + arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 1 + drivers/ata/ahci_mvebu.c | 93 ++++++++++++++----- drivers/ata/libahci_platform.c | 11 +++ 4 files changed, 84 insertions(+), 23 deletions(-)