From patchwork Tue Aug 15 15:45:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 110182 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp5833057qge; Tue, 15 Aug 2017 08:47:39 -0700 (PDT) X-Received: by 10.101.76.206 with SMTP id n14mr27951188pgt.154.1502812059794; Tue, 15 Aug 2017 08:47:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502812059; cv=none; d=google.com; s=arc-20160816; b=qb05976p7RbwbL+Lk71NJe1CPxgWSUtpUyOZpPvbo+bBmlt5cSjShmyGJUGYXcbDAn RG2TL8twDN7gfJ3w2seifSMjXA7EJFDABhrjmMHiHS8jSivGhtgcIx1fRmzCMB2TsPVQ 7RcYZmPQt5h++HmHRucoPowdhx0Ly5oUgqTbOHntNe/BpK4EY6AAyXhKaTkcRGL3MRz0 uqI7tBkcbS2yTZ8IV30LuK85P309733b89yhT+cEJsJAbDMxuzIDwAxbKJCMF15EaAT/ i3Z8glx9+ZwmtX3KFFwY5wcYV3KQGDBOnhe7OJMFsDxuPxXkkRk1uRZ/LIfBbBNUS1RO VARw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=lf8h8Nl3l2GHJIQsByxj5VLfOaZnZNyBColCHLQACd0=; b=hDfO8x8+QeS6vQZ/ZJKLEO2LX2aja223r5ZmLMg3Ppy4E9IyB3TqYbsgaFOZStGfT5 cTwmDWXNuoJnG4PJqqjXTsDlnV/upzkWcGVETb9k3lEyVsP/A7ZQYUf6h2QcjYmcC4J1 Ly8VAMkgCRTp1H2JoypZaxp3aSmd+beH9/wTxDSLxIDSLdD5TKe+ol31ei9o7SpcDicy 8WgrN57a4wnN28gHNRefmqt8D9k0RF/2tDjY6j3HWbHSblWdl61AJVaI34AkLSUT2c0Y cUhr/sjdhmERoQyl1lDXy3ZeslIA+O15RfDNihQYn64c2kOAkpQrh4nh+g0oDF+w6G1Q kI8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=B7srObzA; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 89si6370058plb.361.2017.08.15.08.47.39; Tue, 15 Aug 2017 08:47:39 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=B7srObzA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753067AbdHOPrh (ORCPT + 25 others); Tue, 15 Aug 2017 11:47:37 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:40696 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752880AbdHOPrf (ORCPT ); Tue, 15 Aug 2017 11:47:35 -0400 Received: from grover.sesame (FL1-122-131-185-176.osk.mesh.ad.jp [122.131.185.176]) (authenticated) by conuserg-08.nifty.com with ESMTP id v7FFjk9X018213; Wed, 16 Aug 2017 00:45:46 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v7FFjk9X018213 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1502811947; bh=lf8h8Nl3l2GHJIQsByxj5VLfOaZnZNyBColCHLQACd0=; h=From:To:Cc:Subject:Date:From; b=B7srObzAF1J8smVPbeaYppAwiAcKoDGsXRS2lVHx/y8sUyMWBXx0aeaAz0KP/EQGU KyTvKKBzuuQM8BYrj+Vg0US9TcWo2WlLoeiIaDgnDmfjJHW8fm4UdWkFmr+aKJz2WH 9qIRf5hS/PrcoXEyfDLC1KL3hHacfvj5zmL1OOyYmGRmDMRtvQ/+EDypKM/P1tmfNB qu5ZdrDjEeMHtp6/mviuodHOxp9+pITCDTD2PvggEyyoe7r1i1k08yjWOe10k8p4h9 i2gZUcqN15KN/QqkpbB8Thfgi0rWXB3WAHE7CaFhES5Aki4JbPYNNYqa3bTiOVvj4s aOa4Wzam7CU9w== X-Nifty-SrcIP: [122.131.185.176] From: Masahiro Yamada To: linux-mmc@vger.kernel.org Cc: Piotr Sroka , Hu Ziji , Adrian Hunter , Christian Daudt , Scott Branden , Zhangfei Gao , Kevin Hao , Olof Johansson , Masahiro Yamada , Al Cooper , linux-kernel@vger.kernel.org, Brian Norris , bcm-kernel-feedback-list@broadcom.com, Barry Song , Florian Fainelli , Gregory Fong , linux-arm-kernel@lists.infradead.org, Ulf Hansson Subject: [PATCH v3 0/4] mmc: sdhci: refactor PM in sdhci-pltfm add support PM for cadence port Date: Wed, 16 Aug 2017 00:45:18 +0900 Message-Id: <1502811922-9346-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [1] implements suspend / resume for sdhci-cadence.c [2] refactor sdhci-pxav2 [3] add clk handling for suspend/resume hooks of sdhci-pltfm. This also cleans up sdhci-brcmstb.c and sdhci-sirf.c [4] export sdhci_pltfm_suspend/resume to reduce code duplication Masahiro Yamada (4): mmc: sdhci-cadence: add suspend / resume support mmc: sdhci-pxav2: switch to managed clk and sdhci_pltfm_unregister() mmc: sdhci: enable/disable the clock in sdhci_pltfm_suspend/resume mmc: sdhci-pltfm: export sdhci_pltfm_suspend/resume drivers/mmc/host/sdhci-brcmstb.c | 37 +------------------ drivers/mmc/host/sdhci-cadence.c | 79 +++++++++++++++++++++++++++++++++++----- drivers/mmc/host/sdhci-pltfm.c | 22 +++++++++-- drivers/mmc/host/sdhci-pltfm.h | 2 + drivers/mmc/host/sdhci-pxav2.c | 30 ++++----------- drivers/mmc/host/sdhci-sirf.c | 39 +------------------- 6 files changed, 100 insertions(+), 109 deletions(-) -- 2.7.4