From patchwork Wed Nov 30 06:05:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9453749 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EDFED6071C for ; Wed, 30 Nov 2016 06:06:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E0E1B2838E for ; Wed, 30 Nov 2016 06:06:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D394D283F7; Wed, 30 Nov 2016 06:06:23 +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=-6.9 required=2.0 tests=BAYES_00,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 691612838E for ; Wed, 30 Nov 2016 06:06:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756112AbcK3GF4 (ORCPT ); Wed, 30 Nov 2016 01:05:56 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:60203 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756437AbcK3GFq (ORCPT ); Wed, 30 Nov 2016 01:05:46 -0500 Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OHF00UHTY9KNB30@mailout2.samsung.com> for linux-mmc@vger.kernel.org; Wed, 30 Nov 2016 15:05:44 +0900 (KST) X-AuditID: cbfee61a-f79916d0000062de-d9-583e6c38cdf4 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 8D.EF.25310.83C6E385; Wed, 30 Nov 2016 15:05:44 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OHF002CRY9KUQ00@mmp1.samsung.com>; Wed, 30 Nov 2016 15:05:44 +0900 (KST) From: Jaehoon Chung To: linux-mmc@vger.kernel.org Cc: ulf.hansson@linaro.org, adrian.hunter@intel.com, Jaehoon Chung Subject: [PATCH] mmc: sdhci-s3c: add spin_unlock_irq() before calling clk_round_rate Date: Wed, 30 Nov 2016 15:05:42 +0900 Message-id: <20161130060542.18225-1-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHLMWRmVeSWpSXmKPExsVy+t9jAV2LHLsIgymNFhYnn6xhs7jxq43V 4sj/fkaL42vDHVg8Fu95yeRx59oeNo++LasYPT5vkgtgiXKzyUhNTEktUkjNS85PycxLt1UK DXHTtVBSyEvMTbVVitD1DQlSUihLzCkF8owM0ICDc4B7sJK+XYJbxpzDBxkLprNVnFz6ja2B cRZrFyMnh4SAicSj54+hbDGJC/fWs4HYQgJLGSX+/1LoYuQCsn8wSix9u5sFJMEmoCOx/dtx JhBbREBW4uefC2ANzAKxEtM+HGbuYuTgEBYIkzjaHgkSZhFQlThy7ikziM0rYC3xpnEHM8Qu eYmF548wTWDkXsDIsIpRIrUguaA4KT3XMC+1XK84Mbe4NC9dLzk/dxMjOOyeSe1gPLjL/RCj AAejEg/vhD7bCCHWxLLiytxDjBIczEoivAzZdhFCvCmJlVWpRfnxRaU5qcWHGE2BDpjILCWa nA+MibySeEMTcxNzYwMLc0tLEyMlcd7G2c/ChQTSE0tSs1NTC1KLYPqYODilGhi17VhnfGs7 0NrS+P5MzoY82UwG7jXdb+bJzjJo9+dZfv/poh0v9G5Fe5+U/ncq+1NsW/Xhkttr7OPkP789 YZ76ivc863SVTZlfAq9If7+y1vGA2JL3U8+faYu93MmVNfkDV7pixOQKtugP/T9PCUw0vLvI wdBmSsTcPBu5rLt+hrt6XoieV49WYinOSDTUYi4qTgQAqnkzQ1ECAAA= X-MTR: 20000000000000000@CPGS Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Before calling clk_round_rate(), put the spin_unlock_irq() in sdhci_s3c_consider_clock() function. Signed-off-by: Jaehoon Chung Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-s3c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c index 784c5a8..de219ca 100644 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhci-s3c.c @@ -121,7 +121,9 @@ static unsigned int sdhci_s3c_consider_clock(struct sdhci_s3c *ourhost, * speed possible with selected clock source and skip the division. */ if (ourhost->no_divider) { + spin_unlock_irq(&ourhost->host->lock); rate = clk_round_rate(clksrc, wanted); + spin_lock_irq(&ourhost->host->lock); return wanted - rate; }