From patchwork Tue Jul 12 06:54:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andi Shyti X-Patchwork-Id: 9224677 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 BDD7060871 for ; Tue, 12 Jul 2016 06:54:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEF3627F95 for ; Tue, 12 Jul 2016 06:54:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A192727F99; Tue, 12 Jul 2016 06:54:22 +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 E834127F95 for ; Tue, 12 Jul 2016 06:54:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753857AbcGLGyR (ORCPT ); Tue, 12 Jul 2016 02:54:17 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:47379 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753255AbcGLGyN (ORCPT ); Tue, 12 Jul 2016 02:54:13 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OA601LWZWIAB220@mailout1.samsung.com>; Tue, 12 Jul 2016 15:54:10 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [172.20.52.113]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 44.06.05160.21494875; Tue, 12 Jul 2016 15:54:10 +0900 (KST) X-AuditID: cbfee68e-f79266d000001428-49-57849412146c Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 08.C8.02101.21494875; Tue, 12 Jul 2016 15:54:10 +0900 (KST) Received: from samsunx.samsung ([10.113.63.54]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OA600K94WI7HO30@mmp2.samsung.com>; Tue, 12 Jul 2016 15:54:09 +0900 (KST) From: Andi Shyti To: Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , Mark Brown , Sylwester Nawrocki , Tomasz Figa , Michael Turquette , Stephen Boyd Cc: Chanwoo Choi , Jaehoon Chung , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-spi@vger.kernel.org, Andi Shyti , Andi Shyti Subject: [PATCH v3 6/7] spi: s3c64xx: restore removed comments Date: Tue, 12 Jul 2016 15:54:04 +0900 Message-id: <1468306444-18512-1-git-send-email-andi.shyti@samsung.com> X-Mailer: git-send-email 2.8.1 In-reply-to: <57837606.8050906@samsung.com> References: <57837606.8050906@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCIsWRmVeSWpSXmKPExsWyRsSkUFdoSku4wYvLyhbbjzxjtVj84zmT xdSHT9gsrn95zmox/8g5Vosbv9pYLV6/MLTof/ya2WLT42usFh977rFazDi/j8mi8eNNdoul 1y8yWVw85WrRuvcIu8XhN+2sFj/OdLNYrNr1h9FByGPNvDWMHu9vtLJ7XO7rZfK4vuQTs8fO WXfZPTat6mTz2Lyk3qNvyypGj8+b5AI4o7hsUlJzMstSi/TtErgy1nw8yFpwlrNi6+xVjA2M 39i7GDk5JARMJH7f6mWDsMUkLtxbD2RzcQgJrGCUuLVyCVARB1jR8e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SwCqhJzTl1lBrF5BdwkJh65wASxTk7i8vQHYFM5BbQlLr37zQSxWktixr5VjBMYeRcw MqxilEgtSC4oTkrPNcxLLdcrTswtLs1L10vOz93ECI7uZ1I7GA/ucj/EKMDBqMTDu6CkJVyI NbGsuDL3EKMEB7OSCG9sK1CINyWxsiq1KD++qDQntfgQoynQYROZpUST84GJJ68k3tDYxMzI 0sjc0MLI2FxJnPfx/3VhQgLpiSWp2ampBalFMH1MHJxSDYx8z4pMLjOGyq+NaZO32OW6yLJ1 0o2kUp5Jysm1bMHzOX9mTb5kHfvDXvRHb15T8v5bejymnydpBU6ZfG7yI/3+5WaTbDtcvAV3 rjQoN6j6vMv5g/jfJym/nisq9U2/KvFSjXnb6fIStlMclYLHpGxvXpVPPJfPbvjpc/7uZO91 K4Nv9N00NFdiKc5INNRiLipOBADESDCVBAMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Patch a9e93e8 has erroneously removed some comments which are important to understand why the bus frequency is multiplied by two during the spi transfer. Reword the previous comment to a more appropriate message. Suggested-by: Sylwester Nawrocki Signed-off-by: Andi Shyti Reviewed-by: Michael Turquette --- Hi, despite Mike's comments I'm sending the patch as it was originally meant. I think that fixing the exact clk where to set the rate should anyway go in a different patch. V2->V3 The comment has been reworded as Sylwester recommended. Thanks, Andi drivers/spi/spi-s3c64xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 6da663f..5bedafc 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -639,6 +639,7 @@ static void s3c64xx_spi_config(struct s3c64xx_spi_driver_data *sdd) writel(val, regs + S3C64XX_SPI_MODE_CFG); if (sdd->port_conf->clk_from_cmu) { + /* The src_clk clock is divided internally by 2 */ clk_set_rate(sdd->src_clk, sdd->cur_speed * 2); } else { /* Configure Clock */