Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5866040iob; Tue, 10 May 2022 05:39:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9WhZRvLuu+/m2oLLbxfbVPWQM13UtAh/IVlTZdM/b9JadpUbcuPbJ961h3g8ZAB9nIMoc X-Received: by 2002:a05:6402:1d4a:b0:427:b250:ee56 with SMTP id dz10-20020a0564021d4a00b00427b250ee56mr23235779edb.31.1652186385379; Tue, 10 May 2022 05:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652186385; cv=none; d=google.com; s=arc-20160816; b=W3anitfjMQAmrMF2B44x++Yskqm0OLKe1gxa4Zvknij+XOjtWn8hHNuXzJfS9rbrsq 4IY+bSecKDL5kgIoEtLNVi7Z2GwICKcVKON6JLg/1DSexYo5+WJf5Oz1pbuHXoAxoynE xKrWD29VK67MmOjBBthA071ZT1d32dDpa/zyAX2PhoGEeGvJCPQ7Tpc3ICgH+UJfGEp2 8RylFfgnmdlz/pUyCMmhJNzqNcJQ01UCrRMj+24Okgw5DW8CbbaOQpGPwtSBKfPtD333 chE4uLDe9TfVGrg9ZrFnFEboRlzxSOOl0F3jn2uah5ykWGbusbPGqMhBxDZZeNDo6vDw 4d6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=a1FdjvAvBabmLm4piyf37Hjo9sFlsoGQgqNCW+UhIAU=; b=F6hQ2nqedk0AdLDbcFTdOkNrrnIw/FL+5fED7UzCpfOvkCwHYe3HiFWo987bETZD7u gcdroIJjtXGwde8LDQQqqd3N2bUIu9NSK0dO9Jcv/3jRlgVVHPBaqXnl27CaDyxJGaj7 ZtWOPVmVZhaWPwyIfV+fMq1eFFR6ZInEaCZE5iPxFxpBWPRq6yvxZZc6iR2nH2M3dTug j7VqA1K0i05uwo+szUCIEMFof+jB6WL8P4sNJoLNsA8mdPSAfKIIsNeexgXsdQfCd9ZK on7Tq+2lEj2s9LzlYLagyPSSMhLCBebguGiyyUWeryxYvXfN0WDkIqef4Mg3X/I7NBOi beRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZZiV8FDh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m10-20020a50c18a000000b0041d75705a25si14593060edf.232.2022.05.10.05.39.16; Tue, 10 May 2022 05:39:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZZiV8FDh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234752AbiEJKxh (ORCPT + 99 others); Tue, 10 May 2022 06:53:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240126AbiEJKwl (ORCPT ); Tue, 10 May 2022 06:52:41 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B5A0266E1A for ; Tue, 10 May 2022 03:48:38 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id x12so14316285pgj.7 for ; Tue, 10 May 2022 03:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=a1FdjvAvBabmLm4piyf37Hjo9sFlsoGQgqNCW+UhIAU=; b=ZZiV8FDh2493+GOlLnM7AZV/ZfAixCm4kzvDQ1nO/IODoCr4uGB1REYq3dCvCCoueB v+z6rjTTcoU+PfM7KZLpjbvUy/9Leb07mDEpaqkxxR9K+Iig89VNPPYI9/RhCyVb23rZ UL8+bSzulghk0/90WI7aFZh9Fo5N0C4xCsLDg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=a1FdjvAvBabmLm4piyf37Hjo9sFlsoGQgqNCW+UhIAU=; b=jpYsywnrtlhM+JOiWAYqo8Y3pHFDv04OD1gIiCQImL7RJR/0QrquV3KrvQyii/jhvu dmg8GFnRbvlYV3pteh2Y0wQqdf3BZIvYZDUXo2TVXmA3FbST7062AGX4hx1iBIXsGmYs TkNI8TfIP8vJ538O0/ZhY+bl8T/+V4NtHgdmK2upNqC6e9wdXXc28aZgAZle5apDpBfW 1Z1Wc0w9hcDtJypgPi+t4rps9SouIF7lP4SoAt0elpH7zqqw5mbJ8HlYHXLfFAmdmBK2 cCXEnrOLY6jH9PP2CjhHBe08XeZS56LG2zwoHxivZxhedQyF94+7bhD8mrslpb4rpzy9 ERMQ== X-Gm-Message-State: AOAM531gjJVC/2Yr8JPlSP/HUthBNdkxAXa7LoInospqAiU0W8sUmIwx UxdCzSFqKFcSDWi4w7kFteZxAQ== X-Received: by 2002:a05:6a00:228c:b0:50e:17ba:9f84 with SMTP id f12-20020a056a00228c00b0050e17ba9f84mr19695444pfe.62.1652179717922; Tue, 10 May 2022 03:48:37 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:6dcd:8578:55cf:2b12]) by smtp.gmail.com with ESMTPSA id q9-20020a170902e30900b0015e8d4eb21esm1659691plc.104.2022.05.10.03.48.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 May 2022 03:48:37 -0700 (PDT) From: Chen-Yu Tsai To: Michael Turquette , Stephen Boyd , Chun-Jie Chen , Miles Chen , Rex-BC Chen Cc: Chen-Yu Tsai , Matthias Brugger , AngeloGioacchino Del Regno , linux-clk@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 11/11] clk: mediatek: mt8173: Switch to clk_hw provider APIs Date: Tue, 10 May 2022 18:48:04 +0800 Message-Id: <20220510104804.544597-12-wenst@chromium.org> X-Mailer: git-send-email 2.36.0.512.ge40c2bad7a-goog In-Reply-To: <20220510104804.544597-1-wenst@chromium.org> References: <20220510104804.544597-1-wenst@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As part of the effort to improve the MediaTek clk drivers, the next step is to switch from the old 'struct clk' clk prodivder APIs to the new 'struct clk_hw' ones. The MT8173 clk driver has one clk that is registered directly with the clk provider APIs, instead of going through the MediaTek clk library. Switch this instance to use the clk_hw provider API. Signed-off-by: Chen-Yu Tsai --- drivers/clk/mediatek/clk-mt8173.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt8173.c b/drivers/clk/mediatek/clk-mt8173.c index 68d3a9749316..d34b248c42ca 100644 --- a/drivers/clk/mediatek/clk-mt8173.c +++ b/drivers/clk/mediatek/clk-mt8173.c @@ -994,7 +994,6 @@ static void __init mtk_apmixedsys_init(struct device_node *node) struct clk_hw_onecell_data *clk_data; void __iomem *base; struct clk_hw *hw; - struct clk *clk; int r, i; base = of_iomap(node, 0); @@ -1023,10 +1022,10 @@ static void __init mtk_apmixedsys_init(struct device_node *node) clk_data->hws[cku->id] = hw; } - clk = clk_register_divider(NULL, "hdmi_ref", "tvdpll_594m", 0, - base + 0x40, 16, 3, CLK_DIVIDER_POWER_OF_TWO, - NULL); - clk_data->hws[CLK_APMIXED_HDMI_REF] = __clk_get_hw(clk); + hw = clk_hw_register_divider(NULL, "hdmi_ref", "tvdpll_594m", 0, + base + 0x40, 16, 3, CLK_DIVIDER_POWER_OF_TWO, + NULL); + clk_data->hws[CLK_APMIXED_HDMI_REF] = hw; r = of_clk_add_hw_provider(node, of_clk_hw_onecell_get, clk_data); if (r) -- 2.36.0.512.ge40c2bad7a-goog