Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5962555rwb; Mon, 5 Dec 2022 06:23:18 -0800 (PST) X-Google-Smtp-Source: AA0mqf4tZ43gDBl7aGL7vPPOGNpaXRs59c94rKcF0/LW6JLiS1hTdHOMbfvx4tKSm5XhX5+C1vX9 X-Received: by 2002:a17:906:950e:b0:7c0:fd1a:afce with SMTP id u14-20020a170906950e00b007c0fd1aafcemr2318487ejx.48.1670250198279; Mon, 05 Dec 2022 06:23:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670250198; cv=none; d=google.com; s=arc-20160816; b=W1sO73olh+VtLUvXuNDx/yeXSnHvuobArxdcsOnv6Ub6QFbohyj5dg/GEmUTVjpBAt wGZYEQoRq5NW6l0YF+Dn5LZGzeoXWcV4mZaUbS6hr6fpAb8vtOZCDqp8ihz/D3UCM7dy tCqkHan43oSAmhdnxJHnewd1oY1tAE2yRkxTrgxib8Lpfx+8v2vFPPHvGHAKLpaJ0w8g 2TTm1QyDhkMGVtig4Mw55yNSK5FOY7Dy24ueSDvvjBH77tUO8qixinJmpvtLTAwnXCbu d7OpSR6l/5Yky10QExfMf+mxtainQZ5TdcQ63j/6Pa/T1HZ3TkICu3G1goci9L7XCTWo xLpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=lDFKXKvJN0XrlcubPN8uKD86PQNw4+8sbbVe0b01rSk=; b=Y6jJkl4LzjnEaU4HPx2OXs5rCmTW8/Ik8473H+e7E+324PZMTSxV7swDxbqQvJE5oV xXqcMWV1y29vnijkf5xcJpLwKz9wLumbeI+v6zRl3HsZ6EQqZ1dgm448vevH/ElgwJDi KZIf2MOb6ciW7ai9w+F2Fh5/+BrGALC7cKQ3UwiVSeUsXEHw7jXrscS/tK3DedvxS8/R 0oR2WRksgDAjVRAqRmG6ifpJh7XbB5CieGmtfW1o1Jd/8xbsocCiimS/JJ/FKcsDe7o3 8BFI0JlI3N8Fzbo3rAdd1SyHssKo0BkFvqIJzqLZZ6DdBVWKK7+bKrsW6SpOg6shfXMl gtkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=DILNgyuu; 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=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7-20020aa7c747000000b0046af790c410si6185730eds.569.2022.12.05.06.22.55; Mon, 05 Dec 2022 06:23:18 -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; dkim=pass header.i=@canonical.com header.s=20210705 header.b=DILNgyuu; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231454AbiLENu1 (ORCPT + 81 others); Mon, 5 Dec 2022 08:50:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231205AbiLENuZ (ORCPT ); Mon, 5 Dec 2022 08:50:25 -0500 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B953C17AA3 for ; Mon, 5 Dec 2022 05:50:18 -0800 (PST) Received: from mail-yw1-f198.google.com (mail-yw1-f198.google.com [209.85.128.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 472A23F13F for ; Mon, 5 Dec 2022 13:50:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1670248216; bh=lDFKXKvJN0XrlcubPN8uKD86PQNw4+8sbbVe0b01rSk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=DILNgyuuQRvaC8t9x9TLhrnGXXjAkckN7H1xGpyNotp6aw65VCC0kNYaHjnLohYId PiO2fKrTpNEk6EVLl7Asy0HmUw4019IyNJxujQFObIPw1n04RhtM7V5cZwzja6rPfU MxHfYZX0YJljh4+cn6CBQOWcgeXSGn6DnIBBonMDGlzIyT3X9Kg98V/3E9Nu5SASZm eFD0wych0LxQf4DpxrD7teTOPE1liz50zPPu6d2wsUyCyMt/sXVxBy/EPpjYLatig6 emRbWxvAivoMSM7IRubvC3RuqCEB4666EdhHU8VqKgFsV/t9DNxcE1w4flIqrzkjvv +XZi6GnaxMHvg== Received: by mail-yw1-f198.google.com with SMTP id 00721157ae682-352e29ff8c2so123988447b3.21 for ; Mon, 05 Dec 2022 05:50:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lDFKXKvJN0XrlcubPN8uKD86PQNw4+8sbbVe0b01rSk=; b=aEylVZIWOL4rtZWPi2oMY4I8qO7rzWUI9uwj3N90I7QqaXRYMaKh6aaZo6D2PHlvvQ t2uVb5tcUUFFAAJE0outuU8XyMmfqY8SqRslqwsE3mYnzDarHb7zVSmZIMEFB023mmxj bHRdnSSXJsePEFzWrNwKsc57Oef35BMyds87HLF7JbNqVBx/pVYUAz5czlnZySWtqD5C UB9XmSrg3ZFshvlO8pd05RWzRiyfVc8Sf5lQiMwQqWPDisEKqRx+SNGovvAbDEVvBFVl 7T6No+2sC6S/WInd4d8pcVWNR03w26q7KhtqtjYkyhiOoLSiG//KMQNlItiHDDnnvAV9 Cy0A== X-Gm-Message-State: ANoB5pkwYBl1blY7jDUOvweV1V3fJjmq9hEEXjp55s1r3a1BhNDF+MZv 0rZgAx+Kao4ATOo6uYKP23oPza9ZICw+Rdxx12rjk5YTgk3BdAmMaJ1Ig7BqEVQOceanBSWKBCR bibltrXkZnyTA1i9j0JWo1WYo9eJqeRysgey5T8VYjSWJjejZbPeBEHktbQ== X-Received: by 2002:a25:3f85:0:b0:6f4:61ff:6624 with SMTP id m127-20020a253f85000000b006f461ff6624mr41754936yba.551.1670248215362; Mon, 05 Dec 2022 05:50:15 -0800 (PST) X-Received: by 2002:a25:3f85:0:b0:6f4:61ff:6624 with SMTP id m127-20020a253f85000000b006f461ff6624mr41754914yba.551.1670248215182; Mon, 05 Dec 2022 05:50:15 -0800 (PST) MIME-Version: 1.0 References: <20221109113724.519021-1-emil.renner.berthing@canonical.com> <20221109120102.ylnseq2w33rvt7fz@pengutronix.de> <20221109153311.cszr7fgfmyelwra3@pengutronix.de> <20221128082441.wsqcpuxqk6cynako@pengutronix.de> In-Reply-To: <20221128082441.wsqcpuxqk6cynako@pengutronix.de> From: Emil Renner Berthing Date: Mon, 5 Dec 2022 14:49:58 +0100 Message-ID: Subject: Re: [PATCH v2] pwm: sifive: Always let the first pwm_apply_state succeed To: Thierry Reding Cc: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Palmer Dabbelt , Paul Walmsley , Atish Patra , "Wesley W. Terpstra" , linux-pwm@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 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 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 Mon, 28 Nov 2022 at 09:24, Uwe Kleine-K=C3=B6nig wrote: > 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=C3=B6nig > > 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 lo= oks > > > as follows: > > > > 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. @Thierry, it seems this is stuck on some opinion from you. /Emil > Best regards > Uwe > > -- > Pengutronix e.K. | Uwe Kleine-K=C3=B6nig = | > Industrial Linux Solutions | https://www.pengutronix.de/ = |