Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp212805pxf; Thu, 8 Apr 2021 01:00:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvWidUAHpaYTUNYRikj62kFjVVrgNrCGDL3iJj5kPr1SOdmnMuA0Jvl3I/rghsq8Qr9jCU X-Received: by 2002:a05:6402:1157:: with SMTP id g23mr9628581edw.303.1617868853773; Thu, 08 Apr 2021 01:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617868853; cv=none; d=google.com; s=arc-20160816; b=Qi5/g+6ZIjcxT8geiNO5Himfo/XYHBFPLzk9OvOQZKS6//+XMnD5dRQRgwLq9zvMOz Wq6aTSaRXidMgyLOenbBMmLGzt1l2u439zoaIThSECttpyPKEPFwv5VtXL180pFaNNm/ SXpjAjl8k7M0CmqpbCAtxC9SUDi3Y6c+dFV0yIupi8JXzrTH66Mn18s4wStRvDSwJwU2 YbtWFKfR74p1ZpbyVsu/NmBlEBkPzeDh5REtARc6FZAhJSjcKk878ZNSkLu8nPan9p9p of6F35svRAD4DfFDoUsfA0BZldnDepMRuer8rY32NakCzzNffBAMeFS1whziJm1Fver4 NJPA== 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=qIW0rF97NX8mel9SgmzxYMgk45d/Qv4u84O01GQpdqg=; b=XQIs0CBe4QdwQxeYqFD1QZyVyyXAgTJMxb4vdSS7/uEksyYYK6B6aiDDl9gSoN/cBX Lm5yv3DECARWJVqjf2rdoC9PIb3xDRYTsXxYutNBKA3WaDNMNR3J167toeDNSR8L+hsV 8dM/djM6qAlmdsVTUfSKvODz2YPh3Fxet4xu+jRfjfLHZCEi+2urkAdOxN0Sp3t1iF/N dxuumaGSI3Ed5OGfJVwnZb/U/xzYeWVhYQsGTjfFpAVwLNt48KpYwbj9D1oPZRvb+lcW 3thjiXcDof5pwwJ5kgBNrNPMHGOfI7+nZGSaDwBul0Svt7kQOEGnP5xmSL0iQwkAZZZ3 MIFQ== 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 x9si3262707eje.296.2021.04.08.01.00.27; Thu, 08 Apr 2021 01:00:53 -0700 (PDT) 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 S229623AbhDHH7t (ORCPT + 99 others); Thu, 8 Apr 2021 03:59:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229510AbhDHH7p (ORCPT ); Thu, 8 Apr 2021 03:59:45 -0400 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 5649AC061760 for ; Thu, 8 Apr 2021 00:59:33 -0700 (PDT) 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 1lUPZU-0002a4-DU; Thu, 08 Apr 2021 09:59:24 +0200 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lUPZQ-0005CS-Vf; Thu, 08 Apr 2021 09:59:20 +0200 Date: Thu, 8 Apr 2021 09:59:20 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Nobuhiro Iwamatsu Cc: linux-pwm@vger.kernel.org, punit1.agrawal@toshiba.co.jp, devicetree@vger.kernel.org, yuji2.ishikawa@toshiba.co.jp, linux-kernel@vger.kernel.org, Rob Herring , Thierry Reding , kernel@pengutronix.de, Lee Jones , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 2/2] pwm: visconti: Add Toshiba Visconti SoC PWM support Message-ID: <20210408075920.rfrcqxec2yvepj3y@pengutronix.de> References: <20210212131910.557581-1-nobuhiro1.iwamatsu@toshiba.co.jp> <20210212131910.557581-3-nobuhiro1.iwamatsu@toshiba.co.jp> <20210212164144.wcvy7jkxmrysqxux@pengutronix.de> <20210407231548.4paov2fb33cpxxui@toshiba.co.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="geu5564gy6ryykgp" Content-Disposition: inline In-Reply-To: <20210407231548.4paov2fb33cpxxui@toshiba.co.jp> 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 --geu5564gy6ryykgp Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Nobuhiro, On Thu, Apr 08, 2021 at 08:15:48AM +0900, Nobuhiro Iwamatsu wrote: > > > + /* > > > + * pwmc is a 2-bit divider for the input clock running at 1 MHz. > > > + * When the settings of the PWM are modified, the new values are sh= adowed in hardware until > > > + * the period register (PCSR) is written and the currently running = period is completed. This > > > + * way the hardware switches atomically from the old setting to the= new. > > > + * Also, disabling the hardware completes the currently running per= iod and keeps the output > > > + * at low level at all times. > >=20 > > Did you just copy my optimal description or is your hardware really that > > nice? >=20 > Yes, this hardware works as you wrote. > And I added about the state if the sinnal when this hardware disabled. >=20 > >=20 > > Do you know scripts/checkpatch.pl? I bet it will tell you to limit your > > lines to approx. 80 chars where sensible. >=20 > Yes, I know. I ran scripts/checkpatch.pl before send patch. > I understand that the number of characters per line has been changed to > 100 characters. Does the pwm driver recommend 80 characters? For free-text comments I'd still recommend 80, yes. For code lines I'd be indeed more lax, as a line break in function calls reduces readability. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --geu5564gy6ryykgp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmBut9MACgkQwfwUeK3K 7AlwEwf+LOf+gfIUqpelOcF+8SK6n10H1NShUmwZh32SQfCI6WR7zeuehzeR3f2r ujKiNUDTbhTyqUUV8FKZL0ezCJkW8LGiVMzMLnmS3xJkfPkLzaiJfRwtRksWJlRU KIyrRmN2c2sQsEBqZNX++V1QYjorEMAieBJfq442oePYvToBW1EsIXC+/FZ2SNec mZfVX6SqYvMCHZ5hLxIveAhseJ+LE+QRwQNoWQNanYPRlXf2QfN4H6GLQXTqNyw/ BxGNekeiyyXlUPovaHgdiCYiph6t4AqhPq0q9AG/kSjGeQDyhmWnxSjRtUHs1li4 mr2MPB0qxKRjT5876znW5v2bOWw/9g== =aMAV -----END PGP SIGNATURE----- --geu5564gy6ryykgp--