Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14470297rwb; Mon, 28 Nov 2022 01:05:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf7560otL7KXgng2qQIu48JlTgYJ2VJ1ixB33EZ0s61AM0jo9IhNuzBONy1nZqagXGs0VhFQ X-Received: by 2002:a17:90a:aa86:b0:218:a506:4f95 with SMTP id l6-20020a17090aaa8600b00218a5064f95mr41323804pjq.197.1669626315706; Mon, 28 Nov 2022 01:05:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669626315; cv=none; d=google.com; s=arc-20160816; b=awDjNELH+/SdvpjpmtXpjOWxnHAH8XZLLi1JwNp8ohCP+yzn1V0k7FJq60uL6XTXJ/ RDN+/t2b1TcTHZKGv7EvUy+njSwwyIMlu/jAVofhMaI9pntCesTe2RBt7AIRVb6Mgqdg 4jFgxhslYeT9o1+y5+WxTha6wducw1iCo4JRNaT0ReAxhk/5TO7SHw0Oic5fJy6eTiAB uyNDA0ugjgk7sHsPFwqZER+oV4sTQuhApgTttUl9s9uMF0dFjImlg3DwZ6g3KsBx1T/P ybaMf2mMe+z0rgRULwaQ4zRTRyKVGOFLfrdYe9mgsJQdMpNi4o+RTkZdg/+uVTUAWYX8 KCwQ== 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=/RUfdU4zNI361Ky/rHkG5eapn0H22sGSyoXfuh0Kd74=; b=WH7O7QFzkKTT0K1V5YE/kIyM0DGF05kqoKsj8dzq3Hnw6UlmHR2uEVj3reS/FxNt5V VqPRoHV6TJx1KGRGdPKyfBaNziCfkKbijCXzgP3OXl/Islv4iteqNe3Vi7Z52XHSYids hEcCblrK4mFdkdKyzhLZtyGwQXSZywUbXBXrdHSL1PPj0kwsW+Xi7Zz0AcQpZ7f4miOs pRT51wQ3IKCqTGrusoYBJZSUYgxcMx3TwbbJiFXs8CnNddj2+FgxMj6MTKLVSTvypjD9 PqL8znBVq5nFkJGv1yOPMLNAO+crhPsrWzoNVYY2zTK7qr95gRiz9rPUBLoFqKBuQhh0 3oWA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10-20020a170902e88a00b0018929921900si12661395plg.80.2022.11.28.01.05.05; Mon, 28 Nov 2022 01:05:15 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230080AbiK1IY6 (ORCPT + 83 others); Mon, 28 Nov 2022 03:24:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230029AbiK1IYw (ORCPT ); Mon, 28 Nov 2022 03:24:52 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0ADBBD72 for ; Mon, 28 Nov 2022 00:24:51 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ozZRS-0005PL-St; Mon, 28 Nov 2022 09:24:42 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1ozZRR-000mOL-0D; Mon, 28 Nov 2022 09:24:41 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1ozZRR-000sND-57; Mon, 28 Nov 2022 09:24:41 +0100 Date: Mon, 28 Nov 2022 09:24:41 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Emil Renner Berthing Cc: Thierry Reding , Palmer Dabbelt , Paul Walmsley , Atish Patra , "Wesley W. Terpstra" , linux-pwm@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] pwm: sifive: Always let the first pwm_apply_state succeed Message-ID: <20221128082441.wsqcpuxqk6cynako@pengutronix.de> References: <20221109113724.519021-1-emil.renner.berthing@canonical.com> <20221109120102.ylnseq2w33rvt7fz@pengutronix.de> <20221109153311.cszr7fgfmyelwra3@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kaygonhhwcbbtokq" 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.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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 --kaygonhhwcbbtokq Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Wed, Nov 16, 2022 at 06:41:06PM +0100, Emil Renner Berthing wrote: > On Wed, 9 Nov 2022 at 16:33, Uwe Kleine-K=F6nig > wrote: > > On Wed, Nov 09, 2022 at 01:45:43PM +0100, Emil Renner Berthing wrote: > > > How about we merge this bug fix that can easily be backported first > > > and then look at how it should be handled properly? > > > > I thought it wouldn't be that hard to do it right from the start, > > but I admit it's harder than I expected to get right. My prototype looks > > as follows: >=20 > This works for me (modulo the two extra {'s). I'd still prefer merging Yeah, didn't even try to compile it. > the simpler version and then this on top for ease of backporting, but > as long as the race is fixed I'm fine. Will you send a cleaned up > version of this? I'd let Thierry decide what he want here. Depending on his choice I can clean up my suggestion (inclusive compile test) on the then relevant state of the driver. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --kaygonhhwcbbtokq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmOEcEUACgkQwfwUeK3K 7AnD8gf/dT+Idh5F//NM08TsmrSjFwGL4iPC9RfTbR+drkH+TzqExwotU0ZXtyez PP7g1a7fBGQyKwwXxmk56rPjoxw4XQIHKdnodzgu8PajwgKKdjTNBhd3HZHUx8I+ 2vA+/X60pzU/HBAuXkHm8wLj0BoShsgQYEclABI92tJKbUiM+46D0bTQjAXgrFcf xT4HrrftNnRB1cdjyD2DJdBSgVZBkr62NJf1LVklhnxMtmwXPHtROWfJqOZsIJBc drH9DgITkhN6r5oIQtpQ+idbxKYdU137CNSbGbWIFDgwAeammcyPqxXjeVQnk9oT RcGUSJSsXZ7y5O2nm4FJtqsgl1qjMQ== =cKDE -----END PGP SIGNATURE----- --kaygonhhwcbbtokq--