Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4734276iob; Sun, 8 May 2022 23:40:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwicyU0/6noi/ucNAEs26ibYooBq/7N9g/wrqEvRHoFyUup8fqJJLcbhzHMrzGe9C8ROF5E X-Received: by 2002:a05:6a00:2402:b0:4e1:46ca:68bd with SMTP id z2-20020a056a00240200b004e146ca68bdmr14422268pfh.70.1652078426110; Sun, 08 May 2022 23:40:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652078426; cv=none; d=google.com; s=arc-20160816; b=UIBISF5fi6AHen8KHLgR3PcN6HJ2TUfqMoq1nanO16AJzc8FGqkJj7lgBhjR+cZHQP chh+uPOhVEaICO6qwBI3dG5kiWIkNuLHoi8YoZ1eGvMPspoRIcBEyCZq4bDlfGJOoWNh vlZeO4/VEo5X2rpzVh6UmAiYgMrHlvGqZsK0Zqd8zmJndqZiZO55VP0XvaB9j+/XVN15 Atq2KOcwlT0mquHYKRki/j63Y5k9p/ZIziCleI31ZfDlyHCDThEWO/gw8wPHf8DleNFZ KbFtEd2l0s+pgbS8sF/Lr7GiO3cYcfpPgLljr+qdJVQdEe3gqSMtUJHGWY1wcl4CFjXk 5wZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=YR1lQI8Fizo3xIOXq2AR0w0oE5cd4QrVjHL9fycqGR0=; b=ZP/LnnmNj1V4Cs+E9pfAT3fd0bmTqEVxd+vAeyYlODifejBEpVv5JiI1IUsJU6OB7t OluLE4Pc5z1216xDL9dB3RAII5aMas3USMdCX4ZTAq3tgzWs6bmMyNYkB9nnZWrSPt5X RoBW5yiq3U/f5Muw9w4dXHjbrIEzK28p1uAhwLsKCaP8brsK6zOAQJPpELALRXN0toS5 W4U8UgZzOfiDNd9gB4AFj/4T8Ou+FWJEaKWZP8vjkANqF4Yr3BIs58K4QjUEAzGB9p2W LxLVtaZAA3Q72sxQBJYGTBIB8duZwE+hyM8P5yIWhoAOjMYOBXoECpFE7Z5DvttrWb8b 7mOg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id mq9-20020a17090b380900b001dcc53646a2si15478006pjb.76.2022.05.08.23.40.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 23:40:26 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C1DE11525F6; Sun, 8 May 2022 23:37:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1391245AbiEGGku (ORCPT + 99 others); Sat, 7 May 2022 02:40:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbiEGGks (ORCPT ); Sat, 7 May 2022 02:40:48 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39FD940E6B; Fri, 6 May 2022 23:37:02 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 789541C0BA6; Sat, 7 May 2022 08:37:00 +0200 (CEST) Date: Sat, 7 May 2022 08:36:59 +0200 From: Pavel Machek To: Bjorn Andersson Cc: Thierry Reding , Uwe Kleine-K?nig , Lee Jones , Luca Weiss , Doug Anderson , Rob Herring , Jonathan Corbet , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-pwm@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v14 2/2] leds: Add driver for Qualcomm LPG Message-ID: <20220507063659.GA6968@amd> References: <20220303214300.59468-1-bjorn.andersson@linaro.org> <20220303214300.59468-2-bjorn.andersson@linaro.org> <20220504073009.GC8204@duo.ucw.cz> <20220506160901.GA1199@bug> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > As such the pattern sequence provided to hw_pattern looks to be the > > > smae, but I don't see that it can be made compatible. > > >=20 > > > > Can I get either patch to disable pattern infrastructure for now or= to > > > > get it compatible? > > > >=20 > > >=20 > > > I'd be happy to get this updated to your liking, but this was one of = the > > > drivers we discussed when we introduced the pattern trigger and led to > > > the conclusion that we need the ability to do hw-specific patterns. > > >=20 > > > As such this document provides the hardware specific documentation, as > > > we describe under "hw_pattern" in > > > Documentation/ABI/testing/sysfs-class-led-trigger-pattern. > > >=20 > > > Please advice on what you would like me to do. > >=20 > > I'd like you to use same format leds-trigger-pattern describes. > >=20 > > If someone passes "255 500 0 500", that's requesting gradual transition= s and > > your hw can not do that. You return -EINVAL. > >=20 > > If someone wants that kind of blinking, they need to pass "255 0 255 50= 0 0 0 0 500". > >=20 >=20 > So the section under hw_pattern in sysfs-class-led-trigger-pattern that > says: >=20 > "Since different LED hardware can have different semantics of > hardware patterns, each driver is expected to provide its own > description for the hardware patterns in their documentation > file at Documentation/leds/." >=20 > That doesn't apply to this piece of hardware & driver? It applies: since your hardware can not do arbitrary patterns, you need description of what kinds of patterns it can do. But you should still use compatible format, so that pattern that is valid for hw_pattern file is valid for pattern file, too, and produces same result. If you believe documentation implies something else, it may need to be clarified. Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmJ2E4sACgkQMOfwapXb+vJMFACgv1L01dasG1ImG6KRZ5gYS2iV eHsAn0pdBf62FwAjzmn9R2KEOJoW/1rb =zdUZ -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--