Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751861AbdF3P0V (ORCPT ); Fri, 30 Jun 2017 11:26:21 -0400 Received: from mail-wm0-f48.google.com ([74.125.82.48]:33961 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751605AbdF3P0U (ORCPT ); Fri, 30 Jun 2017 11:26:20 -0400 MIME-Version: 1.0 In-Reply-To: <20170630121451.f2voycbmnstjpugt@sirena.org.uk> References: <20170630104121.rf5nrf3aaqgvmktu@sirena.org.uk> <20170630121451.f2voycbmnstjpugt@sirena.org.uk> From: Waldemar Rymarkiewicz Date: Fri, 30 Jun 2017 17:25:38 +0200 Message-ID: Subject: Re: Where to update regulator register with initial voltage set by HW To: Mark Brown Cc: linux-kernel@vger.kernel.org, Liam Girdwood , "Bartholomae, Thomas" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 868 Lines: 20 On 30 June 2017 at 14:14, Mark Brown wrote: > On Fri, Jun 30, 2017 at 01:37:32PM +0200, Waldemar Rymarkiewicz wrote: > >> I am not sure if I understand. Do you mean, a regulator should >> determine a voltage and update a register with a right selector when >> system boots, so the regulator framework reading reg register knows >> actual voltage? > > Just don't provide a default value for the cache, regmap will do a > physical read if there's nothing in the cache for that register and > everything will work transparently. Just want to understand well. "Physical read" means to read a register value? or determine actual value another way? As Thomas mentioned in previous email TPS65275 does not have a circuit to determine startup voltage at least I cannot see this in the datasheet. Data sheet: http://www.ti.com/lit/gpn/tps65273v /Waldek