From patchwork Sat Feb 1 17:55:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Jarzmik X-Patchwork-Id: 3565181 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E7896C02DC for ; Sat, 1 Feb 2014 17:56:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0F04120274 for ; Sat, 1 Feb 2014 17:56:53 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B1B8D20270 for ; Sat, 1 Feb 2014 17:56:51 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W9ens-0007Br-SY; Sat, 01 Feb 2014 17:56:29 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W9enq-0004Yi-E6; Sat, 01 Feb 2014 17:56:26 +0000 Received: from smtp5-g21.free.fr ([2a01:e0c:1:1599::14]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W9enm-0004Xw-Ko for linux-arm-kernel@lists.infradead.org; Sat, 01 Feb 2014 17:56:24 +0000 Received: from beldin (unknown [IPv6:2a01:e35:2f37:b820:503d:12a:f404:f18]) by smtp5-g21.free.fr (Postfix) with ESMTP id 3DC89D4805A; Sat, 1 Feb 2014 18:55:43 +0100 (CET) From: Robert Jarzmik To: Eric Miao , Russell King Subject: Re: [PATCH] ARM: pxa: Add dummy backlight power supply on Mitac Mio A701 References: <1387532812-11742-1-git-send-email-thierry.reding@gmail.com> <87zjn9v7xx.fsf@free.fr> <87txd8vka8.fsf@free.fr> <87ha8y76rn.fsf@free.fr> X-URL: http://belgarath.falguerolles.org/ Date: Sat, 01 Feb 2014 18:55:42 +0100 Message-ID: <87k3deiuox.fsf@free.fr> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140201_125623_430013_09C8545F X-CRM114-Status: GOOD ( 14.29 ) X-Spam-Score: -1.9 (-) Cc: linux-pwm@vger.kernel.org, Thierry Reding , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, Haojian Zhuang X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Robert Jarzmik writes: >> Hi Arnd, >> >> I cannot reach Haojian, and my platform is currently screen-broken without >> Thierry's patch (see [1] and [2]). I'm trying to have it since -rc6, with no luck. ... zip ... Hi Eric and Russell, Since more than a month I've been trying to have a fix applied in the PXA tree, since v3.13-rc6. I cannot reach Haojian, and Arnd seems unresponsive too. The history mails are in [1], the patch in [2]. Your are the 2 other maintainers of the PXA tree, Could you please help me ? Cheers. --- Robert [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2014-January/223116.html [2] http://lists.infradead.org/pipermail/linux-arm-kernel/2013-December/221013.html ---8>--- From: Thierry Reding Subject: [PATCH] ARM: pxa: Add dummy backlight power supply on Mitac Mio A701 To: Haojian Zhuang , Robert Jarzmik Cc: linux-pwm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Date: Fri, 20 Dec 2013 10:46:52 +0100 (6 weeks, 1 day, 8 hours ago) Message-Id: <1387532812-11742-1-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 1.8.4.2 Recent changes to the pwm-backlight driver have made the power supply mandatory. There is code in the regulator core to deal with situations where no regulator is specified and provide a dummy, but that works on DT-based boards only. The situation can be remedied by adding a dummy regulator during board initialization. Tested-by: Robert Jarzmik Signed-off-by: Thierry Reding --- arch/arm/mach-pxa/mioa701.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-pxa/mioa701.c b/arch/arm/mach-pxa/mioa701.c index f70583fee59f..29997bde277d 100644 --- a/arch/arm/mach-pxa/mioa701.c +++ b/arch/arm/mach-pxa/mioa701.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -714,6 +715,10 @@ static struct gpio global_gpios[] = { { GPIO56_MT9M111_nOE, GPIOF_OUT_INIT_LOW, "Camera nOE" }, }; +static struct regulator_consumer_supply fixed_5v0_consumers[] = { + REGULATOR_SUPPLY("power", "pwm-backlight"), +}; + static void __init mioa701_machine_init(void) { int rc; @@ -753,6 +758,10 @@ static void __init mioa701_machine_init(void) pxa_set_i2c_info(&i2c_pdata); pxa27x_set_i2c_power_info(NULL); pxa_set_camera_info(&mioa701_pxacamera_platform_data); + + regulator_register_always_on(0, "fixed-5.0V", fixed_5v0_consumers, + ARRAY_SIZE(fixed_5v0_consumers), + 5000000); } static void mioa701_machine_exit(void)