From patchwork Fri Jan 20 09:20:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 46233 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp97519wrn; Fri, 20 Jan 2023 01:22:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXvCmgF8bc5tu8cMb3A99mNQaY1eP6imoTJ67+TvLsAvnIXlXD3I/qqV3GEXKKzhMjBHDkBA X-Received: by 2002:a17:907:c30c:b0:86e:a013:c269 with SMTP id tl12-20020a170907c30c00b0086ea013c269mr17038952ejc.9.1674206526993; Fri, 20 Jan 2023 01:22:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674206526; cv=none; d=google.com; s=arc-20160816; b=gGcyfVZ6ui7FnfeE3BPJAyLdQuVUuAQSdloimsMdyTJU56jJyw3H61Sy6SzijC4Ki2 AlDsqsPInQz7gvVSzhejzH0cG1V43zelX4UfcvzNS6BJZ5CaPnZZemL1sdnI1Vu6pgS0 UKx8X2NWZAcDxmT57nhPrcYkLUVyJaQnh33fo5mGdxGC3MxUl1KKTExlMhFG0pKc1wkK sBYlfjHvakD8gpOafSa2DxxwrkXCkXEi7DhZYW4SmQ65H3vhTUWXb0ZV0Dv55cBmmDLW A37azj8sczngsXPrBk9eVM3T/8wtLLBWucXWV5DTXYG5VpJUuLUUsaoZac6zw/3Vmtxy VCOw== 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=jYsAGD5ocMBKJhzCaLk8kMbkI93fAN8rkgyuNUF+7Uo=; b=unnTxfJa8qbWZD89wSFr0LKMzUkK9xAWWmGWka0I2L7NHc62ohnHk1HgA+r8r9Bpv0 n3NBG1swckYOdy68Ve/uNGx5s98falBshg7poWhsr/W94FW2ExMRFor9x4Pefa69jx51 TJZArB8kjJH3Q3hJxStTsH5tF52tn3rQFrOR1odH4MLOQljmd8AW1024qB5MEb8LBT3J +t0fZacZyAyxuRirFp09dYcUS3akYtXK2KjLiiNwwTtwv8BzmjK1upibJ1veLV4r/V0M ewKSB0LnjEtnE/QakUzTerpAIUuRgDTBK0ykqfjp1HUIGblML6K/YIW6AJZZdNQH/Hzr i3HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=YSw+i8RY; 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=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd12-20020a170907628c00b007c14665652esi19937310ejc.299.2023.01.20.01.21.43; Fri, 20 Jan 2023 01:22:06 -0800 (PST) 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=@collabora.com header.s=mail header.b=YSw+i8RY; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230162AbjATJVV (ORCPT + 99 others); Fri, 20 Jan 2023 04:21:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230179AbjATJVP (ORCPT ); Fri, 20 Jan 2023 04:21:15 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 480E56A327; Fri, 20 Jan 2023 01:21:04 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 557B86602D31; Fri, 20 Jan 2023 09:21:01 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1674206462; bh=9tPJ9+mGDF2rBYfqhmA9MzFzzlfEj1hmoBYnqN2Tlxw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YSw+i8RYweziO8hvmkwP/yGWdCkHeJv4/x+KuQPIi6UBt3xqlClMyNl6nco5NCAat ea6gPbsuyXD1WKMitmBKQZdJ2voxPl2S7xiJsuabTtrQZgdWn6d1nzPVXTmgvcW6Je Z0zc2DIfSBw9kjU7vdCUTSy85mGKZkHVs+1irHSy7t/sp/WzkMxB89E9zSMNwkteT4 CWVXXYFFDF2GcDBOTKOoCKpLMULs0GwAae/tYPErKeiL7m40jtLPsdwpnrJYmbfYgq M8z6xxsQL+azz2Z9kiW5rY6V9un7AYYSDGIvvJiEw1LH+bjRno5XWfNsbH4KDWsEic KlKDEU+lJR3vQ== From: AngeloGioacchino Del Regno To: mturquette@baylibre.com Cc: sboyd@kernel.org, matthias.bgg@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, angelogioacchino.delregno@collabora.com, wenst@chromium.org, johnson.wang@mediatek.com, miles.chen@mediatek.com, fparent@baylibre.com, chun-jie.chen@mediatek.com, sam.shih@mediatek.com, y.oudjana@protonmail.com, nfraprado@collabora.com, rex-bc.chen@mediatek.com, ryder.lee@kernel.org, daniel@makrotopia.org, jose.exposito89@gmail.com, yangyingliang@huawei.com, pablo.sun@mediatek.com, msp@baylibre.com, weiyi.lu@mediatek.com, ikjn@chromium.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, kernel@collabora.com Subject: [PATCH v4 02/23] clk: mediatek: mt8192: Propagate struct device for gate clocks Date: Fri, 20 Jan 2023 10:20:32 +0100 Message-Id: <20230120092053.182923-3-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230120092053.182923-1-angelogioacchino.delregno@collabora.com> References: <20230120092053.182923-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755532783306194229?= X-GMAIL-MSGID: =?utf-8?q?1755532783306194229?= Convert instances of mtk_clk_register_gates() to use the newer mtk_clk_register_gates_with_dev() to propagate struct device to the clk framework. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai Tested-by: Miles Chen --- drivers/clk/mediatek/clk-mt8192.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt8192.c b/drivers/clk/mediatek/clk-mt8192.c index 5196a366dd55..6f4525a4ff75 100644 --- a/drivers/clk/mediatek/clk-mt8192.c +++ b/drivers/clk/mediatek/clk-mt8192.c @@ -1127,7 +1127,8 @@ static int clk_mt8192_top_probe(struct platform_device *pdev) if (r) goto unregister_top_composites; - r = mtk_clk_register_gates(node, top_clks, ARRAY_SIZE(top_clks), top_clk_data); + r = mtk_clk_register_gates_with_dev(node, top_clks, ARRAY_SIZE(top_clks), + top_clk_data, &pdev->dev); if (r) goto unregister_adj_divs_composites; @@ -1170,7 +1171,8 @@ static int clk_mt8192_infra_probe(struct platform_device *pdev) if (!clk_data) return -ENOMEM; - r = mtk_clk_register_gates(node, infra_clks, ARRAY_SIZE(infra_clks), clk_data); + r = mtk_clk_register_gates_with_dev(node, infra_clks, ARRAY_SIZE(infra_clks), + clk_data, &pdev->dev); if (r) goto free_clk_data; @@ -1201,7 +1203,8 @@ static int clk_mt8192_peri_probe(struct platform_device *pdev) if (!clk_data) return -ENOMEM; - r = mtk_clk_register_gates(node, peri_clks, ARRAY_SIZE(peri_clks), clk_data); + r = mtk_clk_register_gates_with_dev(node, peri_clks, ARRAY_SIZE(peri_clks), + clk_data, &pdev->dev); if (r) goto free_clk_data; @@ -1229,7 +1232,9 @@ static int clk_mt8192_apmixed_probe(struct platform_device *pdev) return -ENOMEM; mtk_clk_register_plls(node, plls, ARRAY_SIZE(plls), clk_data); - r = mtk_clk_register_gates(node, apmixed_clks, ARRAY_SIZE(apmixed_clks), clk_data); + r = mtk_clk_register_gates_with_dev(node, apmixed_clks, + ARRAY_SIZE(apmixed_clks), clk_data, + &pdev->dev); if (r) goto free_clk_data;