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 C6681C6FA99 for ; Fri, 10 Mar 2023 14:29:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232376AbjCJO3c (ORCPT ); Fri, 10 Mar 2023 09:29:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230380AbjCJO3H (ORCPT ); Fri, 10 Mar 2023 09:29:07 -0500 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FF6211E6CF for ; Fri, 10 Mar 2023 06:27:17 -0800 (PST) Received: by mail-lj1-x22f.google.com with SMTP id t14so5473484ljd.5 for ; Fri, 10 Mar 2023 06:27:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678458435; 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=JsV0Gbi3hH0/L9MS5rWIc0K18letEMd3yLRh1mvfzak=; b=XN3WHynKo4hUaUzsfYWIYY30MDe805y50G8WB/PFSjPwfwtg31R7Vii2GjEvvGiYTd dbSTqyx0Jc+jGgHbh+SpH4mVyJZMQTWK5BpjTItw5OHmGmazPPKtkZN77T8klOVHgwlj BGSKvyt5l+ztHiIrIUXn04dOy/sFOz+DwawLsVZ/dW2kakKwlBP1pP5jRh9m0WF089Iu gkVhBfwk4HpQilpn0GoA5nv3CJqraBEhyy1gXzgE5199L6Kiq8gHq76ZkPgdc4Va5tz3 hlDYc7MsDp7k2Ruhxkh6wAHtCtflqwrUbiMI8UqQtYno9beia9I/TPQiDuVG8esDzmkI b6UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678458435; 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=JsV0Gbi3hH0/L9MS5rWIc0K18letEMd3yLRh1mvfzak=; b=5sTSh4cQJQsnKnrA3UerhnjKRXdzxmg3ZfU+bPMJpXoXKzH4VgbckdMGAhrHzAyXc1 a+Kj2Okrem9a6xTX4Ll/yopZqG/OuKSWIU50i/fUkEEHtxDgdzdqWRZqrWUsAnebvv90 MCG0qmjjYc0OXcq4wPRJXs2e0al9t8KqgIXjXE63zweYQhUa6tBk3JolUdOsbWOWNgGY ahpR0EtNhWVl4SmwH/2zhcS6JV9SL+ODOTBzIuMcFehpvVgu6HnpS1TH9IxZTIa4bTVB 6bA6JKaPNflXDZZOu5uQoLrExcfsT6UnDlGNAtjIBWNvSEk5FqiVjiiF8GAuOUu3DQgH ER3Q== X-Gm-Message-State: AO0yUKUnU/af2iP4GRcXPN1MnZ46a0UGg/GnHU5HqNfm4xAZCY2RnwE0 Sn83XnEDggvc6MvPVSwXpy7JXw== X-Google-Smtp-Source: AK7set9lxH6/PbMSlHI3/Xj1zSeTgyrFqDwLAkdtZ9Wm/3ENkW4eYm3dUmfPKJZl9u0iGTt993gxtg== X-Received: by 2002:a2e:9b4f:0:b0:293:2e81:45d3 with SMTP id o15-20020a2e9b4f000000b002932e8145d3mr7817308ljj.5.1678458435734; Fri, 10 Mar 2023 06:27:15 -0800 (PST) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id w2-20020a2e9982000000b0029347612e94sm22367lji.123.2023.03.10.06.27.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Mar 2023 06:27:15 -0800 (PST) Message-ID: <5be0f6e1-8c96-2a24-e1aa-8b9975988e2a@linaro.org> Date: Fri, 10 Mar 2023 15:27:14 +0100 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: Bryan O'Donoghue , 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> <937279a0-2e62-7061-3752-dfb94ee6d1f6@linaro.org> From: Konrad Dybcio In-Reply-To: <937279a0-2e62-7061-3752-dfb94ee6d1f6@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10.03.2023 15:23, Bryan O'Donoghue wrote: > 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 ? To be honest with you, this one caught my attention and it was the one I tested things on.. But yeah, they should all be probing ASAP. Konrad > > --- > bod