Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2393397yba; Thu, 25 Apr 2019 15:57:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmwEXHyTAxTEqWW3riYK97MUgomOnqi7EPnB2nXixWYi65G5/nJfYImHKD3BMK63uDsw5s X-Received: by 2002:a65:6659:: with SMTP id z25mr39717862pgv.10.1556233036608; Thu, 25 Apr 2019 15:57:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556233036; cv=none; d=google.com; s=arc-20160816; b=Z+OqEUQDEF/pho7uLphrG0CS02tLb40RYGPYdT/TNlWMfWA+AcnKrEn4jSBPQR+3if UteheZVByIuR7NH4mJ3XXuGq2C2rZQuRLWq3665kKOA1e8/OXDL/pqNpkLFDfGhOcf/7 amzWVJbrGUQDHz+kTUrZJA/lfjL119cxFajvL5ds9W45/1pZggPq1h35JF6Ww1Uz4i7Z 5fcA1bhHn66UBxZ+gRtB8wE2n/MOrT2BgGsLeYgGT6mtu3IEZQZPOpIOBxLZ4I0/h16z n7v3r7pmfJRdUKTSIcEolpZOIFH2RcGLXChOsgeXg/GkBBInw/f3QqSXWjAo8TfVnOqN VySQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=2BbnDHSdmo9EsPssh4+cDnse2PF+EKLkrPxXRQPRv3U=; b=pBjcLyabhtQjsLwJE5c4ZvoQwyySkuvjgfUJyR9xA3JzsUv+F9ricbdPP77u/R3rUu 7wrDuzndUP+9+gDAmXYg9B6uTG8kFZBMRfb/OeYwbKTLeleM+PL7bq6sbhqoeXIlQ+Tr 5TwhCgbgltX29CN+Xc9U7+/NkpdT3ykodNfTuM225+D1s65FdigNFXqDz+F1gMQ2z24R WjEnPdcmuPeGBD0SlOxHTTJVgzILq4TnMlrx4UKirrL2S7dqw0gBXs/EVl1fjrujtyfI C6NtFIwneB3AKmntMPgA578ZM3VmkuV8kdQo2Fmzkcz1fhFYxhxLXVHA9sDs8YgqEI3K 0htw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PteYC7nI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4si2764107pgs.232.2019.04.25.15.57.00; Thu, 25 Apr 2019 15:57:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PteYC7nI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387473AbfDYVli (ORCPT + 99 others); Thu, 25 Apr 2019 17:41:38 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:41286 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730571AbfDYVli (ORCPT ); Thu, 25 Apr 2019 17:41:38 -0400 Received: by mail-wr1-f67.google.com with SMTP id c12so1396334wrt.8 for ; Thu, 25 Apr 2019 14:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2BbnDHSdmo9EsPssh4+cDnse2PF+EKLkrPxXRQPRv3U=; b=PteYC7nIBAGD7LJdOjlhH4ErRzLpUucdh0PzJOri70keJcE7oe0VK7tGnyw1aiQsk4 0/feRsGlYVbxk7CwpvZE3ekPa8qnds9kBeQUapImzenbNioGaURUe5lF8ejlirbODlsy lMLFZjIx8DtmPEtiQ7BA6Iy+PHNd7TetVLFcWvXsnfNdW0+6BEsCZ+juYgEhEbXByH3/ 7hY0BoYvYXbboHWFluYE583WL8Tgzr5F4CRo4dYbYOr+w5RZ3Jqsm7UX9JTCP87U56+d mwV7dHGb0eeGUQ11DYvQLw39RWRXQ7beN0IbZtSRTPIwmr/Oy39EH53q8liJOWada7sE S7mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2BbnDHSdmo9EsPssh4+cDnse2PF+EKLkrPxXRQPRv3U=; b=LFjgNYt2fsme9+FpTu3dLetBUm3HjvcxSIpIpXha1vt416F4DDlIiQIOgPY6YWYupp OVMGPGcd5fBoyg62ohUTM0spMndQ8htE5rtEVHGynQAdWP8uTAVCcB0QR4WgLgyJKy+8 ruhpQB4g7rpBCNqJKWpOGrcjLAFGT1vHuu4B2RlPT7KNYGE0SKNwjhDN7gLUCzTgvn8L 3Gh9UZLLeOyRDKLKautHFl6OjthT6wVNmB0ByUgiziOj2tuw+VuFZyd0nTban012QyHg jxraphM73Qh5bGeBUC77Q8K4gNTJWiplJy2O4jghRqvajGu3J53KCXhVdUtAeIthxaA+ oM9g== X-Gm-Message-State: APjAAAUYs/VnJpJBtStqAVZMkz0z9/APtWDRLqzirMGWG1J102insBDH dzkBiI+Ff/jsngq+5fzhYR/KmA== X-Received: by 2002:adf:eb4c:: with SMTP id u12mr22325094wrn.235.1556228496305; Thu, 25 Apr 2019 14:41:36 -0700 (PDT) Received: from [192.168.0.41] (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.googlemail.com with ESMTPSA id d11sm10703499wrc.32.2019.04.25.14.41.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 14:41:35 -0700 (PDT) Subject: Re: [PATCH v10 14/18] drivers/clocksource: timer-fsl-ftm: use common header for FlexTimer #defines To: William Breathitt Gray , gregkh@linuxfoundation.org Cc: jic23@kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, fabrice.gasnier@st.com, benjamin.gaignard@st.com, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, akpm@linux-foundation.org, david@lechnology.com, robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, leoyang.li@nxp.com, tglx@linutronix.de, thierry.reding@gmail.com, esben@haabendal.dk, linux-pwm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, patrick.havelange@essensium.com References: From: Daniel Lezcano Message-ID: <95ce444a-2f10-ec89-cb13-578349511f6b@linaro.org> Date: Thu, 25 Apr 2019 23:41:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/04/2019 08:30, William Breathitt Gray wrote: > From: Patrick Havelange > > Common #defines have been moved to "linux/fsl/ftm.h". Thus making use of > this file. > Also FTM_SC_CLK_SHIFT has been renamed to FTM_SC_CLK_MASK_SHIFT. > > Reviewed-by: Esben Haabendal > Signed-off-by: Patrick Havelange > Signed-off-by: William Breathitt Gray Please, do pick my Acked-by from V2. > --- > drivers/clocksource/timer-fsl-ftm.c | 15 ++------------- > 1 file changed, 2 insertions(+), 13 deletions(-) > > diff --git a/drivers/clocksource/timer-fsl-ftm.c b/drivers/clocksource/timer-fsl-ftm.c > index 846d18daf893..e1c34b2f53a5 100644 > --- a/drivers/clocksource/timer-fsl-ftm.c > +++ b/drivers/clocksource/timer-fsl-ftm.c > @@ -19,20 +19,9 @@ > #include > #include > #include > +#include > > -#define FTM_SC 0x00 > -#define FTM_SC_CLK_SHIFT 3 > -#define FTM_SC_CLK_MASK (0x3 << FTM_SC_CLK_SHIFT) > -#define FTM_SC_CLK(c) ((c) << FTM_SC_CLK_SHIFT) > -#define FTM_SC_PS_MASK 0x7 > -#define FTM_SC_TOIE BIT(6) > -#define FTM_SC_TOF BIT(7) > - > -#define FTM_CNT 0x04 > -#define FTM_MOD 0x08 > -#define FTM_CNTIN 0x4C > - > -#define FTM_PS_MAX 7 > +#define FTM_SC_CLK(c) ((c) << FTM_SC_CLK_MASK_SHIFT) > > struct ftm_clock_device { > void __iomem *clksrc_base; > -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog