Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp956517pxb; Fri, 13 Aug 2021 10:01:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWmO5XVNFx7DNTKd1uAJJx9m2dh0NH/+AHAvNYtJ3JvWvOQ74JhilLzOuvjOSeC7W98PDV X-Received: by 2002:a05:6e02:1bac:: with SMTP id n12mr2479153ili.151.1628874091845; Fri, 13 Aug 2021 10:01:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628874091; cv=none; d=google.com; s=arc-20160816; b=va8eW1Q6Lj8DYmtArdVq4hweMdrONJPfjKXWB1R4zhBI635D/3YuohbWCgi3YyUNXp 9SGQAkEeF/1A5Z302kB0muyPFQkd/dsWg7v3noDMtzQZyh+XlwIhLOUGFjSjdV92rsv/ OD6QvRU0wxf0Vr64k4yENZssE/m4BvKvqhdDjdbDec0UpimXxM/McW+7h6lRWDZRB6Uq 9VoUQVjnknGBFbenKdyJWuUbuqGS38IU3J524+pbvr/CMW+hLMeeanDjd2mFhtShMZHn AVNxuPovHtHFZjjzjk5uGF9yvEQSLvMh50rWL1yzBQidU84m/FvxqoEYSs8PklRdlR0E P1yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=93Nv9i8zd7lqE2Qjzlrf5quhWq50XoA7V6WPraTqdrE=; b=YUnPjnpfpfzJZWGW8iX6uKFiRHsucPL/tEYFirIpYbD2Mk9MS9ryDKw0JdgIQnEhdx xAceEMBYTB4J1Ivv4U/eK0X6F8/AZyQoGo0/feUtncBxijxGgNrZCCnm1fMpd3njp16H 9T8os+GDukHu/pejrDUQnUWbBYmp/q1YEEMUyPL/jvhg5zo/FOzTdgwytc8D6nqE0Kap H8ykhV93rbzHEx1XyBLyB6GRVY8ndwkdolc6Rcvh7Gng/Eo6XgTTv0QwDEXnQBbe5saB ozr9zHURWPsrA0XBz667pdwStz9dgAjaNQKbgcl9pDR56gVNSJROt6swaY9d04Gb28+H WfbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b25si1314817jap.107.2021.08.13.10.01.19; Fri, 13 Aug 2021 10:01:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240362AbhHMMxb convert rfc822-to-8bit (ORCPT + 99 others); Fri, 13 Aug 2021 08:53:31 -0400 Received: from mail-vs1-f50.google.com ([209.85.217.50]:34646 "EHLO mail-vs1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233416AbhHMMxb (ORCPT ); Fri, 13 Aug 2021 08:53:31 -0400 Received: by mail-vs1-f50.google.com with SMTP id l22so5928953vsi.1; Fri, 13 Aug 2021 05:53:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=GUkLMwD2j+LMs+Mhg8retAXqFr+2fCyVciaZId7XXMA=; b=A+DzMKh4SaI8IKueMe35NE6ASnRVifB/NBYZX/KGnlJTV2kWkfMtpUDCQzWd3qjVJO Wy1VM4v21eEHWU1DfNhtEeV7Fy6cqj2zE6FVwmMBX4WtnbaechVx9fBRbSi2KkBHtUDM ja7sx7g8zMX0g4zN5vAaOLt0JchtWm4Tznc7buTYRItM/C+WTGrmJ7Rv4zD+w6Kbzm95 IFOUpwTj1MhzlQF6RWNFRVHnsktUvnoxDOw0IC6BJOHcxUXWf3d2K9QbxK9fz7NWoATu 7wOZEe15THA+ykF6m2QwCsZqtJJjHJkamhPFTVVu/U4vcKqVcXY2nfD94t9iLynowXRj LFyw== X-Gm-Message-State: AOAM533CYkLOQ078pKB3UPE6RzN1mGLSSWnt8FkimyOtbv2I/a6HFngl uRAcMx2mYV8id8UPumpqQLfqhJXRHEMbImvt+To= X-Received: by 2002:a05:6102:e59:: with SMTP id p25mr1482758vst.26.1628859183649; Fri, 13 Aug 2021 05:53:03 -0700 (PDT) MIME-Version: 1.0 References: <20210811095759.1281480-1-geert@linux-m68k.org> <20210811095759.1281480-20-geert@linux-m68k.org> <20210811124755.37b0a0a9@thinkpad> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 13 Aug 2021 14:52:52 +0200 Message-ID: Subject: Re: [PATCH v5 19/19] auxdisplay: ht16k33: Add LED support To: Andy Shevchenko Cc: =?UTF-8?B?TWFyZWsgQmVow7pu?= , Robin van der Gracht , Miguel Ojeda , Rob Herring , Paul Burton , Greg Kroah-Hartman , Pavel Machek , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-leds , "open list:BROADCOM NVRAM DRIVER" , Linux Kernel Mailing List , Mika Westerberg , "Rafael J. Wysocki" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On Thu, Aug 12, 2021 at 2:33 PM Andy Shevchenko wrote: > On Wednesday, August 11, 2021, Geert Uytterhoeven wrote: >> On Wed, Aug 11, 2021 at 12:48 PM Marek Behún wrote: >> > On Wed, 11 Aug 2021 11:57:59 +0200 >> > Geert Uytterhoeven wrote: >> > > Instantiate a single LED based on the "led" subnode in DT. >> > > This allows the user to control display brightness and blinking (backed >> > > by hardware support) through the LED class API and triggers, and exposes >> > > the display color. The LED will be named >> > > "auxdisplay::". >> > > >> > > When running in dot-matrix mode and if no "led" subnode is found, the >> > > driver falls back to the traditional backlight mode, to preserve >> > > backwards compatibility. >> > > >> > > Signed-off-by: Geert Uytterhoeven >> > >> > Reviewed-by: Marek Behún >> >> Thanks! >> >> > BTW, this driver does not need to depend on OF, methinks. >> > The few instances of properties reading can be >> > easily rewritten to device_* functions (from include/linux/property.h). >> > The of_get_child_by_name() can become device_get_named_child_node(). >> > >> > Geert, what do you think? >> >> Sure, that can be done later, when an ACPI user appears? > > Actually with PRP0001 approach any of compatible driver may be used onACPI platform. So, what you are saying can be interpreted the way “we don’t care about users on ACPI based platforms”. If it is the case, then it should be told explicitly. I think you're interpreting too much ;-) My point is simply: >> The dependency on OF was pre-existing, and this series is already >> at v5. If any OF compatible driver can now be used on ACPI platforms, perhaps this should be handled at the API level? I.e. the distinction between OF and device properties should be dropped completely, and all drivers be converted mechanically in one shot, instead of a gradual ad-hoc conversion being sneaked in through other series like this one? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds