Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2846554rdb; Sat, 9 Dec 2023 01:11:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IH0RkFjMFYp2agkyol1RVxdR/fHxIM9uBu71uCre37mlRP3Qor2gVUoihZN+VBPm9ftCCMK X-Received: by 2002:a05:6870:b486:b0:1ff:832:5156 with SMTP id y6-20020a056870b48600b001ff08325156mr2042745oap.49.1702113110475; Sat, 09 Dec 2023 01:11:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702113110; cv=none; d=google.com; s=arc-20160816; b=OXn5CRTmq1XmS2C41uL3LAZ7G70GksNfmndZh5udeZJMO5MEgNTXDEbwrMQN8Nqs2f 26+zLF/jvwWPxNcj10MA0npxeinRInUO6VQEUsPd5I+X+RdtntvpipdHOCaAH3NitSNv 4UTILfN9j7pFgNrlSgLBteWRFSWPLkTkg3JQherkNMReuiAB9HlJAc0jKSFK39HokDhm gVh6DUSsrAV0TULGp0KzAmI+kwuVlQkxmTI7bTI0QTusaFQTFlHvqSCfq5NIkf0n0iUc JSIUXvOggOmw+rrMZ+ZNcbcIKwJkitcaKq0zbGUYJrvupiFK54o18mUV0x0JZcdlzJew DgBw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5lD+dYLT9MtGS2he94CffrL06X4/aY4hFRYBXZoGf44=; fh=is9T8J+x94YBAvh/oHxhPIAs0q9u28S5grXv4mCyNkU=; b=VfgnF/WRocbtgWJ2oQc/qVsYKT3gm35OcQGC90+mKyk9ifV/HBfy2m0ADUnxy25jBT 9pfmBajLRN+CZtbfu2xnU+gGlpGtlU6SzU+mYidBtDTMTP6Jmwtbp2CQ1nH5fEdbzv4S t50b0eORG34q/zTXi1E4y34/kuTsoLFwj6VHG3eN9zH0+DP9LBstx87RWJE6ckVe++vJ /EAce6ByP8aa0BnQHPwKgTSUgmsOpyFJ8qHX0PYvTAyoyxT6haNswD46AFiAbT2CbuoC 0h7JDMWec4wvhFAbQIcTb7vWyZ0ua+PoEONZsR2uELob2U7L6FoK0qXvMwnmmJL6rtaG 9hiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mess.org header.s=2020 header.b=IQ4YD9KN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mess.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id f13-20020a65400d000000b005c6001ec190si2878503pgp.892.2023.12.09.01.11.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 01:11:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@mess.org header.s=2020 header.b=IQ4YD9KN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mess.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C73BE8063031; Sat, 9 Dec 2023 01:11:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229464AbjLIJLP (ORCPT + 99 others); Sat, 9 Dec 2023 04:11:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjLIJLO (ORCPT ); Sat, 9 Dec 2023 04:11:14 -0500 Received: from gofer.mess.org (gofer.mess.org [IPv6:2a02:8011:d000:212::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E75DEED; Sat, 9 Dec 2023 01:11:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1702113077; bh=+XGfAN7SRR5RmhM3v1fKPVw4izD0tUsQBMr5UhPJlcA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IQ4YD9KNsSANLvdPn5aGGomMN2S5W4iiwx9H84Spbi7xMscnGX+4S6caE6qlZxIDu QVbT50R/i3qVRPwhF9oh2qhn0ER6zdqWj1+9lIQa0o0LIu7eFoQj6Afc1trWwutp4T 6DkHBxLTStFigS9Nc67eh8T24U1ec1N1bRfI3yzWKKq/tC0POyq3FwkG8Bk4z4ZAkg 7pNEKdcG0tpoJsnOyBM+iwgshRCASJvhAojMW7Tld1jEfnHSAY51FOOPgC7kGBfLnw DPSmX7+TSavS76RPGPZy1cJCxneKwtvpGB0V1VrfVZNKr43BtYQlApyqrahm/yWIzS Lp+K255pbDxWw== Received: by gofer.mess.org (Postfix, from userid 1000) id 77422100091; Sat, 9 Dec 2023 09:11:17 +0000 (GMT) Date: Sat, 9 Dec 2023 09:11:17 +0000 From: Sean Young To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Thierry Reding , linux-media@vger.kernel.org, linux-pwm@vger.kernel.org, Ivaylo Dimitrov , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 3/4] pwm: bcm2835: allow pwm driver to be used in atomic context Message-ID: References: <179dc1ce85702a8b64b43c0e0df656b0c5e3ce30.1701248996.git.sean@mess.org> <20231208172040.mgw7aicmwlw6yjyb@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231208172040.mgw7aicmwlw6yjyb@pengutronix.de> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 09 Dec 2023 01:11:32 -0800 (PST) On Fri, Dec 08, 2023 at 06:20:40PM +0100, Uwe Kleine-K?nig wrote: > On Fri, Dec 08, 2023 at 05:01:26PM +0000, Sean Young wrote: > > On Fri, Dec 08, 2023 at 05:22:52PM +0100, Thierry Reding wrote: > > > On Wed, Nov 29, 2023 at 09:13:36AM +0000, Sean Young wrote: > > > > clk_get_rate() may do a mutex lock. Fetch the clock rate once, and prevent > > > > rate changes using clk_rate_exclusive_get(). > > > > > > > > Signed-off-by: Sean Young > > > > --- > > > > drivers/pwm/pwm-bcm2835.c | 31 +++++++++++++++++++++---------- > > > > 1 file changed, 21 insertions(+), 10 deletions(-) > > > > > > s/pwm/PWM/ in the subject. Although, I guess you could just drop the > > > "PWM" altogether because the subject prefix implies that this is for > > > PWM. > > > > $ git log --no-merges --oneline drivers/pwm/ | sed -r 's/^\w* ([^:]+): .*/\1/' | sort | uniq -c > > 1197 pwm > > 1 PWM > > ... > > > > The vast majority of the commits use pwm: as a prefix, only one uses PWM:. > > In fact if you look across the tree almost everywhere lower case is used > > for the prefix. > > Thierry doesn't want you to change the subject prefix, but only the > second "pwm" to make it read: > > pwm: bcm2835: allow PWM driver to be used in atomic context Ah of course, my bad. > While I understand Thierry here, I'm fine with a lowercase pwm here, > too. In my book a PWM in all uppercase is the type of hardware and pwm > in all lowercase is the framework's name. If you use "PWM driver" or > "pwm driver" then doesn't matter much. > > > > > > I'm just trying to follow convention. > > > > Having said that, I think the prefix is totally redundant, it is clear from > > the commit files what they are affecting. I am not sure what it really adds. > > > > > Also, please capitalize after the subject prefix. > > > > $ git log --no-merges --oneline drivers/pwm/ | grep -E '^\w* ([^:]+): [A-Z]' | wc -l > > 217 > > $ git log --no-merges --oneline drivers/pwm/ | grep -E '^\w* ([^:]+): [a-z]' | wc -l > > 1069 > > Your matching things like: > > pwm: pwm-tiehrpwm: Add support for configuring polarity of PWM > > with the second command. These are perfectly fine as pwm-tiehrpwm is the > driver name and so shouldn't be capitalized. With a bit more care here, > we get: > > $ git log --no-merges --oneline drivers/pwm/ | grep -E '^.+: [a-z][^:]*$' | wc -l > 114 > $ git log --no-merges --oneline drivers/pwm/ | grep -E '^.+: [A-Z][^:]*$' | wc -l > 1167 > > And the newest of the 114 with a small letter is from 2013. Again, I stand corrected. Thanks for pointing it out, I will fix in the next version. Sean