From patchwork Fri Mar 22 10:30:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seungwon Jeon X-Patchwork-Id: 2318971 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 34F0DDFE82 for ; Fri, 22 Mar 2013 10:30:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752824Ab3CVKaX (ORCPT ); Fri, 22 Mar 2013 06:30:23 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:65110 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751679Ab3CVKaW (ORCPT ); Fri, 22 Mar 2013 06:30:22 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MK2001F256IIFJ0@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Fri, 22 Mar 2013 19:30:20 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 7C.D6.02019.CB23C415; Fri, 22 Mar 2013 19:30:20 +0900 (KST) X-AuditID: cbfee690-b7f656d0000007e3-cd-514c32bc4cd0 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id F6.CF.17838.CB23C415; Fri, 22 Mar 2013 19:30:20 +0900 (KST) Received: from DOTGIHJUN01 ([12.23.118.161]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MK2007B356KEV30@mmp1.samsung.com>; Fri, 22 Mar 2013 19:30:20 +0900 (KST) From: Seungwon Jeon To: linux-mmc@vger.kernel.org Cc: 'Chris Ball' , 'Jaehoon Chung' References: In-reply-to: Subject: Subject: [PATCH] mmc: dw_mmc: fix fifo access for 64-bit Date: Fri, 22 Mar 2013 19:30:20 +0900 Message-id: <000d01ce26e8$411079b0$c3316d10$%jun@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac03z3aCvVFr8FaITt2vKVQKst76fw3Ogf7QC4iI1hAMB9K34BZmlr6g Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHIsWRmVeSWpSXmKPExsVy+t8zQ909Rj6BBofn6Vtsf72RzeLGrzZW iyP/+xkdmD0OXVnL6NG3ZRWjx+dNcgHMUVw2Kak5mWWpRfp2CVwZm/r7WQrWsFe823CcpYHx D2sXIyeHhICJRNOe04wQtpjEhXvr2boYuTiEBJYxSszr6IArOjH3PFRiEaNE08E+sA4hgT+M El2TuEBsNgEtib9v3jCD2CICshI//1xgA7GZBbwlXs1fA1TPAVTPLbG6OQgkzCnAI7HuTydY ubCAo8TFPhCbg4NFQFXi+qZoEJNXwFZiapcxSAWvgKDEj8n3WEDCzALqElOm5ELMlpfYvOYt WKMEUPjRX12I9W4Sp66dYYIoEZHY9+IdI8jtEgL72CX+/V7IDpJgERCQ+Db5EAtEr6zEpgPM EL9KShxccYNlAqPELCSLZyEsnoVk8SwkGxYwsqxiFE0tSC4oTkovMtErTswtLs1L10vOz93E CIm7CTsY7x2wPsSYDLR9IrOUaHI+MG7zSuINjc2MLExNTI2NzC3NSBNWEudVb7EOFBJITyxJ zU5NLUgtii8qzUktPsTIxMEp1cDorX7Us9BPdHLt+z+l8rFeT6Lnz+VxmLMwZtf7/RFPuE/L qqf80bOSu7/MSCOF/YJNd96aVebVZ/qfx5kVcV4MXOWd5XRCy1X4y9x8p+Z/mbtf6vhnnvVK V9uz1a9Nmc1q5tfzD2fLRNea/mTZUjuTw8NiY+lm5lq3uVteTOvfeHzynWZzbVUlluKMREMt 5qLiRACP+gx00QIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNKsWRmVeSWpSXmKPExsVy+t9jAd09Rj6BBmteaVlsf72RzeLGrzZW iyP/+xkdmD0OXVnL6NG3ZRWjx+dNcgHMUQ2MNhmpiSmpRQqpecn5KZl56bZK3sHxzvGmZgaG uoaWFuZKCnmJuam2Si4+AbpumTlAm5QUyhJzSoFCAYnFxUr6dpgmhIa46VrANEbo+oYEwfUY GaCBhHWMGZv6+1kK1rBXvNtwnKWB8Q9rFyMnh4SAicSJuefZIGwxiQv31gPZXBxCAosYJZoO 9jGCJIQE/jBKdE3iArHZBLQk/r55wwxiiwjISvz8cwGsmVnAW+LV/DVA9RxA9dwSq5uDQMKc AjwS6/50gpULCzhKXOwDsTk4WARUJa5vigYxeQVsJaZ2GYNU8AoISvyYfI8FJMwsoC4xZUou xGx5ic1r3oI1SgCFH/3VhVjvJnHq2hkmiBIRiX0v3jFOYBSahWTQLIRBs5AMmoWkYwEjyypG 0dSC5ILipPRcQ73ixNzi0rx0veT83E2M4Kh+JrWDcWWDxSFGAQ5GJR5eDR3vQCHWxLLiytxD jBIczEoivJEpQCHelMTKqtSi/Pii0pzU4kOMyUBPTmSWEk3OByacvJJ4Q2MTMyNLIzMLIxNz c9KElcR5D7RaBwoJpCeWpGanphakFsFsYeLglGpgDFiqeGDlt5VRZod2c004fvUOt75PL/sv nUvvDl78+aNMbLL+H7YfxmqLJbyWLTu39NK6mweYGPzmam5bvFrG9PR8iz1fc++7SgWmzJ2d +2O33b5tNrn7Py/YxC3rv+NL2clHywOXGMXdCuBKejX17WMGtTNXLK7oaAh1XEl/c7nxS8JD jyX8/6YqsRRnJBpqMRcVJwIAYatl3S4DAAA= 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 Subject: [PATCH] mmc: dw_mmc: fix fifo access for 64-bit mci_writew causes a failure of fifo access for 64-bit. mci_writeq is correct. Signed-off-by: Seungwon Jeon --- This patch depends on [PATCH 3/3] dw_mmc: Handle unaligned data submission correctly. drivers/mmc/host/dw_mmc.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index aab5473..0d8fb78 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -1373,8 +1373,9 @@ static void dw_mci_push_data64(struct dw_mci *host, void *buf, int cnt) int len = dw_mci_push_part_bytes(host, buf, cnt); buf += len; cnt -= len; + if (host->part_buf_count == 8) { - mci_writew(host, DATA(host->data_offset), + mci_writeq(host, DATA(host->data_offset), host->part_buf); host->part_buf_count = 0; }