Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp919231rdb; Fri, 26 Jan 2024 15:33:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IGrRG25jDlmP49sn5Yj3BfhBzsSsxLu5IoLM6u+pCc4PDgauLJZD3bgYeBRpY9eqHT6v4Kq X-Received: by 2002:a17:902:7c8a:b0:1d7:41b9:9a65 with SMTP id y10-20020a1709027c8a00b001d741b99a65mr563526pll.89.1706312018694; Fri, 26 Jan 2024 15:33:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706312018; cv=pass; d=google.com; s=arc-20160816; b=JlIPyBcG6KUn8U79v6ub3MCEtmFezEzJS58/kzea8+9pCj4zmDhqJ+97yaCbFVVMF5 HAhe0QBYSspq6wat+6sR9u5x2AwRbbMgNyj2fmsPXkoPvZ3v1ttmXCmp+RuIDoi9+3oV QeXBRfcnZAs81LU2JMbigX2U8BqI26j4bCEiqbFDd6MsZAqj5OGgKY0tp07D3alwdxry iJSXbZPtPLhieLHkS0ojpCXlI4h+8Vf4Sq/yq1lS3hsa3fwiH/l85cnL1+Yt7s99HDCj 6eoo855RsqzEhv9C9gppwMKUjsIi8m1moA+HIDI2AH8jFx2F5MIzn+Bp1lj81Wg1okxj 8NAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=k4M+57OyzmopiBIibRxQExCs1rF4Qqo0urnMF24rcgA=; fh=LDCDygz7zFAl2qZw42s5gLBQzFPXZHIBq6joz7NWUO8=; b=IcMbcEz//Wl/ahRfSi9oHMHKsHF1qPCCiif9YyKli3piJouEcnQ65mSuEPkaPlVu8e nxzLd8aBUWIi+Qy/S0q1/PaSoOwEuEKi9c3pnsJGVnnjiWsVUiV7odzm36zOY3nUp9fu frZE+/ihJIQb0V2g9SKE9RedNiTjyZ90msfkP3Ll/01nio4cdy8TBZCsboxF/ddZUWEV 0k9Dk8PRZkBQRkNe/uhiIOfmX73DIC2eeAsSaMz+EnqUh2Bc528uqrbNtJBMciUKW4sz SzVkBw/gvjzhOJ64uuC3bH0ogokxZyPDb80+X+Dk8iZ+Esu4JTyi3ZkR/Sr/cZXns/yk 0XAw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=fP4yEtVo; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-40839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40839-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x13-20020a170902ec8d00b001d73a3b0c6esi1824225plg.476.2024.01.26.15.33.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 15:33:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=fP4yEtVo; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-40839-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40839-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 30804290E91 for ; Fri, 26 Jan 2024 23:24:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCB515B5B4; Fri, 26 Jan 2024 23:22:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b="fP4yEtVo" Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7352051033; Fri, 26 Jan 2024 23:21:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706311319; cv=none; b=FzJjFCogp2H2/ne5ZMk4xpjtF4FYvj3nETDLSd/0gBSpU1Fg2EcGcgqdMmEYQc494+W3uRQ1d3XAv+aXcusStuWRvDcrYUwsVC4m6aThyfUUFLewCjpzst2+hJIK8VQ/PoX/pvwwJJ6Y2xK2JTsHLzHsGqudYac17p5DNgAyAPk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706311319; c=relaxed/simple; bh=3LcrOLtYCxr/GTKWLKz03ve3ssDHsY2b8TJXl7Am82s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IifKrO+LcKI+hDV7720iK4NpWMwsJK0+oJKDI7GvACqSNIr2u0myWoJhB2k1SiSPNltnfgpBqyAb+4eGtvgkBLOeHnXPb2lKd0it0DKSUa9GJE18mlIIZzLABDrh4pghDbiQCJCjAJ82UCm85jSomUjQNW5qBWrT6APe1m7ov44= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz; spf=pass smtp.mailfrom=ucw.cz; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b=fP4yEtVo; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ucw.cz Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 0040B1C0050; Sat, 27 Jan 2024 00:21:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1706311309; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=k4M+57OyzmopiBIibRxQExCs1rF4Qqo0urnMF24rcgA=; b=fP4yEtVoWFjetgmkNwG6bgTmXr4f5heLhJ+SAoItwacPFkw+NpmRgcrwojJZd49ZiXOpCc QGO7Q4gnNjvX6wretNhfRvs2ddmGykrBbu3jlcCg1yXqpWAbldspd9S+hTO5D9vHVcW87m ulH1g/j2xyl2VtCzm10jDyZmxGDtD2M= Date: Sat, 27 Jan 2024 00:21:48 +0100 From: Pavel Machek To: Lee Jones Cc: Martin Kurbanov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Andy Shevchenko , linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, kernel@salutedevices.com, Greg Kroah-Hartman Subject: Re: [PATCH v1 1/2] leds: aw200xx: support for hw pattern controllers Message-ID: References: <20231207125938.175119-1-mmkurbanov@salutedevices.com> <20231207125938.175119-2-mmkurbanov@salutedevices.com> <20231221161011.GO10102@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231221161011.GO10102@google.com> Hi! > > This led-controller supports 3 pattern controllers for auto breathing or > > group dimming control. Each pattern controller can work in auto > > breathing or manual control mode. All breathing parameters including > > rising/falling slope, on/off time, repeat times, min/max brightness > > and so on are configurable. > > > > Signed-off-by: Martin Kurbanov > > --- > > .../testing/sysfs-class-led-driver-aw200xx | 108 +++ > > Documentation/leds/leds-aw200xx.rst | 274 ++++++++ > > drivers/leds/leds-aw200xx.c | 649 ++++++++++++++++++ > > 3 files changed, 1031 insertions(+) > > create mode 100644 Documentation/leds/leds-aw200xx.rst > > This interface is bananas. Exposing an entire register interface to > sysfs does not sit will with me at all. When we add support to a sysfs > class, we usually require it to be generic and work across all devices. > Adding device specific interfaces is generally decried and to be > avoided. Don't forget, once we commit something to sysfs, it becomes > ABI and we have to support it forever. If you do git grep hw_pattern, you should get pointers to qcom-lpg driver that solves similar problem, with interface that should be acceptable. Best regards, Pavel