Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp108186imu; Wed, 7 Nov 2018 21:54:49 -0800 (PST) X-Google-Smtp-Source: AJdET5dHEO7gRJWcqSW78Plsn/tk1wL5+xVM87KYFDjMAmgDpfGAXhzFBcWIy8BG6ojJsNniJi77 X-Received: by 2002:a17:902:bc83:: with SMTP id bb3-v6mr2825257plb.223.1541656489180; Wed, 07 Nov 2018 21:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541656489; cv=none; d=google.com; s=arc-20160816; b=yu/5SGnVgWOTp/dwIxrUVDvsdQ6UtUcUmFMmRfRsazsH/Bi+YVYnv8oKDq+rqgxheP F5juD3he54mJMc+48tJGlZUFNhE0nBzabWGCbuzh4nXK0pL1fS4niqt7uxnTqpu81O5a rflKx0U6umWr2nzHIqYWpKhG7krcXyMzNQ/6tHZcVlZQTFQtDczwwauNZTa1oNjlg5+7 xSicaX41F2GEfJhj0pTsZ8JOlIjhpxgXZKbejgdIozmw0kkeR7PewgPKyYf8yjEsXDnj keFOfBV8JazcAQEF2kWHBR1HzMiSG/iT0mR+pGSl01O+5ls/QvX9HiNbonsa/bBJk/5S j8eA== 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=P7rdw6ENS7RfMp4BEmNrzEq9epXNfIReDvF0uMdN41s=; b=UUUOuMYk+7lvQCd84lkKv11KNd+sE/51IERjb9fPpUU/KpqtqSyQKdjgMWZxqO+liT vZdW3U1loq8oLD0slmxiJ3tpvsUEL9Li07B4YFyomDdl2bHJsg/aQzjg0YlmCbPJnFiQ ROdUhY2+qgCUpXq84EJZ4CCcOjTg8khO0reFMektTdwMabnzxM925r+aTMidTgU7HiSQ SNUJ2ZMaa3usfni5sO8nrYg1eIOmnNBllEl5hi38+etpySv+zLx/lmCXcRhYLtxzVpfV ucqpt3MkTYqeRZpYpfhqqt1ncy7VKl28TJh8uP9JQ7th0dgFqM048mOlbNngLuVLo163 W9yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gdWcz4Xq; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k25-v6si3270629pfe.36.2018.11.07.21.54.33; Wed, 07 Nov 2018 21:54:49 -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=@linaro.org header.s=google header.b=gdWcz4Xq; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726627AbeKHP1w (ORCPT + 99 others); Thu, 8 Nov 2018 10:27:52 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:35329 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbeKHP1w (ORCPT ); Thu, 8 Nov 2018 10:27:52 -0500 Received: by mail-pl1-f194.google.com with SMTP id n4-v6so9019997plp.2 for ; Wed, 07 Nov 2018 21:54:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=P7rdw6ENS7RfMp4BEmNrzEq9epXNfIReDvF0uMdN41s=; b=gdWcz4XqLFtUKTSot1Y9Vjf8CfupRQkn1F5q5iC3nSZZXSegke9LcjqcsmpOOMDWyB PnsXScxHAUxAIlV3rT/51SdSMx7Tozc3jlS/ZyNJAf+xwbg9fgWdyjsndHe1evWUu2WS ENd0Etfazd15tdvWdtw/ER9975MK04UovKyTQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=P7rdw6ENS7RfMp4BEmNrzEq9epXNfIReDvF0uMdN41s=; b=EZ9ha08PVpbn0zFcibpoMSN9o0a3p10x8IINj6KilvNd4jYcXOQrE5SYxbytFRyJ1d y8lmwT54w8JH3HbgkkzxbNAsbFpk30taagpcQa1Tz9x35kPgNaAY+Q+Q06KLr69dR47C vVtB1c2IDn+sRJ04pYk9oRCGwp/lsj9zsc4wZrShESODBQT8b+fFsAm4Ceyj2OSew5lb 79i9WzYQxXp3mf366Ai5kGJCZlGBRb3bqJiaM+Kum3Qzvdi8LH/dpCY1iUBrz5IwP4xF EJ7DDyMy84h5WQyKo9VW2hUNGsSuxbuQ2bd7nzUHOz163oKrhFtRvAeN07QhbX96wglz bNAw== X-Gm-Message-State: AGRZ1gKW+u0lRKs2soPk+Dvnwobg0beuadeoYn2sj8CQUBmZ6NoAiktZ pf6W4XPmxvc96vi6TWszVDsTyA== X-Received: by 2002:a17:902:a5c6:: with SMTP id t6-v6mr3295080plq.31.1541656444008; Wed, 07 Nov 2018 21:54:04 -0800 (PST) Received: from localhost ([122.172.167.71]) by smtp.gmail.com with ESMTPSA id i88-v6sm4659748pfi.66.2018.11.07.21.54.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Nov 2018 21:54:03 -0800 (PST) Date: Thu, 8 Nov 2018 11:24:01 +0530 From: Viresh Kumar To: Keerthy Cc: vireshk@kernel.org, nm@ti.com, sboyd@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, d-gerlach@ti.com, t-kristo@ti.com Subject: Re: [PATCH 1/2] opp: ti-opp-supply: Dynamically update u_volt_min Message-ID: <20181108055401.btrixinlqcfh22du@vireshk-i7> References: <1541565263-8296-1-git-send-email-j-keerthy@ti.com> <1541565263-8296-2-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1541565263-8296-2-git-send-email-j-keerthy@ti.com> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ? -- viresh