From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15D35C001B0 for ; Wed, 5 Jul 2023 14:36:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232454AbjGEOgv convert rfc822-to-8bit (ORCPT ); Wed, 5 Jul 2023 10:36:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbjGEOgs (ORCPT ); Wed, 5 Jul 2023 10:36:48 -0400 Received: from unicorn.mansr.com (unicorn.mansr.com [81.2.72.234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5C681B6; Wed, 5 Jul 2023 07:36:47 -0700 (PDT) Received: from raven.mansr.com (raven.mansr.com [IPv6:2001:8b0:ca0d:1::3]) by unicorn.mansr.com (Postfix) with ESMTPS id A472815360; Wed, 5 Jul 2023 15:36:46 +0100 (BST) Received: by raven.mansr.com (Postfix, from userid 51770) id 95B2F219FC1; Wed, 5 Jul 2023 15:36:46 +0100 (BST) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Daniel Thompson Cc: Lee Jones , Jingoo Han , Helge Deller , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] backlight: led_bl: fix initial power state References: <20230705142447.15546-1-mans@mansr.com> <20230705143320.GE6265@aspen.lan> Date: Wed, 05 Jul 2023 15:36:46 +0100 In-Reply-To: <20230705143320.GE6265@aspen.lan> (Daniel Thompson's message of "Wed, 5 Jul 2023 15:33:20 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Daniel Thompson writes: > On Wed, Jul 05, 2023 at 03:24:14PM +0100, Mans Rullgard wrote: >> The condition for the initial power state based on the default >> brightness value is reversed. Fix it. >> >> Furthermore, use the actual state of the LEDs rather than the default >> brightness specified in the devicetree as the latter should not cause >> the backlight to be automatically turned on. >> >> If the backlight device is not linked to any display, set the initial >> power to on unconditionally. >> >> Fixes: ae232e45acf9 ("backlight: add led-backlight driver") >> Signed-off-by: Mans Rullgard >> --- >> Changes in v3: >> - Add comment > > This mismatches the subject line ;-) but I can live with that if Lee > and Jingoo can! Does it not fix it? If you think the subject is misleading, feel free to change it. -- Måns Rullgård