Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1136264ioo; Fri, 27 May 2022 02:14:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxou8As+wzZSQ0DF/XVwDi0i5xjI+ePv0wepglDMpvFE6Esws3u8i7gQ8X1Qw3IiaY0rEEf X-Received: by 2002:a17:906:99c2:b0:6f4:a99c:8dfc with SMTP id s2-20020a17090699c200b006f4a99c8dfcmr40518751ejn.386.1653642859138; Fri, 27 May 2022 02:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653642859; cv=none; d=google.com; s=arc-20160816; b=zjn9/dFW8SA7xT4FfkHNMQYsOWFM2K+SB9+IkyNvc8lcScqfgmAX34a04qV7Ofdnwn rPiFQOlYGTLyf+xjn5AWuNge0alk8dlyxQKsaQxjV9DClOMFAQ39WcYwORM8u8/FNR6w qNDvKFMhOEvj1ALTzkUYcSqZLulp3FVNitMzIDx7godhDG3IkEgSEUqt5UXpJxNt+0gi mIIkvc80yVz1lvCumiFJGjtpK39PCJbM05L7FOqhS3PVVWAmmJ9Cf4G/+Nu29jOjrBfw nnO1Ouu8qKM4POU2R1oMJWLhAKbNhiRfvvKRZkPoSeJ+80Lxw6Csaanaz9ivNLOE/rzK o9Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=FadbUOYQTfhqwtmXPIV4R6Iv53QsaHE17At37GAFSpI=; b=S1FfFj5/WyvgJ2taC4vC2pJ3sz0QXgQA2MsQUpu67GIC0wgLdBqDA62wwn+vfSjaND 3F6sHSyhrhymR8CFAm75M9LglRpmIVBB7fbfeXhzy4kBuZJWTlii5FljzzcSdjwUHSu3 REGZWjU3Rp8h5kV68xsIfOYcw4Qb0iMSCxfcaw/RDY5EvKkYuPFrYu4Dav5jLlJ6mr5c gALkqe9mhUri9gy5JeccODHFYENVTP1QBx5wB14jQdMFEAqPCE30S5VwqocDn8qXAWA/ lvkLoh64WfrkwHJM/WDBTXB6XlkO+OsJ1yKpoNw7tv7gillWRHEDy3Q0GNogzVG7TOup vFAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="ECumAw/O"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gl20-20020a170906e0d400b006fec6226557si3137905ejb.424.2022.05.27.02.13.52; Fri, 27 May 2022 02:14:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="ECumAw/O"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244682AbiEZUDH (ORCPT + 99 others); Thu, 26 May 2022 16:03:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245211AbiEZUDF (ORCPT ); Thu, 26 May 2022 16:03:05 -0400 Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A70B266686 for ; Thu, 26 May 2022 13:03:03 -0700 (PDT) Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-f2cbceefb8so3438333fac.11 for ; Thu, 26 May 2022 13:03:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=FadbUOYQTfhqwtmXPIV4R6Iv53QsaHE17At37GAFSpI=; b=ECumAw/OczA+Bc4OdOqq0SzGUpO6cJZG+4ICfj1RjEdhHVePkpnT8F+XZgihYIIpJh wDkt3GBfrSddkPu5fhA51v881vO1jw9qtGZHJYZ5cgsHFXMoQ/NjVIWXb7t3S25XsKMM n4XOtCaaKACuVwDhP23Fe8wFiP4c5VqColuIs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=FadbUOYQTfhqwtmXPIV4R6Iv53QsaHE17At37GAFSpI=; b=Vm+F+gmMZHhvg0GYzlV6t0zNvY3ySk/CJ361iXDtKQfX3TorIMVNjO2Ww+EMhFsgn1 ROJolmFh9EKeJvaapKfto7pCpcFTwBfeR5cBZO3KqfGcQi0b3SvQksWv+am0Zc1vHM8+ NfO5GTibRgS2IKyUM/S2jTrGyta739LKR9AbdwOwT9BuJ+XS/ulVhutLvOVWk4dhoV+X lhzkrhwXDLl4VDVJkRsBrNZ8M+PdF/GZg0pqc1DvjJp76LploWbNhr0cFcFDXIq2ItZe vTJ51CkhUvrV1FYtRT2JoqBujnqj4Ecv6r+e/Al/s2tsCI0w96EiLOOvLJGvmKweynjf BqUQ== X-Gm-Message-State: AOAM530GGaJcsWdakQMzS6GGcBype+2p8yGY6TdZkrtqDq3DvQ33+WHw CAjMqtlINh1q75jRmKApHW2VjQBZs2pHbVu147CgOw== X-Received: by 2002:a05:6870:240d:b0:f1:b878:e97c with SMTP id n13-20020a056870240d00b000f1b878e97cmr2102021oap.193.1653595382947; Thu, 26 May 2022 13:03:02 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 26 May 2022 16:03:02 -0400 MIME-Version: 1.0 In-Reply-To: <20220523233719.1496297-1-bjorn.andersson@linaro.org> References: <20220523233719.1496297-1-bjorn.andersson@linaro.org> From: Stephen Boyd User-Agent: alot/0.10 Date: Thu, 26 May 2022 16:03:02 -0400 Message-ID: Subject: Re: [PATCH] leds: qcom-lpg: Require pattern to follow documentation To: Bjorn Andersson , Jonathan Corbet , Marijn Suijten , Pavel Machek Cc: Matthias Kaehlcke , Satya Priya , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-arm-msm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Quoting Bjorn Andersson (2022-05-23 16:37:19) > The leds-trigger-pattern documentation describes how the brightness of > the LED should transition linearly from one brightness value to the > next, over the given delta_t. > > But the pattern engine in the Qualcomm LPG hardware only supports > holding the brightness for each entry for the period. > This subset of patterns can be represented in the leds-trigger-pattern > by injecting zero-time transitions after each entry in the pattern, > resulting in a pattern that pattern that can be rendered by the LPG. s/that pattern// > > Rework LPG pattern interface to require these zero-time transitions, to > make it comply with this subset of patterns and reject the patterns it > can't render. > > Fixes: 24e2d05d1b68 ("leds: Add driver for Qualcomm LPG") > Signed-off-by: Bjorn Andersson > --- Reviewed-by: Stephen Boyd