From patchwork Tue Oct 3 10:00:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 114681 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp1682894qgn; Tue, 3 Oct 2017 03:00:41 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAAsJtLJCnxOCYjCtklOOPyvgks5p0OD+rysVCCz7znZ+f8Ny22xhrxzdkWXLZnVRqT81Cs X-Received: by 10.99.39.129 with SMTP id n123mr15123683pgn.240.1507024841695; Tue, 03 Oct 2017 03:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507024841; cv=none; d=google.com; s=arc-20160816; b=c1zMHIc0tYElp9oGVsGdLDPmt1nnXYABYQ88vAWk1zfqG81iOYDLXbMAqlbZgokC6f 0GNjg0SBGKA5sRmcB0Kfsqnd5C+sKvtGpJs0cxR4c7a1Te1p/C9Jq/KYUQfwIpQREPuz AcaCSiB7kSxkp2IlqSJtpwE+DSh5XqiAsgxKa2Ku1cuiQIdRSRuYQbn9f/MtnQpGc8IW TjD1pnJdrJbnmYKF0p5CrA8jU8Kjt5EV8HwTFxBKAYzehHdMRbrWnb0NReKXPCb7WtB9 t0MxQBrZYr22SCow2df0bRkN4RBHFTUKa0ojWbq3YfVKr0JPzrmW8sOqtLm6tdmoXxFk 6cVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=xBYULXAjZlLKsL5YUpDMwtVr7uZmNC/kPLoLyjoDbbc=; b=rjP8PAkDWv8dkIBn2amUhXCXzJfe6P3TQn11mrSB0+uQZmfFyHkYRp9JsQFYdBI/WX AqYbypuCR+CfRjeYnUJINfKR6GRDO0dbe0yjFbqOKMQlcxX5rTsU4BJHXOXomdu1qWXP mUIKjx4ByMeUCpURExe+uWolp2vrxfsUiulRedyOHYrhWW3FhC1f1APkqaEWe1BulFl0 vI4l7dDC59/NitotDEqIBRcc7stxuUbhpC+p0875Z+JBr+JztoMIVYlX5CV8/v2r20bh wgmErxDZ0uudrwKa3L5sP66b1EpuFVZSM5JXDFTTpKNllDruS+4ME0fMz0cRuQVwZl+9 15RA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r6si10187028pls.298.2017.10.03.03.00.41; Tue, 03 Oct 2017 03:00:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751663AbdJCKAk (ORCPT + 4 others); Tue, 3 Oct 2017 06:00:40 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:51427 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751505AbdJCKAe (ORCPT ); Tue, 3 Oct 2017 06:00:34 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20171003100032euoutp01f8c64cbff5a82fec17dfdcc502356212~qBxnCLHJg2778427784euoutp01H; Tue, 3 Oct 2017 10:00:32 +0000 (GMT) Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171003100032eucas1p20c699cd2ce66c0e8729a064bf2ebc517~qBxmpWELs1466914669eucas1p2r; Tue, 3 Oct 2017 10:00:32 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3.samsung.com (EUCPMTA) with SMTP id C7.DB.12867.FBF53D95; Tue, 3 Oct 2017 11:00:31 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20171003100031eucas1p29f34d4e1878d839a7af9ea05ba15ece9~qBxmBr21O1466914669eucas1p2q; Tue, 3 Oct 2017 10:00:31 +0000 (GMT) X-AuditID: cbfec7f2-f793b6d000003243-bf-59d35fbfd560 Received: from eusync2.samsung.com ( [203.254.199.212]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 82.A1.18832.FBF53D95; Tue, 3 Oct 2017 11:00:31 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OX8005VZRSOD560@eusync2.samsung.com>; Tue, 03 Oct 2017 11:00:31 +0100 (BST) From: Marek Szyprowski To: linux-clk@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH 7/9] clk: samsung: Rework clkdev alias handling in S3C2443 driver Date: Tue, 03 Oct 2017 12:00:14 +0200 Message-id: <20171003100016.32029-8-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.14.2 In-reply-to: <20171003100016.32029-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKIsWRmVeSWpSXmKPExsWy7djP87r74y9HGmyebGKxccZ6VovrX56z Wpw/v4Hd4mPPPVaLGef3MVmsPXKX3eLwm3ZWB3aPTas62Tz6tqxi9Pi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FOXuL9gvuMIDangJ3E4o/LweJCQDWN81cxT2DkXcDIsIpR JLW0ODc9t9hQrzgxt7g0L10vOT93EyMwhLYd+7l5B+OljcGHGAU4GJV4eHd4XIoUYk0sK67M PcQowcGsJMI7zetypBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHe3j2rI4UE0hNLUrNTUwtSi2Cy TBycUg2M0x8aavadcSuc9zx1ptnpjrKFMj/1Nz01fj5xl/a80I4XdddNjU67Pjhc+HG/V8ax u1dtHCfmrG7mXGSe5fhc2nKLhKDpoobt/NPOPNxxcbNV2osNz44dSFvi9i3wj8+HBaaT1+aX JHf87Nnm9TKn8/mf3RxnMxhWZeQKPvsyJ5Tvvlqrl9zmWCWW4oxEQy3mouJEANShI70dAgAA X-CMS-MailID: 20171003100031eucas1p29f34d4e1878d839a7af9ea05ba15ece9 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-CMS-RootMailID: 20171003100031eucas1p29f34d4e1878d839a7af9ea05ba15ece9 X-RootMTR: 20171003100031eucas1p29f34d4e1878d839a7af9ea05ba15ece9 References: <20171003100016.32029-1-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org S3C2443 SoCs still uses old, non-dt CPUfreq driver, which requires clkdev aliases to get access to proper clocks. Create those aliases using samsung_clk_register_alias() function instead of using *_A clock macros, which will be removed soon. Signed-off-by: Marek Szyprowski --- drivers/clk/samsung/clk-s3c2443.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.14.2 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Chanwoo Choi diff --git a/drivers/clk/samsung/clk-s3c2443.c b/drivers/clk/samsung/clk-s3c2443.c index abb935c42916..45166033f638 100644 --- a/drivers/clk/samsung/clk-s3c2443.c +++ b/drivers/clk/samsung/clk-s3c2443.c @@ -117,8 +117,8 @@ struct samsung_mux_clock s3c2443_common_muxes[] __initdata = { MUX(0, "epllref", epllref_p, CLKSRC, 7, 2), MUX(ESYSCLK, "esysclk", esysclk_p, CLKSRC, 6, 1), MUX(0, "mpllref", mpllref_p, CLKSRC, 3, 1), - MUX_A(MSYSCLK, "msysclk", msysclk_p, CLKSRC, 4, 1, "msysclk"), - MUX_A(ARMCLK, "armclk", armclk_p, CLKDIV0, 13, 1, "armclk"), + MUX(MSYSCLK, "msysclk", msysclk_p, CLKSRC, 4, 1), + MUX(ARMCLK, "armclk", armclk_p, CLKDIV0, 13, 1), MUX(0, "mux_i2s0", i2s0_p, CLKSRC, 14, 2), }; @@ -189,6 +189,8 @@ struct samsung_gate_clock s3c2443_common_gates[] __initdata = { }; struct samsung_clock_alias s3c2443_common_aliases[] __initdata = { + ALIAS(MSYSCLK, NULL, "msysclk"), + ALIAS(ARMCLK, NULL, "armclk"), ALIAS(HCLK, NULL, "hclk"), ALIAS(HCLK_SSMC, NULL, "nand"), ALIAS(PCLK_UART0, "s3c2440-uart.0", "uart"),