From patchwork Mon Apr 22 05:02:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 2469981 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 5A8473FCA5 for ; Mon, 22 Apr 2013 05:02:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751741Ab3DVFCR (ORCPT ); Mon, 22 Apr 2013 01:02:17 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:48643 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751466Ab3DVFCQ (ORCPT ); Mon, 22 Apr 2013 01:02:16 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MLN00JSS4NJR4O0@mailout3.samsung.com> for linux-mmc@vger.kernel.org; Mon, 22 Apr 2013 14:02:14 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.114]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 67.C2.02870.654C4715; Mon, 22 Apr 2013 14:02:14 +0900 (KST) X-AuditID: cbfee68e-b7efc6d000000b36-5a-5174c4563996 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id EC.C3.24666.654C4715; Mon, 22 Apr 2013 14:02:14 +0900 (KST) Received: from [10.90.51.55] by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MLN00GNJ4NQ59A1@mmp2.samsung.com>; Mon, 22 Apr 2013 14:02:14 +0900 (KST) Message-id: <5174C461.9010603@samsung.com> Date: Mon, 22 Apr 2013 14:02:25 +0900 From: Jaehoon Chung User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-version: 1.0 To: "linux-mmc@vger.kernel.org" Cc: 'Chris Ball' , Kyungmin Park , Ben Dooks Subject: [PATCH] mmc: sdhci-s3c: fix the wrong register value when clock is, disabled Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIIsWRmVeSWpSXmKPExsWyRsSkSDfsSEmgwft2JYtJ6w4wWWx/vZHN 4mzTG3aLI//7GR1YPP6uesHscejKWkaPvi2rGD0+b5ILYInisklJzcksSy3St0vgymhbzFfw mK3i2vVG5gbG46xdjJwcEgImEks+H2OBsMUkLtxbz9bFyMUhJLCUUeLAjQVMMEV/326GSkxn lPh4aDorhPOSUWL2ytVsIFW8AloSvUtWM4PYLAKqEvcmPGAEsdkEdCS2fzsONklUIExi0/Q+ Voh6QYkfk+8BrebgEBGwlmj+LQsSZhbIl5hx/R1YubBAuMSx9SsYIeI6Evtbp7FB2PISm9e8 ZQa5QUJgMrvE5J5VTBB7BSS+TT4ENlNCQFZi0wFmiAckJQ6uuMEygVFkFpLNs5CMnYVk7AJG 5lWMoqkFyQXFSelFRnrFibnFpXnpesn5uZsYgdFx+t+zvh2MNw9YH2JMBlo5kVlKNDkfGF15 JfGGxmZGFqYmpsZG5pZmpAkrifOqtVgHCgmkJ5akZqemFqQWxReV5qQWH2Jk4uCUamAU9M2Y uWDhdduCSzOeXPnrej551zymW7MOL+tIFpn6VGOvotzybN4FZ1aYB2nN+hcaJjBtwTT+VAPT o/3vbtVU1Up2NSp6V8tsYJ12y7EuKUxOrtUybHtHwLlY7pwnP+OPyr7ripftKj7wL+T1kYXe qn9fyWjFPprc8PqmwUHu92xqXUcqk88psRRnJBpqMRcVJwIAIQR1d6QCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHIsWRmVeSWpSXmKPExsVy+t9jQd2wIyWBBv++SFlMWneAyWL7641s Fmeb3rBbHPnfz+jA4vF31Qtmj0NX1jJ69G1ZxejxeZNcAEtUA6NNRmpiSmqRQmpecn5KZl66 rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtBOJYWyxJxSoFBAYnGxkr4dpgmhIW66 FjCNEbq+IUFwPUYGaCBhDWNG22K+gsdsFdeuNzI3MB5n7WLk5JAQMJH4+3YzG4QtJnHh3nog m4tDSGA6o8THQ9NZIZyXjBKzV64Gq+IV0JLoXbKaGcRmEVCVuDfhASOIzSagI7H923EmEFtU IExi0/Q+Voh6QYkfk++xdDFycIgIWEs0/5YFCTML5EvMuP4OrFxYIFzi2PoVjBBxHYn9rdPY IGx5ic1r3jJPYOSbhWTSLCRls5CULWBkXsUomlqQXFCclJ5rqFecmFtcmpeul5yfu4kRHHvP pHYwrmywOMQowMGoxMM7obskUIg1say4MvcQowQHs5II7+dOoBBvSmJlVWpRfnxRaU5q8SHG ZKBHJzJLiSbnA9NCXkm8obGJmZGlkbmhhZGxOWnCSuK8B1qtA4UE0hNLUrNTUwtSi2C2MHFw SjUwssqsM3DzLXpRr1G+wrRt6X4uKSPljHSO8l2vjf7d3XBVVoFTYc1irS3sXf6iH/qYuA5v FClc13U7ptt+Gk+6PnOY0bP5V95ybLuuOrNxf/UGu+fXIt3/LlyidPcP56PQVHmLYw9NmNrE XsfeT3CakMDAIW87jenuts3/7F5H8cQcf2hd+eWNEktxRqKhFnNRcSIAqUyOZwEDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org When use the QUIRK_NONSTANDARD_CLOCK, then never set to 0 at clock control register. This patch is fixed this problem. Signed-off-by: Jaehoon Chung Signed-off-by: Kyungmin Park --- drivers/mmc/host/sdhci-s3c.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c index 8cd966d..317bde2 100644 --- a/drivers/mmc/host/sdhci-s3c.c +++ b/drivers/mmc/host/sdhci-s3c.c @@ -298,8 +298,11 @@ static void sdhci_cmu_set_clock(struct sdhci_host *host, unsigned int clock) u16 clk = 0; /* don't bother if the clock is going off */ - if (clock == 0) + if (clock == 0) { + sdhci_writew(host, 0, SDHCI_CLOCK_CONTROL); + host->clock = clock; return; + } sdhci_s3c_set_clock(host, clock);