Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4425191ioa; Wed, 27 Apr 2022 03:41:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznD+dlZhHCSOykAy3BqVO239SxIDTkJSYOKdj3yG/nBpG2Fz3y/HKF1uZXT3mkxjxICQBH X-Received: by 2002:a63:1754:0:b0:3aa:2211:bcc4 with SMTP id 20-20020a631754000000b003aa2211bcc4mr23642331pgx.217.1651056098187; Wed, 27 Apr 2022 03:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651056098; cv=none; d=google.com; s=arc-20160816; b=JN0UwXL1gaYpj3stzsmCzTdoaaVANrnswJkTmcGxs7ryUzGr50YA33LeYO9poCtArs 9vz5tJx8bQONPgIVBoNcAssJQL/attokmQRuaiPRfxQrKVCA233aowUOUwmbz7qNbLNt xp3AhWDPtS8WSeYYkrGBgRstUETbymHMT25Vqvve+FU9jdWfjEAbB1QeTCNFYD6YLu7Z XLLAD2U7W60aybz5Q9Ta0o8fqjqB49hI0e4f9WUHbUdFN0LprPUtNb8iPbWvzb8jeZ4c xzq/wa+fhZXQlChdEYSDrWNhrB+PeBYLmjtRuxj9UhKBHWLnoP5W/AJpPnA1y/2cdmio yPhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=942QrtpSBRbsY3q+/6UH3EyPi6IfXkfPg699xSaSzUw=; b=c8zsETxCjqMJB6+iD/P1JgRLxdR4AFfOvgifJJnHRg0LyI0jm5ti83HuHlPFPwUuF3 zNNIAmkIiqEgoJsLAofHHKOH85YkD4NsdqFls2VNil8O0rk8e6x5ebZ0nV6peCsjXgEv KuqXC8GJkji7Ej/8Oh+Im2l1U0zz3EDA0NAB6OLVqhSddzWCMDjpWZTErdmnFritFufR M/c+V8CDxR/mJudQ/Ck8LPfihTjJDBoHcyMkcOgGvojjZKYZ1JWUBK5q/JVWO06xgn0z yFH2Jtl/6kcaOczUs54UrV5q2PPGqi226hQjAhLUNetG3DhapODHtMvG+wIgDl1eunc/ q5Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wHo/gMNW"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b13-20020a056a00114d00b0050a74ed2e34si1070369pfm.297.2022.04.27.03.41.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:41:38 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="wHo/gMNW"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3D12B402AC5; Wed, 27 Apr 2022 02:53:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356134AbiDZXg3 (ORCPT + 99 others); Tue, 26 Apr 2022 19:36:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356123AbiDZXgX (ORCPT ); Tue, 26 Apr 2022 19:36:23 -0400 Received: from mail-oa1-x32.google.com (mail-oa1-x32.google.com [IPv6:2001:4860:4864:20::32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 477432CC95 for ; Tue, 26 Apr 2022 16:33:14 -0700 (PDT) Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-e2442907a1so277936fac.8 for ; Tue, 26 Apr 2022 16:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=942QrtpSBRbsY3q+/6UH3EyPi6IfXkfPg699xSaSzUw=; b=wHo/gMNWrCZtHMJqnti0kuBo/9UJtbCmFnl2GEoenvATYbhVtuGyIs5fx0MOmCOEB+ UGNYQAhdp+SMbuhm3ap7zParrTAOX2h7ZX7paAVc0rzcNj0ydTefSDNdZWAuflYuijmu Vr22jKPZ/fX/W6dOkILU769dXrJdU2miURXm0ySIqhTNXUBy4dDEGXooKh5O0sc1G8Jb EtEyeqIHeJeIok9K+US2s5C358j0qwpfpFbdhMp24YRYcjuPxeeIe73iv1IgvauJU57d EWVzEdDwPxVj55TxzItQlHUov9pk5I8B4XOmWwOJTRup9N23aDr4p6wCoYu2wNDot8RV ypSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=942QrtpSBRbsY3q+/6UH3EyPi6IfXkfPg699xSaSzUw=; b=VG0sdAZTz+qGrHKKeJy5axCJuPR05pPhmlRVTvZq1C7KoYrR48SCpSbvZnBsDi7f4v ld9ujNoFjRHIoTKQ+aKOQy5luEqT9SToZvDEtGgS4gcy73l2HVUGM/3yZFhpkbAUwfww 0jEmVmt1ACMfffJuKyNsnz5j+DPhD0OIr635/xcRUs7F8A9gf9q2s4ckA0Cy3y43iXJP kZ4BgG1BBew14Ezl/KX9dNnB+dAqTqcWfRhg21ekryEe39kOClioufOiu7GHJ4KL/v/O NOIlfEuayt3qAoKtQKnD0UC1TsJ2TjLQAQpvTOwukA1P2I7DuFI+N7wpFCA/LxuuoSYI lFeg== X-Gm-Message-State: AOAM531x/r/V8pZu64FR4K6eaLrnmlA5fiJM/PTClcdOShql3zf9FszJ W4r7gYxYfS8Tf2rgJ59jURwReMmVZ26YD1gz X-Received: by 2002:a05:6870:424e:b0:e9:6ed6:cb58 with SMTP id v14-20020a056870424e00b000e96ed6cb58mr1827472oac.37.1651015993597; Tue, 26 Apr 2022 16:33:13 -0700 (PDT) Received: from ripper.. ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id k2-20020a4adfa2000000b0033a3381a7f1sm6151658ook.44.2022.04.26.16.33.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Apr 2022 16:33:13 -0700 (PDT) From: Bjorn Andersson To: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] soc: qcom: rpmhpd: Don't warn about sparse rpmhpd arrays Date: Tue, 26 Apr 2022 16:35:07 -0700 Message-Id: <20220426233508.1762345-3-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220426233508.1762345-1-bjorn.andersson@linaro.org> References: <20220426233508.1762345-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 In some cases the DT binding will fully describe the set of available RPMh power-domains, but there is no reason for exposing them all in the implementation. Omitting individual data->domains is handle gracefully by of_genpd_add_provider_onecell(), so there's no reason for printing a warning when this occurs. Signed-off-by: Bjorn Andersson --- Changes since v1: - New patch drivers/soc/qcom/rpmhpd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/qcom/rpmhpd.c b/drivers/soc/qcom/rpmhpd.c index 11102ac47769..f8d28e902942 100644 --- a/drivers/soc/qcom/rpmhpd.c +++ b/drivers/soc/qcom/rpmhpd.c @@ -613,10 +613,8 @@ static int rpmhpd_probe(struct platform_device *pdev) data->num_domains = num_pds; for (i = 0; i < num_pds; i++) { - if (!rpmhpds[i]) { - dev_warn(dev, "rpmhpds[%d] is empty\n", i); + if (!rpmhpds[i]) continue; - } rpmhpds[i]->dev = dev; rpmhpds[i]->addr = cmd_db_read_addr(rpmhpds[i]->res_name); -- 2.35.1