Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp711412pxu; Thu, 15 Oct 2020 14:43:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwruBa4BdpyULZ4CyTpfWdTKDg91WRhlFZtGu4xa2vOtNuuoVioBYLZvG8MDeDdd+nNz6fM X-Received: by 2002:aa7:c1da:: with SMTP id d26mr491460edp.135.1602798199584; Thu, 15 Oct 2020 14:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602798199; cv=none; d=google.com; s=arc-20160816; b=i1QYW91PJ8tDBdXdXDaWBv240lWSf3WLaZTqpKP0nteB7lpkNAcC5rTKVgdD34j7Pj bR4FmMvClETLMltaT4ErK3jaeTxDMrHmaP/EnxY3LL6bD0YgyFwKcSGFs3NzL6SqR+Ib ZS83fQLuZ9ibgLd10c7+R5HaQ9TCB2tusedS1M7SGd4oTcBiou7XgLbYbFGwmqdbwvxy EMRxTPs36FHsgZ2SNgexPbiSffNzs5x/+fk9RODWwK3mczUoiqUnFMPjpEMobZDJa3sH /9egbZBgKUHmnm6WrkvzodZvNOCCAybFjTVSchIZJ8BxulugCQoMiUBw0KbB/kHQPOpp I/Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=EKkQ0NCptYTIPkgA3XQigyXFPQp2vabq0UA1M/rGYsY=; b=fbN1MUslAHJrgxWZEzfP1gjxDci13s3eh0vu0N8Ol/9yWo1Nf4dCwHV1q4T7KRB/Q3 0yRU9slTerSSfxewXunFfCDWmSURjtBXeIGocdX2IINUEYtlKWNh25lgZgRcT5pQZSdd FERc3jrngiSsQi5RpjVFRK90WityeRh6u5VQW9HaSvfHIOrr9ZyYAaTxQ4pEPSQLkjzv IH9qv2+bWyXT+PXMc29gzp5u601tbkiGDOIKbnGjnULAul5FKvEB9rGQaOgB6az66A+V 2nmNqJgGD9HLptAGNuQ2jRlzG7Ut1MFthqGD09nuywNUomWs52W3Iv+eXnV/pWwbyNgR i1qw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o17si186513ejh.535.2020.10.15.14.42.57; Thu, 15 Oct 2020 14:43:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730455AbgJOSGF (ORCPT + 99 others); Thu, 15 Oct 2020 14:06:05 -0400 Received: from foss.arm.com ([217.140.110.172]:54886 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbgJOSGE (ORCPT ); Thu, 15 Oct 2020 14:06:04 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E7A0E13D5; Thu, 15 Oct 2020 11:06:03 -0700 (PDT) Received: from bogus (unknown [10.57.17.164]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2879D3F71F; Thu, 15 Oct 2020 11:06:01 -0700 (PDT) Date: Thu, 15 Oct 2020 19:05:55 +0100 From: Sudeep Holla To: Viresh Kumar Cc: ulf.hansson@linaro.org, "Rafael J. Wysocki" , Kevin Hilman , Pavel Machek , Len Brown , Sudeep Holla , Greg Kroah-Hartman , Viresh Kumar , Nishanth Menon , Stephen Boyd , Kukjin Kim , Krzysztof Kozlowski , linux-pm@vger.kernel.org, Vincent Guittot , nks@flawful.org, georgi.djakov@linaro.org, Stephan Gerhold , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: Re: [PATCH V2 1/2] opp: Allow dev_pm_opp_get_opp_table() to return -EPROBE_DEFER Message-ID: <20201015180555.gacdzkofpibkdn2e@bogus> References: <24ff92dd1b0ee1b802b45698520f2937418f8094.1598260050.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24ff92dd1b0ee1b802b45698520f2937418f8094.1598260050.git.viresh.kumar@linaro.org> User-Agent: NeoMutt/20171215 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 24, 2020 at 02:39:32PM +0530, Viresh Kumar wrote: > From: Stephan Gerhold > > The OPP core manages various resources, e.g. clocks or interconnect paths. > These resources are looked up when the OPP table is allocated once > dev_pm_opp_get_opp_table() is called the first time (either directly > or indirectly through one of the many helper functions). > > At this point, the resources may not be available yet, i.e. looking them > up will result in -EPROBE_DEFER. Unfortunately, dev_pm_opp_get_opp_table() > is currently unable to propagate this error code since it only returns > the allocated OPP table or NULL. > OK, this breaks with SCMI which doesn't provide clocks but manage OPPs directly. Before this change clk_get(dev..) was allowed to fail and --EPROBE_DEFER was not an error. We use dev_pm_opp_add to add OPPs read from the firmware and this change is preventing that. Sorry for checking this so late, but noticed only when this hit mainline. -- Regards, Sudeep