Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4616418imu; Mon, 12 Nov 2018 14:06:55 -0800 (PST) X-Google-Smtp-Source: AJdET5eaW+A7fOGWj9/KAVd22NmzTkV4jisOKcQ5XgRmkwD47tPAZ09rMfwv+SPaloVYp6Uig/DN X-Received: by 2002:a17:902:2f43:: with SMTP id s61-v6mr2554016plb.169.1542060415788; Mon, 12 Nov 2018 14:06:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542060415; cv=none; d=google.com; s=arc-20160816; b=Ti4sc8jKoulu+1mhC8pgQCzdcTJJQLXBTVPbXaSNN1K/jn0V/gPTeAQCgOYk8Zpz3N eDSGvYUR9y1/e2hqIO73Pk8+FMaLjQM83YHVfHemZEJ3+4p0FbLKwLjs6NXABK4NzTPw T9p2XTkbKqXMqIHQpPyxKFMQrxMh3jvkTxfPnL4uwwNlFgc7rdp4iEHzfHVOpWosAhHZ NQKn25lBw4JqQSWFbM5Rrk/HL9XGLpUNPszaP2IVf2mWsoT4eDtsr2NSs8Wb/DUpwAmp W/IQo6sN6IJ+z0uqw6+qTak9HCq+DRk+tkPahoB9EgYT/ekCu5FKTzrKZ49DTNNpMoc6 Gn3Q== 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=9hckHaMdViRwGn0p2SlgUshzdvUERuBAAETI6409DWs=; b=TYBqKuNe2JaUAJzzVTxY27A3DmqScaIplTt63c5gLNy1MDgGvJUOQVgI+sYeYQXWxE fXcmdwRbOSm48WclOJlRLMGH7FO7niE5J2xGAH9U2a13nLgr1/JjpoF7cYpEXjByt2Ux 7wQHvbgMOQbh/tjep5P8qmjflLOyhqcDsxY5+qjjReOj3dN5p0FMBg1zxdpx0wQ4r+KY GsPeI8Eh1UDNffuv1NiiFnhHnZSix+vY65BSPM95oe2F7gTCHMEonaxqY/BNSIHf1JlQ oBvGNtYQQCy+frHbqNsE4ngOiTIWlP3M/umSfBRDGguCrx56TwWVb0udXvkQNwhyLQux 0/sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=J92Axlr9; 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 v9si9805880pgt.464.2018.11.12.14.06.38; Mon, 12 Nov 2018 14:06:55 -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=J92Axlr9; 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 S1730604AbeKMIAz (ORCPT + 99 others); Tue, 13 Nov 2018 03:00:55 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:48142 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbeKMIAy (ORCPT ); Tue, 13 Nov 2018 03:00:54 -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 wACM5l06080446; Mon, 12 Nov 2018 16:05:47 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1542060347; bh=9hckHaMdViRwGn0p2SlgUshzdvUERuBAAETI6409DWs=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=J92Axlr9+7E/nHMilZeMrtF65NOOZHgtmPn8kq1EIWQEBJaXaCTdgClpgXnI3Ka+i WDUD5M0ls+3MT0BOP4iD10Jfzcj/90220emDAXlwgjhNm1Dk/qTKVdbHmX93uQNVyp Mmlq0quOcu6P/N6AxkFzAEipLQImZADuHRAFS5VA= 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 wACM5lCs013039 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 12 Nov 2018 16:05:47 -0600 Received: from DFLE102.ent.ti.com (10.64.6.23) 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 16:05:47 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE102.ent.ti.com (10.64.6.23) 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 16:05:47 -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 wACM5lKE009802; Mon, 12 Nov 2018 16:05:47 -0600 Subject: Re: [PATCH 1/2] opp: ti-opp-supply: Dynamically update u_volt_min To: "J, KEERTHY" , Viresh Kumar CC: , , , , , References: <1541565263-8296-1-git-send-email-j-keerthy@ti.com> <1541565263-8296-2-git-send-email-j-keerthy@ti.com> <20181108055401.btrixinlqcfh22du@vireshk-i7> From: Dave Gerlach Message-ID: Date: Mon, 12 Nov 2018 16:05:47 -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: 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/11/2018 09:15 PM, J, KEERTHY wrote: > > > On 11/8/2018 11:24 AM, Viresh Kumar wrote: >> On 07-11-18, 10:04, Keerthy wrote: >>> The voltage range (min, max) provided in the device tree is from >>> the data manual and is pretty big, catering to a wide range of devices. >>> On a i2c read/write failure the regulator_set_voltage_triplet function >>> falls back to set voltage between min and max. The min value from Device >>> Tree can be lesser than the optimal value and in that case that can lead >>> to a hang or crash. Hence set the u_volt_min dynamically to the optimal >>> voltage value. >> >> And why shouldn't we fix the DT for this ? > > The DT voltages do not cater to the broad range of devices. In some > particular cases the DT min voltage is slightly lower the voltage at > which the device cannot sustain a particular frequency in which case the > device just silently hangs. So best thing to do is to actually read the > device specific voltages dynamically which will guarantee a particular > device sustaining a particular frequency at the optimal voltage. > Acked-by: Dave Gerlach >>