Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 034DCC6FA99 for ; Fri, 10 Mar 2023 14:24:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232273AbjCJOY5 (ORCPT ); Fri, 10 Mar 2023 09:24:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232346AbjCJOYa (ORCPT ); Fri, 10 Mar 2023 09:24:30 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DE3738B6A for ; Fri, 10 Mar 2023 06:23:26 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id g3so5204668wri.6 for ; Fri, 10 Mar 2023 06:23:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678458202; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=kkapvHp1JW76D9fYgnefjU4ylcODf/gc3UWuHHsi/fs=; b=aM9kNwoojbiz6e9hyfrekto839DjWbWIJi1/+JEA/talQoOPDXW+3D6UXdEPV0ocYk NUJLhlImRQQrx+4K8KROGW6B4y3KXX0BTImHwDkoweEVVW2QuI67MgaqvfAT1465hzZl Y+Yut4levWlI5U+Btouox6XpVKMuQIKDrXaGnxOVYvx+zqRH3ZExiUu6Thb0X9fhfXzB B/gevCnFIJCTSKibxXX8NqLBAkh4kiFWMoPou8X4Wtbxf8JJbckMohCuKUM06jjMxrBs A8BkvLeivXsyI58S+ueIp/OZDH457CvC+wmvIEtFw2fFbVXZYw3rGCUCye6fW5xoNhav Bzyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678458202; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kkapvHp1JW76D9fYgnefjU4ylcODf/gc3UWuHHsi/fs=; b=Fs7emD6KfvrkZfiQ/WeONjKdjY8n5LS0k4tUN/NIqPdgmMaahhEW2mW2BMbYAtjN2E MucoPa6M003PH7kO7kSlRUYw14wjKvd/J2CbywhfoDOr5Q2jTBF9vw8vv60CPdnB4YXc lJ1KmitpjlOQ8DA5vPvt8ExKejLda5dmhbcdBrBRe3HWCwtQtM1nIrEJ0tNC2qTzP715 rg5vP1xsr6h1PDgChYHoDcN5DjPaGnjuGMkySqZqpy+jqEUia1Tz4Mocxqd4AILcDp/H usW7//yH1cGpl8PAmBgr0YSoJeGXqZ4cbz+iGPtptUEMUyP6TN4HDciqu+4wXTY8AvJF 4duQ== X-Gm-Message-State: AO0yUKVmduRP35TMiGQMHMiTHQNzqnY0nL0A4+fdj1Ki4i5759lpIkzk CbwG6K4YzhNncfko9skBOqiwJQ== X-Google-Smtp-Source: AK7set/cUAXhhoKSsswRZJ5ykSJd/dXzR9C1/AqaKk3LMcl953jw+t+uTxnBr5ukiS0fk7JchNTNAg== X-Received: by 2002:adf:fc8e:0:b0:2c5:4c9c:e15d with SMTP id g14-20020adffc8e000000b002c54c9ce15dmr17240496wrr.17.1678458202669; Fri, 10 Mar 2023 06:23:22 -0800 (PST) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id h6-20020a1ccc06000000b003e22508a343sm56335wmb.12.2023.03.10.06.23.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Mar 2023 06:23:22 -0800 (PST) Message-ID: <937279a0-2e62-7061-3752-dfb94ee6d1f6@linaro.org> Date: Fri, 10 Mar 2023 14:23:21 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v7 9/9] interconnect: qcom: msm8996: Promote to core_initcall Content-Language: en-US To: Konrad Dybcio , Andy Gross , Bjorn Andersson , Georgi Djakov , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230228-topic-qos-v7-0-815606092fff@linaro.org> <20230228-topic-qos-v7-9-815606092fff@linaro.org> From: Bryan O'Donoghue In-Reply-To: <20230228-topic-qos-v7-9-815606092fff@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/03/2023 21:40, Konrad Dybcio wrote: > The interconnect driver is (or soon will be) vital to many other > devices, as it's not a given that the bootloader will set up enough > bandwidth for us or that the values we come into are reasonable. > > Promote the driver to core_initcall to ensure the consumers (i.e. > most "meaningful" parts of the SoC) can probe without deferrals. > > Signed-off-by: Konrad Dybcio > --- > drivers/interconnect/qcom/msm8996.c | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/drivers/interconnect/qcom/msm8996.c b/drivers/interconnect/qcom/msm8996.c > index 347fe59ec293..1eb51ed18b0b 100644 > --- a/drivers/interconnect/qcom/msm8996.c > +++ b/drivers/interconnect/qcom/msm8996.c > @@ -2109,7 +2109,17 @@ static struct platform_driver qnoc_driver = { > .sync_state = icc_sync_state, > } > }; > -module_platform_driver(qnoc_driver); > +static int __init qnoc_driver_init(void) > +{ > + return platform_driver_register(&qnoc_driver); > +} > +core_initcall(qnoc_driver_init); > + > +static void __exit qnoc_driver_exit(void) > +{ > + platform_driver_unregister(&qnoc_driver); > +} > +module_exit(qnoc_driver_exit); > > MODULE_AUTHOR("Yassine Oudjana "); > MODULE_DESCRIPTION("Qualcomm MSM8996 NoC driver"); > Its probably the right-thing-to-do to have interconnects probe earlier but, then, why restrict that to 8996 only ? --- bod