Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2395541rdg; Mon, 16 Oct 2023 03:13:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZRAP0/F7zjSOhZ1VnZzpp570ofVxPeDQ+DMhb8wwnFRw7Ki0u7+SRo6hhg1+K5OF5bbRW X-Received: by 2002:a17:903:2042:b0:1c9:d8b6:e7ad with SMTP id q2-20020a170903204200b001c9d8b6e7admr8637128pla.56.1697451185617; Mon, 16 Oct 2023 03:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697451185; cv=none; d=google.com; s=arc-20160816; b=HiUi7LnpvAXQ/ddeMOGLSlvbYmzwJMLDIvUVqyXqSZ0XNIWCm1PVU36d3/jJfTa0fi gBHjaYicrNwjM4UtRjsI3b0INQs31rPbrifW2O3H7+ZZid5KbOItH2dGF+7hPL4mK4vi AGJds1J1RW/7KahQPsoMHW6BJuX978K1eJFELDcl4LFp2fOLZ3SE7m85ILNHnoQWdpVF rykuc0ZmgPmkvRVune8AkBJWplDzQjAolLpBtmrKGTLCQhAYEbwBa9f2VA35UdBJAqA9 iCn0ogA2F1BRyQp5V0mzjDM2fgzWrO6ZdJtMFb8wfKReljovYEjiHrGqUCEbZTZyEtdn cvnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=sOqwohzYX+crYtYe7hq9X/d+XgTn23JPYuyixtE0r2I=; fh=Iwhts4KK3NOVuhUNVtmkl7jMtCYItjqxXRL6KWX8ZnA=; b=l/IoJAxigSCdyKaQCsYsdJZbV0QUUTlQ0R1cb6AbghfSz2/AgITRKcRVqVrO1+Wcf4 35+HGVGsDb78TvvEwbdABzyd153bTJTdNFYqrAlzxP9AKoJJIEEA4JDipl0jR/j6j/lV a0OsdWwG0Yqxwxsv1XaxD8ArZ196F1Ga4E9TgUzHIHiww6ab0FhtWOKYWtBvlMGN+Lee 6rczdrG8LkSTOy8MdM6/DzTuGlZrFnqq6hRNefeM3lTRsUVuR+LYK43puQ5GvSG2X+3X W1MQflkr4yLgZ3lR4wcmT2ymzW+QH/vnBVTq04PIexKYrOcyCzOi3avM2dIl+4j3z5A3 UQ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="n0WQD/5s"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id c15-20020a170903234f00b001c72c258f82si10555459plh.99.2023.10.16.03.13.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 03:13:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="n0WQD/5s"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 7B628802B815; Mon, 16 Oct 2023 03:13:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232404AbjJPKMi (ORCPT + 99 others); Mon, 16 Oct 2023 06:12:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232591AbjJPKMc (ORCPT ); Mon, 16 Oct 2023 06:12:32 -0400 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7368D9 for ; Mon, 16 Oct 2023 03:12:29 -0700 (PDT) Received: by mail-yb1-xb31.google.com with SMTP id 3f1490d57ef6-d9a7a3e17d1so5001413276.2 for ; Mon, 16 Oct 2023 03:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697451149; x=1698055949; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sOqwohzYX+crYtYe7hq9X/d+XgTn23JPYuyixtE0r2I=; b=n0WQD/5sZb0nEt66pX2EX92//dgko3/wDQw8+0YbUpp7uPad75X37Tj7r649+/0jKW E8UeQslEq5vl/HqwGgYoF4YGN2W2J0GZ4tE1Vx7vTy+zrOia+QeOHM+SSI2cvjQUKLOI adVpTXOx4PG6lgiNufmnGUVRKOYU3anoRXWPtuQLwvcKeNShs8cnxyVbDaaakIbIzMWi 2nZ9EmRcmSSQaC5c+NQC5DxpeSBKP081OElq1HW0nHTBL8eu/od1+2F7GorH51DqZlc3 mEJJd0n5v2v0nc2xQHCqT7LkrRYVeSDV+pOV27fZYY69amiXE3FgepTbHX8fn7HkXNO9 RLUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697451149; x=1698055949; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sOqwohzYX+crYtYe7hq9X/d+XgTn23JPYuyixtE0r2I=; b=wMUgyIzxCwDIoA3ILGpjE/ZjjT6u1jEqJiwEpsFXG66gO9vqJnzk68uwm2T1vNzGUO n734kO5Bc5NTEmokFfjcBsFQ7Am+j3wPb1m0mI0/bbNDDvsU6dzxKlmeZsmNdgsq/D34 6i5DsX9dimxShgmCn8DAUpu01O8o9iqGa4hjeyUx/lXR73UTopp2Np36GozYyBAg5b1W 04k0TLJhaTkGXj6dZArGxZLtP5Pgg2S8YAa9weHlatpbBRd2xeRrc00SM9TPlE0kNzIA aMVHvE9l0LbNhMzhv/eh67ZZIU6FkvcbJAwvfg4d6v+BUSm9E/yjAoZPRKcoGvYUcsDc ArNg== X-Gm-Message-State: AOJu0YxdpPKhvnBmTzu0RZ6DKaYmnixcrpGUthLV7IZF+C7D17cHZkOs OseKo3M7O3T8EnJLXFDgbhSIP7ucXZ26XNQTDjYFHA== X-Received: by 2002:a25:33c4:0:b0:d86:57ff:210c with SMTP id z187-20020a2533c4000000b00d8657ff210cmr32152187ybz.17.1697451149170; Mon, 16 Oct 2023 03:12:29 -0700 (PDT) MIME-Version: 1.0 References: <4cd8fe2135128168c1cd80482359dc7a46550085.1697186772.git.viresh.kumar@linaro.org> In-Reply-To: <4cd8fe2135128168c1cd80482359dc7a46550085.1697186772.git.viresh.kumar@linaro.org> From: Ulf Hansson Date: Mon, 16 Oct 2023 12:11:53 +0200 Message-ID: Subject: Re: [PATCH 5/5] OPP: No need to defer probe from _opp_attach_genpd() To: Viresh Kumar Cc: Viresh Kumar , Nishanth Menon , Stephen Boyd , linux-pm@vger.kernel.org, Vincent Guittot , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 16 Oct 2023 03:13:03 -0700 (PDT) On Fri, 13 Oct 2023 at 10:49, Viresh Kumar wrote: > > When the new interface for attaching genpd's via the OPP core was added, > it was possible for required_opp_count to be zero, but not anymore. > > Remove the unused check. > > Signed-off-by: Viresh Kumar Reviewed-by: Ulf Hansson Kind regards Uffe > --- > drivers/opp/core.c | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/drivers/opp/core.c b/drivers/opp/core.c > index befe46036ad5..c069aabefa00 100644 > --- a/drivers/opp/core.c > +++ b/drivers/opp/core.c > @@ -2430,14 +2430,6 @@ static int _opp_attach_genpd(struct opp_table *opp_table, struct device *dev, > if (opp_table->genpd_virt_devs) > return 0; > > - /* > - * If the genpd's OPP table isn't already initialized, parsing of the > - * required-opps fail for dev. We should retry this after genpd's OPP > - * table is added. > - */ > - if (!opp_table->required_opp_count) > - return -EPROBE_DEFER; > - > opp_table->genpd_virt_devs = kcalloc(opp_table->required_opp_count, > sizeof(*opp_table->genpd_virt_devs), > GFP_KERNEL); > -- > 2.31.1.272.g89b43f80a514 >