Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4732623pxu; Thu, 10 Dec 2020 04:16:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqZfMKVzB0v69uJHAl124lwSUMaFiL5x/BLj2g1t8zfKFK5kjnY6YrN3fRDy9V3TNMm7aj X-Received: by 2002:a50:9dc9:: with SMTP id l9mr6429627edk.377.1607602568095; Thu, 10 Dec 2020 04:16:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607602568; cv=none; d=google.com; s=arc-20160816; b=DpxluLBIv5otj3GM/G+YyOYiyR33/vn/b8w3ii5bYLwfhEkg13s0cSKtn6Ke/nMxim 70vJ1q3p28RtQ0dsAefne0BU6fNsFyB2faXrl1m0xKXIA9Tb6fFPVCbBYiQFkYsF9m3L pyo33eZBQIbjoFBeieizGWpx/P20r2nuzFkDkmHGWE82C50zdiV4T/SqxDmhBbTmYk0i rWWJLWvM9oDwCBTgbN/0Ad+ThTfdp6gPKvDdJfJexX5tXUJjuajt2ci5n69V3b0yktOq gL11w8VgyFuJPKfkIIkFXp0NFCcX6pWcuk9lcxrzKjyNTqGmx0pE5E/EDrsJPoy+EF4P 06sQ== 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=gQBeAhUv/DvCTWxeaSMtw+oP1LkOKQ9pdylAkD6gXsg=; b=OWiIe5rlMHvAelZWCAZleoFI8tT4HmXfOD+YxZj37VnsypMrZpzzUTfi0KM0cU7yns WWVf11hxAA46d+FFfFLrGkFlTclydcW2YMsugZKx2fi34bCF6n53kMK5jPFqNxa2sob1 xMBbRehR5pVx0b63uiN7jOqBRn2Kj5kebdImBKmFNYkIREY1VWIdMdA8YMRyx+WrNei/ NFyt1FMe80DKq1UGjNnVTnswqmkPqQC8Q6zclicJ6/n7MUlAeFBjAkshES2M2YzZ96vQ gKTeY6pp07qOUbvS6MnghvzrQ+8H9IJBS2a1SjBmyV3Ki2m2lPAZeyLGlWBA1H99SQPR Y3rA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rn2si2400314ejb.251.2020.12.10.04.15.44; Thu, 10 Dec 2020 04:16:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730328AbgLJLol (ORCPT + 99 others); Thu, 10 Dec 2020 06:44:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727043AbgLJLoX (ORCPT ); Thu, 10 Dec 2020 06:44:23 -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 57EECC0613D6 for ; Thu, 10 Dec 2020 03:43:41 -0800 (PST) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1knKM8-00068o-3f; Thu, 10 Dec 2020 12:43:32 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1knKM6-0000XR-CS; Thu, 10 Dec 2020 12:43:30 +0100 Date: Thu, 10 Dec 2020 12:43:30 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Lino Sanfilippo Cc: thierry.reding@gmail.com, lee.jones@linaro.org, nsaenzjulienne@suse.de, f.fainelli@gmail.com, rjui@broadcom.com, sean@mess.org, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linux-pwm@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] pwm: bcm2835: Support apply function for atomic configuration Message-ID: <20201210114330.6pgtome3aq3hj55t@pengutronix.de> References: <1607464905-16630-1-git-send-email-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="75lrswuigp2g2w5p" Content-Disposition: inline In-Reply-To: <1607464905-16630-1-git-send-email-LinoSanfilippo@gmx.de> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --75lrswuigp2g2w5p Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Tue, Dec 08, 2020 at 11:01:45PM +0100, Lino Sanfilippo wrote: > Use the newer .apply function of pwm_ops instead of .config, .enable, > .disable and .set_polarity. This guarantees atomic changes of the pwm > controller configuration. It also reduces the size of the driver. >=20 > Since now period is a 64 bit value, add an extra check to reject periods > that exceed the possible max value for the 32 bit register. >=20 > This has been tested on a Raspberry PI 4. >=20 > Signed-off-by: Lino Sanfilippo Reviewed-by: Uwe Kleine-K=F6nig Side note: I'm a bit surprised about the output of b4 diff 1607464905-16630-1-git-send-email-LinoSanfilippo@gmx.de This is probably due to the fact that compared to v3 you also rebased. Still the diff is quite big. Best regards and thanks for your patch Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --75lrswuigp2g2w5p Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAl/SCd8ACgkQwfwUeK3K 7AmZWAf+LEKGVZjqR9SrgShtkRoQm3CGpU1qgqHlwn7DtLcP3RzI6D/EKlOe2vQe VAtrTI3p2cH7j+HP9LO4JQZgkjvp95g4jsecW6At23YI3oxplzbl9fsqrX7iINGj S+imzTYo1CC9u6GZFrKy9lBpN1Wh6Uy5kF660+mgBvIMADm78hiv9IDJXKw8zsWk aDlmtXKZ9+WjUnPNB9n42RzTA6ZcarJhiypt6wHV1dARUz5fVf1JpUUyVvb8aUIo 9/f+AFAJkYxch3vUM+L2FvCuAvGj8uwp9J2GkfMd/g93QtjIg4uTmaCgPqBIVYNC yoWwtlvJNrRMKiRq+pSKHMwHh3sJ7g== =Went -----END PGP SIGNATURE----- --75lrswuigp2g2w5p--