Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4601349imu; Mon, 12 Nov 2018 13:50:04 -0800 (PST) X-Google-Smtp-Source: AJdET5e7Be7fGxWSQtdrvqBSio7xWGifbsr1Bemj8akiduUOmyM7b+y2R4gLxWUXezJGSrtVtZqA X-Received: by 2002:a17:902:162:: with SMTP id 89-v6mr2498451plb.293.1542059404748; Mon, 12 Nov 2018 13:50:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542059404; cv=none; d=google.com; s=arc-20160816; b=wiTDKFJPEpVe7hFE6YmUJXjz8V2Fco19zcUw9mztPD3qUuUr7TTjccte4lS4oLsvI9 jXMxJ8ky+zQfUiDB81MoknKXxbvrczAi19ELAXj3NQJscnLqcuHPr7OWxtiUoMTxVBNu 7p8BUoDzw0P06rDbpoeSTSJGJjOOrwRqy1yDDqmkXiSG6TtVPrp45UeF76KB7z4qH8DS pm6SZq/oco7QutOFo1ikOnWi3Vo8dNv0a/q5Tx9iz4go4zwzw7nQCzTWyUo5CwjIJSI6 0REvIJCx6ej3InWV+zlS4bWR1zO0X/KEL/UTAKGnPTNno6Me0gtA0fO9SlNJepcjGWG1 /H6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=PnlIankKqrU0g054yPdPnoSnf4HT5sfkHF+CBRoiSA0=; b=oJ6gUENXeXtiBW5cUTjtHadHphx1vx6jhGaq+gG4TpbQ8I49ez6P7KsW6MX+TloGfa A2uznXAWQsOSIxvQCCok1lBBcLVBkIsVCuJyvRW5JLTe4QRGSzVo0PLo078mluLxG8y5 ii/4q+8/3M1ijRsveQrRr+dL0WQ2JvbtkQJrJK5AyGKQHw0nADW2RMpJpg/VGBaAZ18T iQOxQnZ09ix0z25JfCIJLfY3uqV12BRKfLws5t7QNmOULsfdnNFbFdCqkNOY4alv9h6M R35mrEeUDE4tvtLftkOVjbQBKUqH+8Bmz88esxY8t3haafm1wkNUOaD82ilyVoh4oXzi 1ydw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=F4eTp0xI; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12-v6si18259413pfi.99.2018.11.12.13.49.49; Mon, 12 Nov 2018 13:50:04 -0800 (PST) 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=@ti.com header.s=ti-com-17Q1 header.b=F4eTp0xI; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730594AbeKMHo2 (ORCPT + 99 others); Tue, 13 Nov 2018 02:44:28 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:45262 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725817AbeKMHo1 (ORCPT ); Tue, 13 Nov 2018 02:44:27 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id wACLnMeS075443; Mon, 12 Nov 2018 15:49:22 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1542059362; bh=PnlIankKqrU0g054yPdPnoSnf4HT5sfkHF+CBRoiSA0=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=F4eTp0xI8Ol87bg4kL/oh7FMthaiVIGED2BeqY0tEPmpCCauYw6YMvR5vGfcgihaW 5oCDJyPCO7tnnyeXy2VhKIQmLEJ8R1Hze+HXR55nah1VH4bwWiu7UU0dMLUEktf/63 ygnIL5RLfUqveyZ7CSaN0+/MYI8wZmvSCX3JNJPo= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wACLnMW6124962 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 12 Nov 2018 15:49:22 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 12 Nov 2018 15:49:22 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Mon, 12 Nov 2018 15:49:22 -0600 Received: from [128.247.59.203] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id wACLnMhj022312; Mon, 12 Nov 2018 15:49:22 -0600 Subject: Re: [PATCH 2/2] opp: ti-opp-supply: Correct the supply in _get_optimal_vdd_voltage call To: Keerthy , , , CC: , , References: <1541565263-8296-1-git-send-email-j-keerthy@ti.com> <1541565263-8296-3-git-send-email-j-keerthy@ti.com> From: Dave Gerlach Message-ID: <312975f3-3cbd-3ece-20b6-ceb93421a3c9@ti.com> Date: Mon, 12 Nov 2018 15:49:22 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1541565263-8296-3-git-send-email-j-keerthy@ti.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/06/2018 10:34 PM, Keerthy wrote: > _get_optimal_vdd_voltage call provides new_supply_vbb->u_volt > as the reference voltage while it should be really new_supply_vdd->u_volt. > > Fixes: 9a835fa6e47 ("PM / OPP: Add ti-opp-supply driver") > Signed-off-by: Keerthy > --- Acked-by: Dave Gerlach Currently all corresponding vbb and vdd values provided by the device tree match which is why this does not fail, but this was a typo by me and vdd is the correct value to actually use. Regards, Dave > drivers/opp/ti-opp-supply.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/opp/ti-opp-supply.c b/drivers/opp/ti-opp-supply.c > index 29e08a4..3f4fb4d 100644 > --- a/drivers/opp/ti-opp-supply.c > +++ b/drivers/opp/ti-opp-supply.c > @@ -288,7 +288,7 @@ static int ti_opp_supply_set_opp(struct dev_pm_set_opp_data *data) > int ret; > > vdd_uv = _get_optimal_vdd_voltage(dev, &opp_data, > - new_supply_vbb->u_volt); > + new_supply_vdd->u_volt); > > if (new_supply_vdd->u_volt_min < vdd_uv) > new_supply_vdd->u_volt_min = vdd_uv; >