From patchwork Tue Feb 28 13:44:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 62494 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3022170wrd; Tue, 28 Feb 2023 05:48:49 -0800 (PST) X-Google-Smtp-Source: AK7set/vYMddhZ66yZSEPee/Dd2h5r8ZHrQwxQpxXxQri5KrSzdWXriuYaXsXhm2G5QYvex9lxJC X-Received: by 2002:a05:6402:345:b0:4ae:e5ab:46d7 with SMTP id r5-20020a056402034500b004aee5ab46d7mr3128015edw.8.1677592129031; Tue, 28 Feb 2023 05:48:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677592129; cv=none; d=google.com; s=arc-20160816; b=gfEyXz2TBVNeUBQLQPh7PBmpZsnc6oPrmjNmuJXGBezU6HM4meRenso7eZaRiA1Dps aqLZfv7xko5zaQAAfaNrX7Ruit4zJMZ4JdTUvfjs1c0jetwf2i0v+leYjuUdD+5eotgT bNoZErZDwGYlRycKtkJshFRMqtcVVdi6HqQy79MA/xK/BLXQHVvmJQrjRdU/Xl7+f7wb qBmyt0WQS8iJvhOoZUFjEY9i7jDPRSfzr/QZnUScLV+4hNSEm+xk1BhWlPL2mcQTV6dT HyP0r6BBD5ON1crVyh+a1XZASTRLuZngQc+YYpFDAi04LleuJZZv6viBwn77PrEDkfHz BROw== 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=vveGd9sf9fGz7xfjIX4ynPRPTvQaFdGwhHtakqOTRYg=; b=oW4NYJrVpJuxfOi+qP1lglcXWZcjq7FbsjzR63MQSg0A9NOM8SmPnzhxD8WBWyhm7T 1R4oPL6OcZUURbwjNxus8ew6J+1SaiPp8AqR7X5KbU8+6q+LcxbCG9IROMJESCsccmUj domj4ZI8ZfoA+bKXJJQG4cSluabAr74XntG51mUC+qKwtSQWVpfVDmsU6qVeMNSAT6UH G3rH2MubfouEQ8fOMYNAwPamROdUAvxVeYcS+94qgWRP1cmWvLs8iAK41xJC8tpnSsIr VRYEjUOczjVPlwJfjUarC9wdgUTPA/vAj4/ms+MHPcSIvQh0k8MI5PgkU+6rvYJUTo2M agoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="VLXw8x/H"; 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 g8-20020a1709065d0800b008dcca98e6edsi2640698ejt.29.2023.02.28.05.48.25; Tue, 28 Feb 2023 05:48:49 -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=@linaro.org header.s=google header.b="VLXw8x/H"; 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 S229730AbjB1No6 (ORCPT + 99 others); Tue, 28 Feb 2023 08:44:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229670AbjB1Nop (ORCPT ); Tue, 28 Feb 2023 08:44:45 -0500 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E5CE301A8 for ; Tue, 28 Feb 2023 05:44:33 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id b10so10344003ljr.0 for ; Tue, 28 Feb 2023 05:44:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677591872; 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=vveGd9sf9fGz7xfjIX4ynPRPTvQaFdGwhHtakqOTRYg=; b=VLXw8x/HVK++rxyPE+23hHMFMSwTE3HGtekASbnCMGHZuPar3hClhNxfuQMN3uM/81 wNZlRETtkblRSd4rX6fxZtGipiuG/FJ3TPjMnVggM+q6Vqq3HAR9ozypQtbRcNDNxfl8 sjwWPtULXuothLPeRoF0e+yauL/i5EyFg0zsKoO+kaHb47CeXIuI4+V+QkmsXKOMNfVs p9+75OjV2WKORkcqYS006WBS+44oaBFLj7qSQR2dF8MvlSmfWqQLNM10Snd8eW7CCuC6 FsszgvA5bu7t7l+bkKGo/4q1TYNWhk7Y0LnWnhTRY6FnksSMMI/Hv7BfRQexSQ1fwAKM f0gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677591872; 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=vveGd9sf9fGz7xfjIX4ynPRPTvQaFdGwhHtakqOTRYg=; b=47dm6AyEEnOu6P8p2Pgmus0d9e/hwBMEfEdLIQGq4iT4L5LTsneGCdYPktfA3VmbgP +jFg3ZktMK/++RMzQcwB8jA5IziKOQzH/+PcJRF/phNlwgJ6lwDl0o7sBrR1cp7R8yQn ADol3Sscm/t2hKKo2tpmShxz239e1UouuPdN6K8xEPM55m9lyWf3lCzCIBvevMbI9Oy2 2ubKd+j37D6fUWu9KhS7lO73UuA7Yup98jcIKWx6QgbeHuRyMyiytjmogHkMGt4EQctU ttsIb26Wn+ykSAHSoYog0F+Kq/OgouAQhr3TPpvOCEQku3oRoPQgfoRcsiWRkiYG3jGx ty0Q== X-Gm-Message-State: AO0yUKVyplSS6mj6Qa7ZOB8xJxnk5T3FG/szlshFhcA7vK8VlrB5yf0Y MpqN2d8Lx0I9ifn/tgJ+nCreEw== X-Received: by 2002:a2e:9bc9:0:b0:295:9970:9f73 with SMTP id w9-20020a2e9bc9000000b0029599709f73mr766874ljj.29.1677591872728; Tue, 28 Feb 2023 05:44:32 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id j20-20020a2e3c14000000b00295a583a20bsm1203975lja.74.2023.02.28.05.44.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 05:44:32 -0800 (PST) From: Konrad Dybcio Date: Tue, 28 Feb 2023 14:44:06 +0100 Subject: [PATCH v6 9/9] interconnect: qcom: msm8996: Promote to core_initcall MIME-Version: 1.0 Message-Id: <20230228-topic-qos-v6-9-3c37a349656f@linaro.org> References: <20230228-topic-qos-v6-0-3c37a349656f@linaro.org> In-Reply-To: <20230228-topic-qos-v6-0-3c37a349656f@linaro.org> To: Andy Gross , Bjorn Andersson , Georgi Djakov , Dmitry Baryshkov Cc: Bryan O'Donoghue , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1677591861; l=1279; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=5H1KJ2r/pG170nOV3v3bsq3JNwWcNEZN04iD5DDB2kw=; b=yLfZUq5Z5xp1LtHleRTEckj0GMI3jzrt+GgHuw7jqq6epsR/JDBZ7/xLzu+YM7S7gah/Xn53SHWj OuJtKAZHBxh/lb5Uh3LGOzCaGd3xbVcn5ijbSbrKBi1QLMJaEP7c X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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?1759082844227928024?= X-GMAIL-MSGID: =?utf-8?q?1759082844227928024?= 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");