Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1189974rbb; Mon, 26 Feb 2024 01:18:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU6sJau0yxORJ9HmaKnLsNwOdLN4LllRxNXPIzbwtorjLIWyWH95j8bL67q8dVl90EstwzE5C0ZLzYoOMlrw8DrLZC4a1XFpheKNaR4AQ== X-Google-Smtp-Source: AGHT+IGq4X4m4wUG77iBNzFnQHtrKyxnjTYBAmQxf9pRv1op4q6AOWRKLyzHCz+BIBp9QZFUDT7t X-Received: by 2002:a05:622a:11ca:b0:42e:5eef:af2a with SMTP id n10-20020a05622a11ca00b0042e5eefaf2amr8932541qtk.28.1708939112613; Mon, 26 Feb 2024 01:18:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708939112; cv=pass; d=google.com; s=arc-20160816; b=CGz9/JTNgZH9qeyc8RGNBgq6L1w63igbbpAs22KHXuI6ojrUlUQ+28zYf71xX87fDZ Vz7k8yvP+gHx2bgt+SU1Ri4hfNa92FFloIi9PcvQUKdx+3efK518ivXPvbO4j6JNk0p0 1QM/bozayAXcjUKDyw9lMAaWh6ns6V7zTL6rDzjQ8h+zeRYmoh+gz/EfA+kDKZhIpWWS KdxRZsfj4sJvpIKwJkD0lkRmjZ2Jm3MRoND/Go70lL5jGKykH7LOc5Im5nzP17FOEi8s M1TXQEidIxs4SlN5Z3P18291NjcLhoCjNwTUx9d1C5HHe/djXd7+NBbMQFIyfBSzACFI jSSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=v1PsNDCFPogxLxyzljh2VHf3KNdaeWCPdTedqMFjRQ8=; fh=dSUo2M6C4v90WNoCFgneHsG9B0kkxBA0Cy+4wwssIME=; b=pQ7/3wdd5yp+QuAmzLlUWDXbgjEyK3olBZL7cefu+hcUyuMF9X7bTJIstTGoDNlfqC aN9i+AdgdNWf140YwDzvxC6tCMfXNOMs+LH8S1GxUSnJ5TZ40PboZa0PCGbTTL+MXnIE LPAE//YJcEMQxYYB4EHWdhCIm1yBPWEGPKtoUwR+v2JkKHPsZ/B362nDTJxkV3QaaUv6 Wp7Og3yRggIDMsMBs04pPAy1c8mF+rW6bNn5Uv7v6PaX8VnzDSPskKq1BHrsY/T8hzyp QDuZk20FbzU0hZOfUjOS+uDEvLzMvDaQeNSL3JAFENQP05G0ex/BFdS9Upnzh7/AqSAG 0Veg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-80919-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80919-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p11-20020ac8740b000000b0042c5d3fec9csi4611870qtq.447.2024.02.26.01.18.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 01:18:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80919-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-80919-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80919-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5FEE81C23CDB for ; Mon, 26 Feb 2024 09:18:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E0D95524D4; Mon, 26 Feb 2024 08:38:03 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA91D524C2 for ; Mon, 26 Feb 2024 08:38:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708936683; cv=none; b=FkGbSyGrEQ2Wfa/qapaCC3w4b1ZYBLe8mDAybYZrteiek56e3U33n9MkPPbGdKggLEVK4Pfj3inDn9IAqIcEb1Sx8GuaP+mSwWIq1Wc/6nob4iZdCqg2AmQa4lvjDm2ggc5QvRvLEpATDbADtpyMg54SxyoaQ3oaU6+Db/LGwdM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708936683; c=relaxed/simple; bh=KAmvne7q+Q8T3w8X2/856LNdrltS10Maa6r6mYC0Gdo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=X9VhD00ZJgTK20Xhk3slJuoqrezuy+Q/Ld05b85BOoc6vLmHPY7on2BhdL9guPnzDk7VJz+rI7vcglWgavPq2dUgbyGmHb+na2eFadzHCd7X2f6feCbiScGUv8EqbLBVNE3fZAUGb0hxNRWNwhHy9i2Cw4+RPUPyY8vFP5I8eEU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de 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 1reWUi-00039I-JZ; Mon, 26 Feb 2024 09:37:52 +0100 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 1reWUh-002xNN-In; Mon, 26 Feb 2024 09:37:51 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1reWUh-00BVem-1b; Mon, 26 Feb 2024 09:37:51 +0100 Date: Mon, 26 Feb 2024 09:37:51 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Leif Middelschulte Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-pwm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/2] pwm: imx27: avoid PWM consumer API Message-ID: References: <20230906154215.4ikrrbx4xgx2nmu5@pengutronix.de> <20240224112902.55539-1-Leif.Middelschulte@gmail.com> <20240224112902.55539-2-Leif.Middelschulte@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4cci5o5cbxit77zl" Content-Disposition: inline In-Reply-To: <20240224112902.55539-2-Leif.Middelschulte@gmail.com> 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 --4cci5o5cbxit77zl Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Leif, On Sat, Feb 24, 2024 at 12:29:01PM +0100, Leif Middelschulte wrote: > diff --git a/drivers/pwm/pwm-imx27.c b/drivers/pwm/pwm-imx27.c > index cb564460b79c..d00d79a5edb1 100644 > --- a/drivers/pwm/pwm-imx27.c > +++ b/drivers/pwm/pwm-imx27.c > @@ -255,7 +255,7 @@ static void pwm_imx27_wait_fifo_slot(struct pwm_chip = *chip, > sr =3D readl(imx->mmio_base + MX3_PWMSR); > fifoav =3D FIELD_GET(MX3_PWMSR_FIFOAV, sr); > if (fifoav =3D=3D MX3_PWMSR_FIFOAV_4WORDS) { > - period_ms =3D DIV_ROUND_UP_ULL(pwm_get_period(pwm), > + period_ms =3D DIV_ROUND_UP_ULL(pwm->state.period, > NSEC_PER_MSEC); > msleep(period_ms); This doesn't apply anymore on top of pwm/for-next. See commit 1706175c682fdb3fbe0b70d50b137aaa270959db which includes this change (and more). Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --4cci5o5cbxit77zl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmXcTd4ACgkQj4D7WH0S /k4wCggAuHGxwCvQ0z2YxiXsjHrkzTfgz/gskpGFGPtEXX9vKVQWmO97CQCWBrkR BBPx0OavuA/ISBcY/+kUzFbY+Uy7pw0LqAtsA+HNeRTjxLfHHL4z60WFqHbXrtco +HNpziL97gQWknDeJvdt0xoiT0sJ/ZMpcQ6qWRKMmELPDardltBcURX3UopHsoL2 Z5dpY9G+5RCY5/ALlcCgTT9UuD6BdqlX6pUCDWEr3Qkz0jjqQJi73Oz8vTH1ShNu DmvXmDQvnL5Qg+HLR9Gy6Zsu9RYm3By870xOAU5hEtAlW1gAD6Y9S189Io++6fkf 4duNo5gOQjRPd/3ulWEXecY5k8y3Bw== =gX9s -----END PGP SIGNATURE----- --4cci5o5cbxit77zl--