Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp846362ybm; Tue, 21 May 2019 04:41:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6xcLDpdaN3DiA+QC3T2tNeaHJuB5DiOju2sEAttT22HBa7K6MqEwpGbaAXp+t8zu7rIFE X-Received: by 2002:a65:420a:: with SMTP id c10mr13854102pgq.376.1558438865622; Tue, 21 May 2019 04:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558438865; cv=none; d=google.com; s=arc-20160816; b=BCEcOZPywrQvRoqgxqUzovVaFiW6y/lPV2FhXhVdtpyXicYsMfTTyTGMEeX6KP0qs4 RUNeeSHM7/O736VRd0HYHTtRmHaKVbw222T58v4zsrqOyd4ucZPgHEwo5ZawBWWl1h+3 1GElExgheKWxzQ2luwRv/vrNIG8iopVs4VPsngu8+uMP0K6x8modr3e8XXrdv2UUSHbP jbtZl0P+hVNnPuxdGCgYMRF3SG3Twndwx/LpPv4cnX+U6KwajILWPdvynWixTAqsQOP5 fGKaKkLprNk0uGQe2/7vxqP07Sj+mh/5JaWOWCM4GDbM737iXD/QoeNykbK7bqysHDzZ FIEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0H0uiP+aTN7ydcTt5wTtgHD6JytZFcdRaFOkbV4tcX8=; b=paWL6G7WjDMhCSybp/8hka0aJX577W5tDEJxI9s0s71fsvSgmk5aukN0zS+NRLpGqZ tbOzD+FBE0NNmr8f3SVjIDh/9jzC2ZwUl2dy8gWZcCflTbJuUm1lcIAiio/pkd/cvOt3 3vA/nkGOnrup8wvzzjM//wqQ0TvD65KNqjUig7tVpCF59W9+Hv9k/sNq6DuiNDhqr+B4 3OG6slk7e5jUnMnv5/E4qtLU6i0S+4jWbAjxUY1aBbkJ4fVzf72ac4rA2qun9vlbr+ek nfegqSrhbzcQtiTaYLXjLNMii89XwHq4h6GIsi45BSCKgLrUkXZ+1JSyQP5sGWpYJdZg 4jpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Vx8LHB/5"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si3122699plo.191.2019.05.21.04.40.48; Tue, 21 May 2019 04:41:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Vx8LHB/5"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728031AbfEULjk (ORCPT + 99 others); Tue, 21 May 2019 07:39:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:41304 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726692AbfEULji (ORCPT ); Tue, 21 May 2019 07:39:38 -0400 Received: from localhost (unknown [106.51.107.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 528C520862; Tue, 21 May 2019 11:39:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558438778; bh=ReFAdyWrKRD7BGj/7Cy0+dRZJceMz9zOiOfU+eJeyaM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Vx8LHB/5pSK8emSZW8au9utY1uOslIxXWXlYmw/rRUwtCJ3sOJa7rFKFksAoARXy9 drVF3MhAjyk/dTAf7SvbppmuPgRcmF570wfSXQodW+Om2KCaYn7fr+g5fcf/A4AC62 wZJxi25ZSIlodYbPj1s0Z2hD5Y/jZ+k0tIHU6X48= Date: Tue, 21 May 2019 17:09:33 +0530 From: Vinod Koul To: Sibi Sankar Cc: bjorn.andersson@linaro.org, robh+dt@kernel.org, agross@kernel.org, david.brown@linaro.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, rnayak@codeaurora.org, marc.w.gonzalez@free.fr Subject: Re: [PATCH v4 1/9] soc: qcom: rpmpd: fixup rpmpd set performance state Message-ID: <20190521113933.GJ15118@vkoul-mobl> References: <20190513102015.26551-1-sibis@codeaurora.org> <20190513102015.26551-2-sibis@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190513102015.26551-2-sibis@codeaurora.org> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13-05-19, 15:50, Sibi Sankar wrote: > Remoteproc q6v5-mss calls set_performace_state with INT_MAX on s/performace/performance > rpmpd. This is currently ignored since it is greater than the > max supported state. Fixup rpmpd state to max if the required > state is greater than all the supported states. > > Fixes: 075d3db8d10d ("soc: qcom: rpmpd: Add support for get/set performance state") > > Reviewed-by: Marc Gonzalez > Signed-off-by: Sibi Sankar > --- > drivers/soc/qcom/rpmpd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/soc/qcom/rpmpd.c b/drivers/soc/qcom/rpmpd.c > index 005326050c23..235d01870dd8 100644 > --- a/drivers/soc/qcom/rpmpd.c > +++ b/drivers/soc/qcom/rpmpd.c > @@ -226,7 +226,7 @@ static int rpmpd_set_performance(struct generic_pm_domain *domain, > struct rpmpd *pd = domain_to_rpmpd(domain); > > if (state > MAX_RPMPD_STATE) > - goto out; > + state = MAX_RPMPD_STATE; > > mutex_lock(&rpmpd_lock); > > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project -- ~Vinod