From patchwork Wed Dec 20 10:50:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 122452 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5402825qgn; Wed, 20 Dec 2017 02:50:53 -0800 (PST) X-Google-Smtp-Source: ACJfBotK6fgB5h9eHkiWStRqtawnghA6GB2zyw1bAZvu94PpIxkbETGaFIRBLpWo8asaYBw523i7 X-Received: by 10.99.108.7 with SMTP id h7mr5805863pgc.343.1513767053321; Wed, 20 Dec 2017 02:50:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513767053; cv=none; d=google.com; s=arc-20160816; b=yhnTzPml1hvs/LE1cKBM/2dgWZc/y8JvRjho3OnflxCEi+o6Jf8TSJSXMmz93z/GrD dwFrMbSMYMbwr6COVYMCqQK3x28oLK3/S8wGUEpt/oZ/6tTZejKePzvIH+IBZVZZeigN Lquko7ONdvxwf368V+1T0ghYqHuq2PiOa8hwAlErHnC1bKeVpkKcld14wlfRlJXO+AI/ ZMHyaEK21y5UdvkCwt9LTT7bGUiCDHOYOcy14IDb5Up5UE3OIG4PDcZHXOMfN+jYqJHv j+GW8zPizcSjbl8baDjR6Ua9PCyT8uxUui514z5pxSv4sGAGli/i/IJXxsp4DjIiX2Rb ci+A== 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 :arc-authentication-results; bh=QzdL18vn2vhLp/5mZicJr44mlFetxR+NnpKO5NhPrpI=; b=uVe8eT2mzDZ1pcp4SHnaMYwDJ+u4kSJibYG/CvoOb9rgaI7EC+6WWqIoh66bjrXZ9W IpQ75mNxXfjtnjWgsUviXzsWV5zyTnfbkRPVGi7Skg2hg2V3q80LhMA5+eFBsLXCfTYK +HbHIK/AWujwqNjj3wx2Q68rzbZCDctXTpxGCB0pg4NvvZRJ59x1Mdxr7CBoUZEJiThi 6+8aEezd6oS3m4KxOynY3paR4mYWmYCFzTFWkv9RwkrpPu+m6DGpHSL7zkhcRexqxRub MbfUAaBKhsr6x7U6mcIBRLZ/pnZxQwK8DLCUdtJrOWdImXcj93DDLCXgVbeNK8xbacpv Tekg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-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 w31si12482718pla.517.2017.12.20.02.50.52; Wed, 20 Dec 2017 02:50:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-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-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753874AbdLTKuv (ORCPT + 6 others); Wed, 20 Dec 2017 05:50:51 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:54087 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753283AbdLTKuu (ORCPT ); Wed, 20 Dec 2017 05:50:50 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id B12A32092B; Wed, 20 Dec 2017 11:50:48 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 718FC20376; Wed, 20 Dec 2017 11:50:38 +0100 (CET) From: Maxime Ripard To: Chen-Yu Tsai , Maxime Ripard , Ulf Hansson Cc: linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org Subject: [PATCH 0/2] mmc: sunxi: Add runtime PM support Date: Wed, 20 Dec 2017 11:50:33 +0100 Message-Id: X-Mailer: git-send-email 2.14.3 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Hi, Since it's introduction, our MMC controller has had its external clocks running all the time. While that was working great, the power usage and most importantly the EMI that it generated was pretty bad. Let's implement some runtime_pm hooks with an autosuspend to cut the external clock when the MMC is not active. I didn't get all the way to also shutdown the bus clocks since on some older SoCs (before the A31), it also means that the controler will be reset which has some quite important implications obviously. And I couldn't make it work reliably at the moment. Anyway, it can always be implemented as a second step if needed. (Quite simple) benchmarks have shown no noticeable regressions since the controller state is maintained. Let me know what you think, Maxime Maxime Ripard (2): mmc: sunxi: Reorder the headers mmc: sunxi: Add runtime_pm support drivers/mmc/host/sunxi-mmc.c | 133 +++++++++++++++++++++--------------- 1 file changed, 80 insertions(+), 53 deletions(-) base-commit: 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 -- git-series 0.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html