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 X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0ABE5C433E0 for ; Tue, 29 Dec 2020 18:50:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BDCB8206F7 for ; Tue, 29 Dec 2020 18:50:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726230AbgL2Suv (ORCPT ); Tue, 29 Dec 2020 13:50:51 -0500 Received: from mail-40133.protonmail.ch ([185.70.40.133]:19234 "EHLO mail-40133.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbgL2Suv (ORCPT ); Tue, 29 Dec 2020 13:50:51 -0500 Date: Tue, 29 Dec 2020 18:49:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1609267808; bh=Dxzz1Onh+CnJaur9pe276Ea+HxqDE9zAQNF/CmtHFYQ=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=plYy2CTZwYFjmq3fPQU3GaTr5wtHwqkIMSaxb6D2K6SlJ1a9a+hj5y4VRh03GjKgB Pmkw0ZA8Lsy6qwK3Uvsm8Fs1DMEtMOIHP7AEC4cv6fGnHL2EDDWwLaXBcLmYC2sGAd nyBolH4QeKqgjQdXQ+Ix2cbT1HVzOp1f5gk5fa70= To: Roderick Colenbrander From: =?utf-8?Q?Barnab=C3=A1s_P=C5=91cze?= Cc: Jiri Kosina , Benjamin Tissoires , "linux-input@vger.kernel.org" , Chris Ye , Roderick Colenbrander Reply-To: =?utf-8?Q?Barnab=C3=A1s_P=C5=91cze?= Subject: Re: [PATCH 11/13] HID: playstation: add DualSense player LEDs support. Message-ID: In-Reply-To: References: <20201219062336.72568-1-roderick@gaikai.com> <20201219062336.72568-12-roderick@gaikai.com> <8ROOgrBVvXav7SOnZgBVtvZ4QKubyktYJ2WsauoAH22lewKj2-Rp9a-uEZyxhItvF3Q7pp8hKZ4etl0jgiD-G3XkbL1aM9z8cRNsHHmGN9A=@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 2020. december 28., h=C3=A9tf=C5=91 23:02 keltez=C3=A9ssel, Roderick Colenb= rander =C3=ADrta: > [...] > > Furthermore, I don't quite see the purpose of this function. The LED co= re > > can handle if no brightness_get() callback is provided. And since this > > function returns just a cached value, I fail to see how it is different= from > > the default behaviour of the LED core, which is returning the last brig= htness > > value. Am I missing something? > > Not all values may get set through sysfs. For example in the next > patch (12/13) the driver sets a default player LED mask value directly > and may set e.g. 0x1f or so. This could use the LED APIs, but the LED > framework doesn't have any group LED support (besides the new > multicolor class) and as such would get scheduled across multiple > output reports. > [...] You're right, I've missed that.