Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1205441rdb; Mon, 2 Oct 2023 02:23:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGugdkI6z048ZOrk5CPCEBNp57mv48Xv0bt6UxmUpBrGL+OehzXkOnx4GlEt46ZXj5RBXcg X-Received: by 2002:a17:90a:e008:b0:26b:36a4:feeb with SMTP id u8-20020a17090ae00800b0026b36a4feebmr16743846pjy.8.1696238624687; Mon, 02 Oct 2023 02:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696238624; cv=none; d=google.com; s=arc-20160816; b=RdAP3YsxQO0O4nlxhpqVB8IJVp0yqt/qpyNflcmB2PUDEAX0G68s7gmg32Do3vvSu6 lUBozi5Mgnf42sirIfHj8ouBrxp17cBukN31Q50PDxYnJ74Rb4L58j1ujS4+7SGCfCj1 PTVFVifdgkN3/0U0q9udWBYxBDSR4VJ5UfRyHNVkcU7M20EDpOJwk75s+NgS5kU6V+z9 55kqSSwtGSnyd5IeCgnNFagsliq6piX8XdhslKzCU3J2mKF7xZKGzlWzbYhFK8Pu+9ef /iWtqHXgO6k5/nXJz6mOYdG6vH368UGyTgGx6Rp+eEEMeWRM6GcaIq3Qj4JKuZZulST3 n9NQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=TPXvLlOlQa8WGXPqip+hqf9TbkE/620i3acWsoutXLw=; fh=w8IYRIbsGkyo/fQcqvgCx1VQmtTKDE/Qx9AmDz2XCHE=; b=PGfakOcwBgdh68jQahUIrr2WulsC7jPZ2QVaWStEYjM7FFEU9kmPWuOl3v4PufV0j0 EvviW29EGvuNQqfPpXbWvOlj1dKSOy/UbPWwy4HrLMVtJhrN6c46y8gTKk+ieJR7n3Bi ljb3ttARnb1aDNBj9rh2Q0WuhJ5ahjn8sa38p+sa4QNWzMsxmXB9OsPHjcVNe/r06KX+ Os/ErhuZ7GjKtMoa5M3udBE7UXAy6UYdEZZsoc23f3wu02fflltXmFRU3RVPeK5xGMr/ n6cc/SH0PEpbv3sjrdzndwEqTGmbn752ZTIliDC1fUFRMicz3c2wjMe4ieJMOFy6ETs7 8t9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id pi4-20020a17090b1e4400b00262e99964bdsi8063535pjb.99.2023.10.02.02.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 02:23:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 6BE9C807F4BE; Mon, 2 Oct 2023 01:59:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235935AbjJBI7P (ORCPT + 99 others); Mon, 2 Oct 2023 04:59:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235863AbjJBI7M (ORCPT ); Mon, 2 Oct 2023 04:59:12 -0400 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0417AB for ; Mon, 2 Oct 2023 01:59:09 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qnElb-0002eL-Bo; Mon, 02 Oct 2023 10:59:03 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qnEla-00ATwv-NR; Mon, 02 Oct 2023 10:59:02 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qnEla-007iCB-EI; Mon, 02 Oct 2023 10:59:02 +0200 Date: Mon, 2 Oct 2023 10:59:02 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Sean Young Cc: Ivaylo Dimitrov , Mauro Carvalho Chehab , Thierry Reding , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org Subject: Re: [PATCH 2/2] media: pwm-ir-tx: trigger edges from hrtimer interrupt context Message-ID: <20231002085902.63b6cpql5tgwdhbw@pengutronix.de> References: <7efe4229514001b835fa70d51973cd3306dc0b04.1696156485.git.sean@mess.org> <5982681d-4fb5-0271-fdc5-712d6c8512e3@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="w4mugfksby7fun6n" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 02 Oct 2023 01:59:18 -0700 (PDT) --w4mugfksby7fun6n Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Sean, On Mon, Oct 02, 2023 at 09:20:20AM +0100, Sean Young wrote: > Having said that, the extra call to pwm_apply_state() may have benefits, > see this comment in the pwm-sifive driver: >=20 > * - When changing both duty cycle and period, we cannot prevent in > * software that the output might produce a period with mixed > * settings (new period length and old duty cycle). You don't gain anything here I think. Disabling a PWM might also result in a constant active level. If you want to prevent this, your best bet is to never disable the PWM. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --w4mugfksby7fun6n Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmUahlUACgkQj4D7WH0S /k536ggAiK7eJvApJAJkjCl2635YReF9JlrqDIQZAV84fZYHq7+/8mGmyQjcM+5X uxdpbFs72wBJX6h9r/nb3Oj1Tf0oEV7oV556yaOQEZNbCjojLUj/0LeY+32a6XBV Xepz1LpfjZi/eSQqSAH6YBqL1t2L0vyBgxh2QBc81BuiIvnAZmZoO+v4cpxNi5Yn 1NrULzUIFkeNQv1vupoAFZ4VYow9cnvjdIR/5XsDsops7O3UMSZ0eUtM+0Y6hoJx qNhQaVRqcCY70oRJIckZyZJlMRRbnSkY4KOO0h/LCGydOFmSfzVI8zjL4DXWw49E RaSNesAi4lHXV4x8/+NOpeBggIAEzw== =FKci -----END PGP SIGNATURE----- --w4mugfksby7fun6n--