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: 10695529 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 DD0C85A4 for ; Fri, 23 Nov 2018 10:16:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD22C2C477 for ; Fri, 23 Nov 2018 10:16:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C085A2C4DB; Fri, 23 Nov 2018 10:16:14 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42A812C477 for ; Fri, 23 Nov 2018 10:16:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2503194AbeKWU7v (ORCPT ); Fri, 23 Nov 2018 15:59:51 -0500 Received: from mail.bootlin.com ([62.4.15.54]:54729 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503170AbeKWU7u (ORCPT ); Fri, 23 Nov 2018 15:59:50 -0500 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 Cc: , , linux-ide@vger.kernel.org, linux-pm@vger.kernel.org, Thomas Petazzoni , Antoine Tenart , Maxime Chevallier , Nadav Haklai , Miquel Raynal 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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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(-)