Message ID | 20230228-topic-qos-v8-8-ee696a2c15a9@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp514279vqo; Fri, 7 Apr 2023 13:33:03 -0700 (PDT) X-Google-Smtp-Source: AKy350a3LsDkUpRmCQuLurl8PnZ9xcIXXq0UNXB7xX1d4NTzaforGwdBqcsdW8yhBmmuJj+9e6hM X-Received: by 2002:a17:906:9c8d:b0:931:96c5:7646 with SMTP id fj13-20020a1709069c8d00b0093196c57646mr554377ejc.57.1680899583640; Fri, 07 Apr 2023 13:33:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680899583; cv=none; d=google.com; s=arc-20160816; b=Jc+x8Sbl7iKpJAkevHw56gyiznikT1WvN70O2QG6J1PcYMnrX744Vgw7iXN1yfmPW9 O7fxfDfU6WRiG+6YDphpoNsFLd9nojqSC8Xm+IYMwNKA7vJ4MzN8V8AAtbACLug7m16O gii/xqvN4ZROhJ85tUqgt/aXx9s/rPJozefshsm9a7RRo1w1yPwx0jZjz/wZvvHMI8dy OptAm4zRUu/SsJOzaj0wY2BwnVsTqG9I5fSehLRWPxcdDp4xLJeLlyXWM3THb63FkFgR RJbJEW4KEax4d/Gpm8l79/zGzujedoV97tfWn+GpyQ3o6cBp19bUXG6IsBrCJpigjwg6 3bgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=UK324XxVLyW7Zcb2CZ/1jAhmypGps1orFHLyigBwr5Y=; b=hGCbi947c68UDhxO49vCK5IVm2/58mDdScJTE+3AMNUeWQNCM02VGxcyyrKx45BKz+ zTT4SG/ZZn00OgqRDppJar1yETHOeiyYb/RAZR9HM0r7Okf3JsQtDwZdVmxAW9FJzFfD GDfDk9kzETREnRrZu4frkp5pdf2vrRQZH5qAE3a7O53Qe6O4JhMnGPlmjZ+GVXH4bcqa kjxkOxPKpz2L787gXS2EYcYUZ7vSPxsvWm4HKZrjkygOaH2zLtXcVGPcM5BQBVSjfVV/ TWYkwVl135DvTCQk/GAdCGGy6I9wPQGBIBsOu0vHTD7UNFLZHiWEnL/ZiKXoKnAZPqQI dHrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yqZEBUvN; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l6-20020a1709066b8600b0092fcba1b0f8si3217477ejr.821.2023.04.07.13.32.39; Fri, 07 Apr 2023 13:33:03 -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=@linaro.org header.s=google header.b=yqZEBUvN; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231210AbjDGUPa (ORCPT <rfc822;a1648639935@gmail.com> + 99 others); Fri, 7 Apr 2023 16:15:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230121AbjDGUPN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 7 Apr 2023 16:15:13 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5020C171 for <linux-kernel@vger.kernel.org>; Fri, 7 Apr 2023 13:14:57 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id br6so55678081lfb.11 for <linux-kernel@vger.kernel.org>; Fri, 07 Apr 2023 13:14:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680898496; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=UK324XxVLyW7Zcb2CZ/1jAhmypGps1orFHLyigBwr5Y=; b=yqZEBUvNVCoCG1kYbv6BCn4D0Qcr92VlfzKmglVvZYkEdbsKkM9eX6zrAes/n5toqv Qu4xR1oXPF3iW2PlmWZM4PiNnoYT7pHivkuEumgtKq5oW0+xNraiZVR+iFd5Ap7YE0Md UkYReMEbtTgol8JUCdn1e8AY4R+sRqVF/1vPdymDn8yog1HL/noqOd4oUik9koaXGWDM aJxPdG1AYb7uanLSnaNK9gtfH0YsPqphnes0NrEHCEV34cS1XsFJH7f1pxDIx4dyQ3nS Usmcqh5IhlWzI049CC/jJCuLBE7JkBk6R0LE1A9G8lLMyhYBGzmc+c9y9yqTy0CEw844 RMbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680898496; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UK324XxVLyW7Zcb2CZ/1jAhmypGps1orFHLyigBwr5Y=; b=Y2Y3ReSwyoyYAfaydt3UjYKq+pVTaXLJe6mA5oKO7o6oCreTW0qHwMGjZ0hNSYCWKc iUDhUS/oKs1cDa4V/HWnTS2LQAIz42IPaqpRk2ztjss4ohQ6yFa8V6WrsCud6qraOntp 2hifJe5I2Pe7/qA82kOrXF4z4g8ZBIB24Pu6ZOnlrI5t7oiXNSlRIecCdpKmft2Zncl3 48AGTLnMH/JvMYehW9xOJTsUzIYRjAG3M6Qcmkzd9AOJxqUJRcG4xhVaUHLqDPVr6vpy euTXa84uLkWi+JhaRmlkSCInsSByE9+6vj9N+NUmaWQLrDElEJITLX1IF5Wighvz6G2e +zjg== X-Gm-Message-State: AAQBX9cDS879SJez8tKDHoFA++NudvSKt5kPOP21x43pOf9Wri19QN8x VICEgi+XHnfhNMMnQs8aaGw6Tg== X-Received: by 2002:ac2:48b1:0:b0:4db:513b:6ef4 with SMTP id u17-20020ac248b1000000b004db513b6ef4mr1437520lfg.11.1680898496200; Fri, 07 Apr 2023 13:14:56 -0700 (PDT) Received: from [192.168.1.101] (abxh37.neoplus.adsl.tpnet.pl. [83.9.1.37]) by smtp.gmail.com with ESMTPSA id u3-20020ac243c3000000b004eaf6181a32sm842436lfl.75.2023.04.07.13.14.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Apr 2023 13:14:55 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Fri, 07 Apr 2023 22:14:50 +0200 Subject: [PATCH v8 8/8] interconnect: qcom: msm8996: Promote to core_initcall MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230228-topic-qos-v8-8-ee696a2c15a9@linaro.org> References: <20230228-topic-qos-v8-0-ee696a2c15a9@linaro.org> In-Reply-To: <20230228-topic-qos-v8-0-ee696a2c15a9@linaro.org> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Georgi Djakov <djakov@kernel.org>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Cc: Bryan O'Donoghue <bryan.odonoghue@linaro.org>, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org>, Marijn Suijten <marijn.suijten@somainline.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1680898484; l=1279; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=BYfX0jKxH/0PCjBpNTo0aggPX+DBVTo1e00pUoIo7lE=; b=Q3wauYfS7gq5URur71wgmqfygzW5MSoxMThsPbY1kwefMc+i7/CpNJfllJopgOxt5+m5bsnSWzun FU/S2NiNDMRstqmR5b2r2pmOwfx7MCLGGf7tcxHLHdcPc7OV9ijd X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762550961669533729?= X-GMAIL-MSGID: =?utf-8?q?1762550961669533729?= |
Series |
The great interconnecification fixation
|
|
Commit Message
Konrad Dybcio
April 7, 2023, 8:14 p.m. UTC
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 <konrad.dybcio@linaro.org>
---
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 dc9959a87df2..20340fb62fe6 100644 --- a/drivers/interconnect/qcom/msm8996.c +++ b/drivers/interconnect/qcom/msm8996.c @@ -2108,7 +2108,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 <y.oudjana@protonmail.com>"); MODULE_DESCRIPTION("Qualcomm MSM8996 NoC driver");