From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754059AbbJPIus (ORCPT ); Fri, 16 Oct 2015 04:50:48 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:51812 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752515AbbJPIul (ORCPT ); Fri, 16 Oct 2015 04:50:41 -0400 X-Listener-Flag: 11101 Message-ID: <1444985437.18373.3.camel@mtksdaap41> Subject: Re: [RESEND PATCH] pwm-backlight: fix the panel power sequence From: YH Huang To: Sascha Hauer CC: Thierry Reding , Jingoo Han , Lee Jones , Matthias Brugger , , , , Tomi Valkeinen , , Sascha Hauer , , "Jean-Christophe Plagniol-Villard" , Date: Fri, 16 Oct 2015 16:50:37 +0800 In-Reply-To: <20151016083616.GA7858@pengutronix.de> References: <1444959454-1516-1-git-send-email-yh.huang@mediatek.com> <20151016083616.GA7858@pengutronix.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2015-10-16 at 10:36 +0200, Sascha Hauer wrote: > On Fri, Oct 16, 2015 at 09:37:34AM +0800, YH Huang wrote: > > In order to match the panel power sequence, disable the enable_gpio > > in the probe function. Also, reorder the code in the power_on and > > power_off function to match the timing. > > @@ -241,8 +242,7 @@ static int pwm_backlight_probe(struct platform_device *pdev) > > pb->dev = &pdev->dev; > > pb->enabled = false; > > > > - pb->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", > > - GPIOD_OUT_HIGH); > > + pb->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable"); > > Please actually test your patches. This change here won't compile. > > Sascha > I will send patch v2 to fix it. YH Huang