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=-15.5 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=unavailable 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 8C46CC433F5 for ; Wed, 8 Sep 2021 17:27:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6C74B61157 for ; Wed, 8 Sep 2021 17:27:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352460AbhIHR24 (ORCPT ); Wed, 8 Sep 2021 13:28:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:60192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230091AbhIHR2y (ORCPT ); Wed, 8 Sep 2021 13:28:54 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F19A60EBA; Wed, 8 Sep 2021 17:27:39 +0000 (UTC) Date: Wed, 8 Sep 2021 18:31:05 +0100 From: Jonathan Cameron To: Fabrice Gasnier Cc: William Breathitt Gray , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v16 01/14] counter: stm32-lptimer-cnt: Provide defines for clock polarities Message-ID: <20210908183105.062869dd@jic23-huawei> In-Reply-To: References: X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 31 Aug 2021 15:38:50 +0200 Fabrice Gasnier wrote: > On 8/27/21 5:47 AM, William Breathitt Gray wrote: > > The STM32 low-power timer permits configuration of the clock polarity > > via the LPTIMX_CFGR register CKPOL bits. This patch provides > > preprocessor defines for the supported clock polarities. > > > > Cc: Fabrice Gasnier > > Signed-off-by: William Breathitt Gray > > --- > > drivers/counter/stm32-lptimer-cnt.c | 6 +++--- > > include/linux/mfd/stm32-lptimer.h | 5 +++++ > > 2 files changed, 8 insertions(+), 3 deletions(-) > > Hi William, > > You can add my: > Reviewed-by: Fabrice Gasnier Applied to the togreg branch of iio.git and push out as testing for all the normal reasons > > Thanks, > Fabrice > > > > > diff --git a/drivers/counter/stm32-lptimer-cnt.c b/drivers/counter/stm32-lptimer-cnt.c > > index 13656957c45f..7367f46c6f91 100644 > > --- a/drivers/counter/stm32-lptimer-cnt.c > > +++ b/drivers/counter/stm32-lptimer-cnt.c > > @@ -140,9 +140,9 @@ static const enum counter_function stm32_lptim_cnt_functions[] = { > > }; > > > > enum stm32_lptim_synapse_action { > > - STM32_LPTIM_SYNAPSE_ACTION_RISING_EDGE, > > - STM32_LPTIM_SYNAPSE_ACTION_FALLING_EDGE, > > - STM32_LPTIM_SYNAPSE_ACTION_BOTH_EDGES, > > + STM32_LPTIM_SYNAPSE_ACTION_RISING_EDGE = STM32_LPTIM_CKPOL_RISING_EDGE, > > + STM32_LPTIM_SYNAPSE_ACTION_FALLING_EDGE = STM32_LPTIM_CKPOL_FALLING_EDGE, > > + STM32_LPTIM_SYNAPSE_ACTION_BOTH_EDGES = STM32_LPTIM_CKPOL_BOTH_EDGES, > > STM32_LPTIM_SYNAPSE_ACTION_NONE, > > }; > > > > diff --git a/include/linux/mfd/stm32-lptimer.h b/include/linux/mfd/stm32-lptimer.h > > index 90b20550c1c8..06d3f11dc3c9 100644 > > --- a/include/linux/mfd/stm32-lptimer.h > > +++ b/include/linux/mfd/stm32-lptimer.h > > @@ -45,6 +45,11 @@ > > #define STM32_LPTIM_PRESC GENMASK(11, 9) > > #define STM32_LPTIM_CKPOL GENMASK(2, 1) > > > > +/* STM32_LPTIM_CKPOL */ > > +#define STM32_LPTIM_CKPOL_RISING_EDGE 0 > > +#define STM32_LPTIM_CKPOL_FALLING_EDGE 1 > > +#define STM32_LPTIM_CKPOL_BOTH_EDGES 2 > > + > > /* STM32_LPTIM_ARR */ > > #define STM32_LPTIM_MAX_ARR 0xFFFF > > > > 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=-15.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=unavailable 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 125AEC433EF for ; Wed, 8 Sep 2021 17:30:07 +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 C73A861153 for ; Wed, 8 Sep 2021 17:30:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C73A861153 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=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:MIME-Version:References:In-Reply-To: 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=UVXfwN6HKA05SjFOwgLGkSHADmCDJWlml5dBiQATdMY=; b=PwyyT61N/5yzoP PNTSqguF7nint4aen8j248IxDFieOPhVwjimC8ZLxJA/eyc9Yf7rFm2SWyiM8mo/LTS83fre42D8p pQWAFAZ91osDWk+O6kp20SetbP4FjMA6BvpZh2Zb7BDQE+FN0avz9YxTGjYS4i9NzfCKYkkBv408V cXlyF1xp+P7wrwO9z6LTnMO1ei94EP8PfqAlpjhUsrYLgUCKaKliqEsOC7+dEiO9AufVHGwEiBY7w 5GHdUL5oCVUbTeLU9ysoaV9WryGBaWDBsEsBuUpss4djAvjqUncHi54P2/IqGWroHjNYdCsCKQVQW zZenBNMlmzABXpIzmPWA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mO1MU-007Gt7-3F; Wed, 08 Sep 2021 17:27:50 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mO1MQ-007Gsm-S1 for linux-arm-kernel@lists.infradead.org; Wed, 08 Sep 2021 17:27:48 +0000 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F19A60EBA; Wed, 8 Sep 2021 17:27:39 +0000 (UTC) Date: Wed, 8 Sep 2021 18:31:05 +0100 From: Jonathan Cameron To: Fabrice Gasnier Cc: William Breathitt Gray , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v16 01/14] counter: stm32-lptimer-cnt: Provide defines for clock polarities Message-ID: <20210908183105.062869dd@jic23-huawei> In-Reply-To: References: X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210908_102746_980382_BDE5FD1E X-CRM114-Status: GOOD ( 20.71 ) 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 On Tue, 31 Aug 2021 15:38:50 +0200 Fabrice Gasnier wrote: > On 8/27/21 5:47 AM, William Breathitt Gray wrote: > > The STM32 low-power timer permits configuration of the clock polarity > > via the LPTIMX_CFGR register CKPOL bits. This patch provides > > preprocessor defines for the supported clock polarities. > > > > Cc: Fabrice Gasnier > > Signed-off-by: William Breathitt Gray > > --- > > drivers/counter/stm32-lptimer-cnt.c | 6 +++--- > > include/linux/mfd/stm32-lptimer.h | 5 +++++ > > 2 files changed, 8 insertions(+), 3 deletions(-) > > Hi William, > > You can add my: > Reviewed-by: Fabrice Gasnier Applied to the togreg branch of iio.git and push out as testing for all the normal reasons > > Thanks, > Fabrice > > > > > diff --git a/drivers/counter/stm32-lptimer-cnt.c b/drivers/counter/stm32-lptimer-cnt.c > > index 13656957c45f..7367f46c6f91 100644 > > --- a/drivers/counter/stm32-lptimer-cnt.c > > +++ b/drivers/counter/stm32-lptimer-cnt.c > > @@ -140,9 +140,9 @@ static const enum counter_function stm32_lptim_cnt_functions[] = { > > }; > > > > enum stm32_lptim_synapse_action { > > - STM32_LPTIM_SYNAPSE_ACTION_RISING_EDGE, > > - STM32_LPTIM_SYNAPSE_ACTION_FALLING_EDGE, > > - STM32_LPTIM_SYNAPSE_ACTION_BOTH_EDGES, > > + STM32_LPTIM_SYNAPSE_ACTION_RISING_EDGE = STM32_LPTIM_CKPOL_RISING_EDGE, > > + STM32_LPTIM_SYNAPSE_ACTION_FALLING_EDGE = STM32_LPTIM_CKPOL_FALLING_EDGE, > > + STM32_LPTIM_SYNAPSE_ACTION_BOTH_EDGES = STM32_LPTIM_CKPOL_BOTH_EDGES, > > STM32_LPTIM_SYNAPSE_ACTION_NONE, > > }; > > > > diff --git a/include/linux/mfd/stm32-lptimer.h b/include/linux/mfd/stm32-lptimer.h > > index 90b20550c1c8..06d3f11dc3c9 100644 > > --- a/include/linux/mfd/stm32-lptimer.h > > +++ b/include/linux/mfd/stm32-lptimer.h > > @@ -45,6 +45,11 @@ > > #define STM32_LPTIM_PRESC GENMASK(11, 9) > > #define STM32_LPTIM_CKPOL GENMASK(2, 1) > > > > +/* STM32_LPTIM_CKPOL */ > > +#define STM32_LPTIM_CKPOL_RISING_EDGE 0 > > +#define STM32_LPTIM_CKPOL_FALLING_EDGE 1 > > +#define STM32_LPTIM_CKPOL_BOTH_EDGES 2 > > + > > /* STM32_LPTIM_ARR */ > > #define STM32_LPTIM_MAX_ARR 0xFFFF > > > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel