From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756119Ab1I3VK0 (ORCPT ); Fri, 30 Sep 2011 17:10:26 -0400 Received: from na3sys009aog113.obsmtp.com ([74.125.149.209]:60211 "EHLO na3sys009aog113.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751413Ab1I3VKY (ORCPT ); Fri, 30 Sep 2011 17:10:24 -0400 From: Kevin Hilman To: Abhilash K V Cc: , , , , , , , , , Subject: Re: [PATCH v5 3/3] OMAP2+: voltage: add check for missing PMIC info in vp init Organization: Texas Instruments, Inc. References: <1317363153-10259-1-git-send-email-abhilash.kv@ti.com> <1317363153-10259-2-git-send-email-abhilash.kv@ti.com> <1317363153-10259-3-git-send-email-abhilash.kv@ti.com> <1317363153-10259-4-git-send-email-abhilash.kv@ti.com> Date: Fri, 30 Sep 2011 14:10:19 -0700 In-Reply-To: <1317363153-10259-4-git-send-email-abhilash.kv@ti.com> (Abhilash K. V.'s message of "Fri, 30 Sep 2011 11:42:33 +0530") Message-ID: <87aa9lhh38.fsf@ti.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Abhilash K V writes: > From: Abhilash K V > > If PMIC info is not available in omap_vp_init(), abort. > > Signed-off-by: Abhilash K V Looks good. After minor fixup below, adding to the next round of voltage cleanups (branch: for_3.2/voltage-cleanup-2.) > --- > arch/arm/mach-omap2/vp.c | 7 +++++++ > 1 files changed, 7 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/mach-omap2/vp.c b/arch/arm/mach-omap2/vp.c > index 66bd700..0ed3d13 100644 > --- a/arch/arm/mach-omap2/vp.c > +++ b/arch/arm/mach-omap2/vp.c > @@ -41,6 +41,13 @@ void __init omap_vp_init(struct voltagedomain *voltdm) > u32 val, sys_clk_rate, timeout, waittime; > u32 vddmin, vddmax, vstepmin, vstepmax; > > + if (!voltdm->pmic || !voltdm->pmic->uv_to_vsel) { > + pr_err("%s: PMIC info requried to configure VP for " > + "vdd_%s not populated.Hence cannot initialize VP\n", Added space after '.' Thanks, Kevin > + __func__, voltdm->name); > + return; > + } > + > if (!voltdm->read || !voltdm->write) { > pr_err("%s: No read/write API for accessing vdd_%s regs\n", > __func__, voltdm->name);