From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59933C47089 for ; Thu, 27 May 2021 14:12:30 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 167C6613C5 for ; Thu, 27 May 2021 14:12:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 167C6613C5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Wz867LxCKpcMewv2tsTmMc5sUrHZaOw51O7XeDLzPbo=; b=fzStHm3dxlkHEj ojGBHYDgaV5X9TohfhF1DwfbGaxQxvWfVolau9JrpH7i68SGtFy8XUxsGX0wuttMmmVV/eCEyFpfY Tea1Losze0W3oO1tR/l8+k2msJQaglThK92JIXTFep86tYRTSC8qpOCGUYLN9UfljRPd0/RU8EnNz qjxfaQ/T6CF07vEFxl1fF5tPumBWgQEvUyDPrpJ7YFGKS59xo3tldFUrxzuvZ1w+0oLFQpL25pfKA +sF5WiCMLHu1ukL4yJNqGULNBEPQz2AEG5xqyN1m3lWwMgzbslwbK5P+sTn79fxRRJIF5I368OvwY j50gOFVBrUBNSWCeclhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmGgl-006akS-AP; Thu, 27 May 2021 14:08:44 +0000 Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lmGSR-006Sml-0E for linux-arm-kernel@lists.infradead.org; Thu, 27 May 2021 13:53:57 +0000 Received: (Authenticated sender: alexandre.belloni@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 2548660008; Thu, 27 May 2021 13:53:48 +0000 (UTC) Date: Thu, 27 May 2021 15:53:48 +0200 From: Alexandre Belloni To: Roman Beranek Cc: Thierry Reding , Emil Lenngren , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Lee Jones , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , linux-pwm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-sunxi@googlegroups.com, Roman Beranek Subject: Re: [PATCH] pwm: sun4i: Avoid waiting until the next period Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210527_065355_233603_9EF93E43 X-CRM114-Status: GOOD ( 20.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, On 27/05/2021 14:10:35+0200, Roman Beranek wrote: > Hello Thierry, > > On Tue May 25, 2021 at 6:41 PM CEST, Thierry Reding wrote: > > I'm pretty sure Alexandre at the time reported that the instantiation of > > the controller that he was using required waiting for the period to > > complete before the output went to the disabled state. It's possible > > that this was changed in subsequent versions of the IP, so perhaps we > > need to distinguish based on compatible string? > I can't recall what I tested exactly. I probably assumed it would take the whole period to update because this is how it is working on v1 of the atmel PWM and this is what I was working on at the time. I did test on a CHIP. I guess linux-sunxi.org is more correct than I was at the time. > I've got myself an A10 (sun4i) board to test my new patchset with and > indeed the 2 cycles seem to be enough. > > I have yet to write a cover letter for it though, expect it by Monday > at the latest. > > Best regards, > Roman -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel