From patchwork Sun Jun 14 17:22:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 6605111 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DAEEBC0020 for ; Sun, 14 Jun 2015 17:23:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F1F6C20504 for ; Sun, 14 Jun 2015 17:23:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 51EA2204FC for ; Sun, 14 Jun 2015 17:22:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752132AbbFNRW6 (ORCPT ); Sun, 14 Jun 2015 13:22:58 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:36785 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751961AbbFNRW6 (ORCPT ); Sun, 14 Jun 2015 13:22:58 -0400 Received: by pabqy3 with SMTP id qy3so50643828pab.3; Sun, 14 Jun 2015 10:22:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=tkYSiafFRWG6uzugZoH6poBNz7tZZ0ftpfbKhW1O0k4=; b=loZsysO5tnWVgFHVF5QEPwhvuAKfvh0culd56wUHmcwI+kJjDO+sGawv5zVFixKFGH L0zFJJ3LsTdejgwzG+jHDigcet6avn1IEJVhAF87nCMkpUAicpIX7gwLwBx461nxvuDr 3jGjFBTdZ4ZJEcWQxCOlrhZwtT1agg94vBtUQDR8wVMMzQAydypViNgSFNeD9vJRwyJp u1fHZ/dAZmQUUzLEYYeBUkWt0YVL6CMKzCRJLp0PBVqsMIS5+hg5PDfzZqHKCPIPVfzM 0SXPjG9eNoWxsOpL45TLhUSYnRpsyOR6veqK8J1E74w7LNjGyO4/ulHCMgCKyrb1cO5C 1S/A== X-Received: by 10.68.88.33 with SMTP id bd1mr18281526pbb.124.1434302577611; Sun, 14 Jun 2015 10:22:57 -0700 (PDT) Received: from localhost.localdomain (KD118152108246.ppp-bb.dion.ne.jp. [118.152.108.246]) by mx.google.com with ESMTPSA id md8sm9703092pdb.35.2015.06.14.10.22.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 14 Jun 2015 10:22:57 -0700 (PDT) From: Yoshihiro Kaneko To: linux-mmc@vger.kernel.org Cc: Ian Molton , Ulf Hansson , Simon Horman , Magnus Damm , Kuninori Morimoto , linux-sh@vger.kernel.org Subject: [PATCH/RFC] mmc: tmio: Fix suspend process Date: Mon, 15 Jun 2015 02:22:45 +0900 Message-Id: <1434302565-30996-1-git-send-email-ykaneko0929@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Koji Matsuoka The clock should be enable when SDHI registers are accessed. Signed-off-by: Koji Matsuoka Signed-off-by: Yoshihiro Kaneko --- This patch is based on mmc-next branch of Ulf Hansson's mmc tree. * Perhaps this relates to the need to enhance clock management drivers/mmc/host/tmio_mmc_pio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index e3dcf31..ec10bcd 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c @@ -1240,7 +1240,9 @@ int tmio_mmc_host_runtime_suspend(struct device *dev) struct mmc_host *mmc = dev_get_drvdata(dev); struct tmio_mmc_host *host = mmc_priv(mmc); + pm_runtime_get_sync(dev); tmio_mmc_disable_mmc_irqs(host, TMIO_MASK_ALL); + pm_runtime_put(dev); if (host->clk_cache) tmio_mmc_clk_stop(host);