Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1959834rwd; Fri, 2 Jun 2023 02:44:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ486UxvNWbl02pp9m4N+8mCT8q8w9cflG6yLkm0dvg/0VzMIem1CCLTa7M4nfMHJp0Paa5N X-Received: by 2002:a17:90a:5e4d:b0:256:2efc:270e with SMTP id u13-20020a17090a5e4d00b002562efc270emr1944693pji.5.1685699062391; Fri, 02 Jun 2023 02:44:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685699062; cv=none; d=google.com; s=arc-20160816; b=in588wGMe/WX72l2xC1ePpiNA3kCBFbBITJNTG4UTaymmyqOHRrydyL4tIG1l3xbYt tyS3u/uBNnXnTYlVQwCCc7Vvr5gQDCS6RWIAr/noPan7GaF0+gsq5vNEV/9dbBw4hSqT Opi+/jOvFW1zkBZAWjnVepqVZOtgG5XfHSEOAky8Pf7Kj1oRAX1E8ZtQEsCKmC6wVw1X ayR/MLYsjjzV2ZX5kMIKE/QGov97vV0mBZMD0FY/CYI5kxAE29qFjufy0w/KORY1PaOr 45WTOaay2QaOdbRjT+HTxhy9YW2C/eArKrO0mnDYEhTel2qZ5oAXNFDNiO3Fv03ahXsv PQWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KONamdEg9/mz6n0kZNNlRMsFEyt/QIXhQYB/XmyKGO0=; b=VNKgW45lUHF0KP368MMCbf0XJ+0XBuBdyUBmI9yLk0te8h5qaxP8VgTbgwZMrLk2Kx KV+CelvpmaTJlFDLzC7dDOg6skNJbgdwqFjt+c4l9zSI6MO+PhcYrC24UxfdLCbkep2d +7r7bE7X9sXBXXKjxK8Kv+ghO+MUue0wVrnczBZc8AX9ZyUf4wr64GsONtLChoCU0pFW 4RAv/jYkh4ZWyUe4LTvPtFajYfdIdjd1KV3OZG71YAVK2RTb4BCQoa66Te3L/NFspKWY Slnzt7ZVWm04aiv7cwLkLAmtDBGD3rTX0ZZ+lKh33F6xUyi+BE089XfkDvrkLZCCGRAf dU1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="itNgSAm/"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d16-20020a17090abf9000b0024e29660f61si2531314pjs.90.2023.06.02.02.44.10; Fri, 02 Jun 2023 02:44:22 -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=@kernel.org header.s=k20201202 header.b="itNgSAm/"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234131AbjFBJVq (ORCPT + 99 others); Fri, 2 Jun 2023 05:21:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233997AbjFBJVC (ORCPT ); Fri, 2 Jun 2023 05:21:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0554819A5; Fri, 2 Jun 2023 02:19:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8240E60FAB; Fri, 2 Jun 2023 09:19:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E40E6C433EF; Fri, 2 Jun 2023 09:19:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685697573; bh=2yXgxWBuoTO7Y7tqzIoMb5klm4nGL1UuQKVbtA7O9yg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=itNgSAm/man0gynUuA11av2gmxLEYOHc+/BNt6fj7beONHV9k8H7L2R14POhkcr4q PL7VHlZJ3SE+XeG4nX7rc1htJsXNuRElLdNDLatLnIIVlss+LaTXANClsbz76O7xqN +xNBy6OwFMW74o5E7+2gKxmnTnGMqnTcyqqwwJNrwfR1vZJNwLVeh4QwO0NE5096xI dofFpt1QzCD7ZBjzk3fL0ZRNQYuUECVoIbgSZ0WrT1VpvRjODwnzvFmiWXFYp/oMYO 0W45CYL22EjaKCOiCxyEw0uYU4gQPeJTupYk2T0NVqFWOQFcUGT8VJBAGrVFiC2MWW dg6CJBtClaC5w== Date: Fri, 2 Jun 2023 10:19:28 +0100 From: Lee Jones To: Johan Hovold Cc: Bjorn Andersson , Pavel Machek , Anjelique Melendez , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Caleb Connolly , Steev Klimaszewski Subject: Re: [PATCH v2] leds: qcom-lpg: Fix PWM period limits Message-ID: <20230602091928.GR449117@google.com> References: <20230515162604.649203-1-quic_bjorande@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Wed, 24 May 2023, Johan Hovold wrote: > On Mon, May 15, 2023 at 09:26:04AM -0700, Bjorn Andersson wrote: > > The introduction of high resolution PWM support changed the order of the > > operations in the calculation of min and max period. The result in both > > divisions is in most cases a truncation to 0, which limits the period to > > the range of [0, 0]. > > > > Both numerators (and denominators) are within 64 bits, so the whole > > expression can be put directly into the div64_u64, instead of doing it > > partially. > > > > Fixes: b00d2ed37617 ("leds: rgb: leds-qcom-lpg: Add support for high resolution PWM") > > Reviewed-by: Caleb Connolly > > Tested-by: Steev Klimaszewski > > Signed-off-by: Bjorn Andersson > > Tested-by: Johan Hovold > > Pavel or Lee, could you pick this one up for 6.4 as it fixes a > regression (e.g. broken backlight on a number of laptops like the X13s)? I don't presently have any plans for a -fixes submission. If anyone else would like to submit it, please be my guest: Acked-by: Lee Jones -- Lee Jones [李琼斯]