Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2697439imu; Tue, 6 Nov 2018 20:35:45 -0800 (PST) X-Google-Smtp-Source: AJdET5feBFnK/4lCBcgPt9DhnaEOmA0e56TCFF6uYE2dh1ltDsaOJzPBjlZC/OukXvzr+yxO7ihP X-Received: by 2002:a63:224f:: with SMTP id t15mr351666pgm.69.1541565345354; Tue, 06 Nov 2018 20:35:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541565345; cv=none; d=google.com; s=arc-20160816; b=SpMaNcTHrQYKqRLlacdnx32oG0EwOwr1XAn3TED1e3so2kXW0KjSmZiASAKdO3RDe3 soI5qk6fHdP3ZldCRdVyF++ETH2vD2TfgDbHoqxN8nb3SX9h09/bS4KWkl56UqTHsgMR izcOXjZ1sroqfDymc7kAE2aV64BgqE9sMtKQAeooQZMvu106CcT0BpWMrfCKIqFMGGeT GhwDesPp9oPKHilEmmxapb/2xTwQaKiEeRt/xuWvcje6dVWlDSR3QjbtFbuAf91WP64T ZNaVSmWSVcS3EbLP0KikThYWlHw/4igs0YBo4n1Zc9Od+gJ+BIh2rATH/Qjkk2hXCY8I pPow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=Dpzt2IK3QPxVyfqQYDBTcCoitqCzeRml3S3z9KWuwjM=; b=nyG+7lTBlLQB2joBKBexCjjhYpSEIuD5w7e20ldf4S/wqm0vLxTj1+rKgRb2xcDEln yJaFw1BjgNKack+TF9QsBsKwLJxqBbQ0IleARQJGJ5Vd6IB/CrDRK4SMv1q2HtBnRu1V fpMoU3rbYCnm3gU3jTRhp9/ZhMdrEvMoOuEdVNFNBdRQze3LEsRE/skWVGgAc6nvnPvQ S4VqMr3icrmiISDoHI+RYmyerD3kmsm8wOvClpjXpQ8756pytjSFaqDD/olfhicTMj0h DsTkPJL0hsEFqfm2nCnBaURYJwwB9/MklGzXbNPKVca56JJMoMIvjpbN+0D3DsDewgkW 1Zhw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 w11si21687511pgf.452.2018.11.06.20.35.30; Tue, 06 Nov 2018 20:35:45 -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; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389095AbeKGODO (ORCPT + 99 others); Wed, 7 Nov 2018 09:03:14 -0500 Received: from lelv0142.ext.ti.com ([198.47.23.249]:38820 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387839AbeKGODN (ORCPT ); Wed, 7 Nov 2018 09:03:13 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id wA74YXYR033741; Tue, 6 Nov 2018 22:34:33 -0600 Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wA74YXiq083997 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 6 Nov 2018 22:34:33 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 6 Nov 2018 22:34:32 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 6 Nov 2018 22:34:33 -0600 Received: from ula0393675.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id wA74YOvm020896; Tue, 6 Nov 2018 22:34:30 -0600 From: Keerthy To: , , CC: , , , , Subject: [PATCH 2/2] opp: ti-opp-supply: Correct the supply in _get_optimal_vdd_voltage call Date: Wed, 7 Nov 2018 10:04:23 +0530 Message-ID: <1541565263-8296-3-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1541565263-8296-1-git-send-email-j-keerthy@ti.com> References: <1541565263-8296-1-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 Content-Type: text/plain 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 _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 --- 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; -- 1.9.1