Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2493245iob; Fri, 20 May 2022 10:31:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlCfGvzLSFGA3XjX+sI+7IeG4SCNREgKKTnP/n7omIIMFiG9yumMSC8Hl2o722KqPJSvG8 X-Received: by 2002:a17:902:9b94:b0:161:5a74:aa6c with SMTP id y20-20020a1709029b9400b001615a74aa6cmr10542717plp.108.1653067892628; Fri, 20 May 2022 10:31:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653067892; cv=none; d=google.com; s=arc-20160816; b=C95zLBeUz1tD+wILvrxYjkCQDwDcasxDDlJb59u6LPp8D2WZsbQyb9cuLvsQ0GKvlx ZQZi9dyPEe5de2csav9plTU8iq0w4b79ZJYJDa9Chy6Q6J6BBqGcPc/O/aiR4Nusy661 oDru54+HnYcH6gwWG1HyPVaI2rhNOvvsNrBRvN/yFnyR7aBkYo8BTgoB+I+HJjLWH3A0 gtjOh+fRXISyvfn8SCWgONJn4/Gkqfr53389Foo9gBQbtG29nOtFe969o28/+KCVViCT UUi0THiV6oTKDmr6rLRpNVyyO9/swUSwLqURHFM8LSkZ/OCLw0X5fXuKG5qKBoFu98CI hUYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=lT9CEORHLxZJslEr5RaboGnoKguCUawtNT7+wEiX7zA=; b=f/QAK3SanFjMZHw4RH3eDfdUDpkUWT7DHrun1aXqYpbGOAmJKJwFpeLe5Z1mk6lg8Q pHNwLzBOtdAc0RIwvvZg39D2u6jThFawtzoxqA6OlerWfOmugfsEyx+hqUP21c/tIb/D 5r0kk4DWn6LwejKklKf/W3N3U1qXCZ+5KvdPhGLVeRFM6NTfkXYm47f5szPOKpAPw2Qj t1QrN+7zRYNkILB00m5vpW3ByTTwj4L8mUc1xc6YJwrCqRm+gVp3iAul7mWRVuPsi8JZ 2UU3MZn35oQzsBa959/NqEOE+jE4tDKowQ5sbWB0+0C5HW3XVx7A5wwhZN390GmpoeWE 2bnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="j/dFS++l"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u14-20020a170902714e00b0015eabaaa170si72979plm.215.2022.05.20.10.31.20; Fri, 20 May 2022 10:31:32 -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=@collabora.com header.s=mail header.b="j/dFS++l"; 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 S235121AbiESIFV (ORCPT + 99 others); Thu, 19 May 2022 04:05:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbiESIFS (ORCPT ); Thu, 19 May 2022 04:05:18 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B66C57B20; Thu, 19 May 2022 01:05:15 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id 0C01E1F456AC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1652947512; bh=t6QxwZ2dfHcmowUe8JtLrXuccxRC4l5JaUwmCWL0OXk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=j/dFS++lN3Wf6JrFAXAei7VSv1X2EEacpBGKjDjzFae/P2rOLvwho8z6N/ii7Xgxj rXCNH9I6Hh8IFSqDxoTH6mRzpLBAgqes02TPZsBqCH9WnqJDEiSWCFHbGRKOUvYrep DmQGDL/GOjk/FV160DHM5v2vYat+VzAgi2HLRUIXR1b9ZUBa7A6lL8nMzJU1l3wGUF 9qBwv/GrBMSmszsBImyvpi/RRrXZAREOlRlvEh1GcrEYEolGba7/5GMWUcTXCK2fjN 2QfYbsFNbYBtfSPaBuzH5kyTGh+59QXRRJtjct4oa3VmAlmiVLmNFR8mGmkbkqRjia sJ3rVD0peeRXw== Message-ID: <7e60b63c-2bf7-a77e-fe0f-a891efa77a47@collabora.com> Date: Thu, 19 May 2022 10:05:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v2 6/7] clk: mediatek: Export required symbols to compile clk drivers as module Content-Language: en-US To: Miles Chen Cc: bgolaszewski@baylibre.com, chun-jie.chen@mediatek.com, ck.hu@mediatek.com, devicetree@vger.kernel.org, fparent@baylibre.com, ikjn@chromium.org, jason-jh.lin@mediatek.com, kernel@collabora.com, konrad.dybcio@somainline.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, marijn.suijten@somainline.org, martin.botka@somainline.org, matthias.bgg@gmail.com, mturquette@baylibre.com, p.zabel@pengutronix.de, paul.bouchara@somainline.org, phone-devel@vger.kernel.org, rex-bc.chen@mediatek.com, robh+dt@kernel.org, sam.shih@mediatek.com, sboyd@kernel.org, tinghan.shen@mediatek.com, weiyi.lu@mediatek.com, wenst@chromium.org, y.oudjana@protonmail.com, ~postmarketos/upstreaming@lists.sr.ht References: <20220518111652.223727-7-angelogioacchino.delregno@collabora.com> <20220519044153.11078-1-miles.chen@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220519044153.11078-1-miles.chen@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Il 19/05/22 06:41, Miles Chen ha scritto: > > Hi Angelo, > >> In order to compile the clock drivers for various MediaTek SoCs as >> modules, it is necessary to export a few functions from the MediaTek >> specific clocks (and reset) libraries. >> >> Signed-off-by: AngeloGioacchino Del Regno >> --- >> drivers/clk/mediatek/clk-apmixed.c | 1 + >> drivers/clk/mediatek/clk-cpumux.c | 2 ++ >> drivers/clk/mediatek/clk-mtk.c | 2 ++ >> drivers/clk/mediatek/reset.c | 1 + >> 4 files changed, 6 insertions(+) >> >> diff --git a/drivers/clk/mediatek/clk-apmixed.c b/drivers/clk/mediatek/clk-apmixed.c >> index 6b0ab0a346e8..f126da693a7f 100644 >> --- a/drivers/clk/mediatek/clk-apmixed.c >> +++ b/drivers/clk/mediatek/clk-apmixed.c >> @@ -98,5 +98,6 @@ struct clk_hw *mtk_clk_register_ref2usb_tx(const char *name, >> >> return &tx->hw; >> } >> +EXPORT_SYMBOL_GPL(mtk_clk_register_ref2usb_tx); >> >> MODULE_LICENSE("GPL"); >> diff --git a/drivers/clk/mediatek/clk-cpumux.c b/drivers/clk/mediatek/clk-cpumux.c >> index 2b5d48591738..25618eff6f2a 100644 >> --- a/drivers/clk/mediatek/clk-cpumux.c >> +++ b/drivers/clk/mediatek/clk-cpumux.c >> @@ -150,6 +150,7 @@ int mtk_clk_register_cpumuxes(struct device_node *node, >> >> return PTR_ERR(hw); >> } >> +EXPORT_SYMBOL_GPL(mtk_clk_register_cpumuxes); >> >> void mtk_clk_unregister_cpumuxes(const struct mtk_composite *clks, int num, >> struct clk_hw_onecell_data *clk_data) >> @@ -166,5 +167,6 @@ void mtk_clk_unregister_cpumuxes(const struct mtk_composite *clks, int num, >> clk_data->hws[mux->id] = ERR_PTR(-ENOENT); >> } >> } >> +EXPORT_SYMBOL_GPL(mtk_clk_unregister_cpumuxes); >> >> MODULE_LICENSE("GPL"); >> diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c >> index 05a188c62119..41e60a7e8ff9 100644 >> --- a/drivers/clk/mediatek/clk-mtk.c >> +++ b/drivers/clk/mediatek/clk-mtk.c >> @@ -459,6 +459,7 @@ int mtk_clk_simple_probe(struct platform_device *pdev) >> mtk_free_clk_data(clk_data); >> return r; >> } >> +EXPORT_SYMBOL_GPL(mtk_clk_simple_probe); >> >> int mtk_clk_simple_remove(struct platform_device *pdev) >> { >> @@ -472,5 +473,6 @@ int mtk_clk_simple_remove(struct platform_device *pdev) >> >> return 0; >> } >> +EXPORT_SYMBOL_GPL(mtk_clk_simple_remove); > > Thanks, I need this too. I am preparing a patch to use mtk_clk_simple_remove/mtk_clk_simple_probe > for MT6779 clks first and maybe I can apply this to all MediaTek clk drivers. > > Reviewed-by: Miles Chen Hello Miles, thanks for telling me, because my next step would have been exactly what you're doing, for all MediaTek clk drivers... otherwise we'd be doing redundant work going afterwards. Regards, Angelo > > thanks, > Miles >> >> MODULE_LICENSE("GPL"); >> diff --git a/drivers/clk/mediatek/reset.c b/drivers/clk/mediatek/reset.c >> index 179505549a7c..290ceda84ce4 100644 >> --- a/drivers/clk/mediatek/reset.c >> +++ b/drivers/clk/mediatek/reset.c >> @@ -228,5 +228,6 @@ int mtk_register_reset_controller_with_dev(struct device *dev, >> >> return 0; >> } >> +EXPORT_SYMBOL_GPL(mtk_register_reset_controller_with_dev); >> >> MODULE_LICENSE("GPL"); >> -- >> 2.35.1 >> >>