From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932524Ab3FRNaJ (ORCPT ); Tue, 18 Jun 2013 09:30:09 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:49532 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932204Ab3FRNaC (ORCPT ); Tue, 18 Jun 2013 09:30:02 -0400 Message-ID: <51C060BC.8010300@ti.com> Date: Tue, 18 Jun 2013 16:29:32 +0300 From: Roger Quadros User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 MIME-Version: 1.0 To: CC: Roger Quadros , , , , , , Tomi Valkeinen Subject: Re: [PATCH 2/4] ARM: dts: omap4-panda: Fix DVI EDID reads References: <1371553891-29364-1-git-send-email-rogerq@ti.com> <1371553891-29364-3-git-send-email-rogerq@ti.com> In-Reply-To: <1371553891-29364-3-git-send-email-rogerq@ti.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/18/2013 02:11 PM, Roger Quadros wrote: > On Panda the +5V supply for DVI EDID is supplied by the > same regulator that poweres the USB Hub. Currently, the > DSS/DVI subsystem doesn't know how to manage this regulator > and so DVI EDID reads will fail if USB Hub is not enabled. > > As a temporary fix we keep this regulator permanently enabled > on boot. This fixes the DVI EDID read problem. > > CC: Tomi Valkeinen > Signed-off-by: Roger Quadros > --- > arch/arm/boot/dts/omap4-panda-common.dtsi | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/boot/dts/omap4-panda-common.dtsi b/arch/arm/boot/dts/omap4-panda-common.dtsi > index 7a21e8e..40df79e 100644 > --- a/arch/arm/boot/dts/omap4-panda-common.dtsi > +++ b/arch/arm/boot/dts/omap4-panda-common.dtsi > @@ -80,6 +80,11 @@ > gpio = <&gpio1 1 0>; /* gpio_1 */ > startup-delay-us = <70000>; > enable-active-high; > + /* > + * FIXME: Remove boot-on when DSS can handle this regulator > + * for DVI EDID. > + */ > + regulator-boot-on; As pointed out by Tomi, the correct usage here is "regulator-always-on". The reason I use "regulator-boot-on" is because the regulator framework doesn't turn on the regulator. (maybe a bug in the regulator framework?) "regulator-boot-on" is not sufficient as it doesn't prevent drivers from turning it off. e.g. loading and unloading the USB host driver will turn of the regulator. So it must be used along with "regulator-always-on" I'll fix this in v2. cheers, -roger