From mboxrd@z Thu Jan 1 00:00:00 1970 From: mturquette@ti.com (Mike Turquette) Date: Fri, 26 Oct 2012 12:40:21 -0700 Subject: [RFC][PATCH 0/5] Introduce .get_voltage callback into voltdm In-Reply-To: <87fw51hzcg.fsf@deeprootsystems.com> References: <1349313365-5262-1-git-send-email-mturquette@ti.com> <87fw51hzcg.fsf@deeprootsystems.com> Message-ID: <20121026194021.3141.73709@nucleus> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Quoting Kevin Hilman (2012-10-26 11:17:51) > Hi Mike, > > Mike Turquette writes: > > > From: Mike Turquette > > > > This series creates a new callback for struct voltagedomain, > > .get_voltage. This fetches the voltage from hardware, if possible, and > > returns it to the caller. We use this call to populate > > voltdm->nominal_volt at boot time. > > I pointed out a couple nitpicky things on individual patches, but > otherwise this direction and motiviation for this series looks OK by me. > > Just some minor comments about the structure of the series. I tend to > prefer combining the introduction of a new function with it's usage. It > makes review and understanding much easier, IMO. If there are reasons > to keep them separate, that's fine too. Just describe the reasons in > the cover letter. > Will do. I've thought on this topic a bit more and this approach isn't quite robust enough. For instance it assumes that the kernel's voltage scaling approach (vp_forceupdate vs. vc_bypass) matches what the bootloader does. This is of course an unsafe assumption. Also I've seen the Android guys struggle with this a bit and I'd like to review how they approached the problem before sending my next series. Couple with upcoming travel I'm not sure how quickly I'll get a V2 on the list. Thanks for reviewing, Mike > Thanks, > > Kevin