Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2455525imj; Mon, 18 Feb 2019 06:21:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IaqDntlNQB/hzvOxNaQfx1RQYe6kZ8n+MFeHd+WNhjPP2hrRWlb1DpQxrjGOnHuP2Ic++Ic X-Received: by 2002:a63:197:: with SMTP id 145mr3587743pgb.329.1550499674588; Mon, 18 Feb 2019 06:21:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550499674; cv=none; d=google.com; s=arc-20160816; b=hzPqSVFK5FDYl6IcsjoQOXzHidZ5cHWfP6hUgD2LyLz8a4GWYYNkG019EcmORso1MU a5s+zr2aIWLe17wFv5uuk6g4neACgwXovqKaP/pXveKGwFaXZ3G6QVpyo1+bVNrsOABT ObwXabOXtyqqkBXBNKO8Jdy4pDkSsh7CNlSPkWL3Es6jlcrN3ZVrIzgViwZOKcjAjI7u yloUv9440TFheBvoNnxKt6tDvC86OVOR30G04bW1ePK3M6jR5LDD+iaiPJ1v+oJVQ0uE XIX0W4gO7EPIc0aY0HHY/aYeX2p6YBqUrzh+NN/7gE6QBMueXsX17qqJxkGgqUz/jsWW 93PA== 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:to:subject:dkim-signature; bh=ClZXXrP3BYB32DX7heYICw4CsezNlo5nX4c0OSIYVrs=; b=y3Evp2K0O/6xE3TqXAUfi7qWnQzrLQAH0/BcbOo++At8zSboPwE61pJJgATH8y3PLg PKfs8hla/t3jAHbzGj30bEWvQczosSDAlF+bgOCU2QB7pGRiAIFs9IkX0v2OQyxrpaej xVCOWLyNSavEXo3d0IOW1oJx50EAcnZSiLKM7B6xd+ljZ6OF/DbAxh3BBT0Q1qLhdRWz YvhohuUvVNrAa2OYQRFLr0O/rCnEJ9nNwJXJd5SuIAH9Q7WUVfwEK/w9r8OTBEhHt6St aWNkbpgCeGzcOchzVDvk4YtIHVe9s0BBNx4lHnKvFy9QP/w3sitokEelnsf2FYQNgwjf 3PlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kXmgAKPS; 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 k3si11431848pll.57.2019.02.18.06.20.59; Mon, 18 Feb 2019 06:21:14 -0800 (PST) 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=kXmgAKPS; 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 S2391150AbfBROUN (ORCPT + 99 others); Mon, 18 Feb 2019 09:20:13 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:52045 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391044AbfBROUL (ORCPT ); Mon, 18 Feb 2019 09:20:11 -0500 Received: by mail-wm1-f65.google.com with SMTP id n19so5411964wmi.1 for ; Mon, 18 Feb 2019 06:20:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=ClZXXrP3BYB32DX7heYICw4CsezNlo5nX4c0OSIYVrs=; b=kXmgAKPSzKBlErTbTVMwRbNVX5C/bVcgD4Ddc/3EUJDlxf70Bljrs/ZTu/t49hqqje hyU5qP81E5t9C9u+juruGkNJI7IV6MVL5GigmXKuwqgC3qZfXjRqElUZ5yF4WlCYBjhT JaBcDpFthRsAKQVdU9jxYKesXz93pUFjJraXpFxnOizq3ettppOWVf0gXs0uCQkUJ5TM vBCrG6XNkXO08k47y67EXgSUG40Ph75TeVxq4eD06H4frl76UtHBb9tj2ytiGkvE4YQc ruMCtxcwjWVuPSH9mj1IY951KdG9XyTbtnHWk/LQZ6JJ2YO2zHYZcMvHZwVk3HaX/sOI o82g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ClZXXrP3BYB32DX7heYICw4CsezNlo5nX4c0OSIYVrs=; b=ioN/869VD2utdtPD8JVt25TKvky3euUe9OUZD8yOae6abbxDS6evRlyufivoLjJ9LQ Rr0LLyZH3Y1uAFtX6OR0ktRBXLD3G+v66NmC+c5yJcnPsDGAP9mdVdsmEy1nHu6lZk4O MoW7QjHNKjA0FAOmnJl7a4lwWEsAnYO1UWCkUs6GlbTJs5vvWses3A6gTFpa5dE1nAng g6BwOeOlyVTWHtx8k7kEWT1jjK9EJk2V3L4w+zZAB17Qa6TjEzvh0cl9mqOPpu+Av381 MvygLqUiQWuoUGyUB7APJL5kC79yHnQWExixIVLhB1DNe1eComgQ5f4MxLVRHg+AFfqF niyg== X-Gm-Message-State: AHQUAuYCP8q62rCes8wqem3q31cFFX60tyTr/MHZ3E/H72WW/N5xk2Nr oZ+KV5Svbszcc9RtJImmwVa/lQ== X-Received: by 2002:a1c:41c5:: with SMTP id o188mr16028078wma.147.1550499609210; Mon, 18 Feb 2019 06:20:09 -0800 (PST) Received: from [192.168.0.41] (148.125.92.92.rev.sfr.net. [92.92.125.148]) by smtp.googlemail.com with ESMTPSA id e6sm15839091wrt.14.2019.02.18.06.20.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Feb 2019 06:20:08 -0800 (PST) Subject: Re: [PATCH 3/8] drivers/clocksource: timer-fsl-ftm: use common header for FlexTimer #defines To: Patrick Havelange , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , Shawn Guo , Li Yang , Thomas Gleixner , Thierry Reding , Esben Haabendal , William Breathitt Gray , Linus Walleij , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <20190218140321.19166-1-patrick.havelange@essensium.com> <20190218140321.19166-3-patrick.havelange@essensium.com> From: Daniel Lezcano Message-ID: <5ed4658a-7ef6-91c7-7afa-2f73f038ff95@linaro.org> Date: Mon, 18 Feb 2019 15:20:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190218140321.19166-3-patrick.havelange@essensium.com> 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 18/02/2019 15:03, Patrick Havelange wrote: Changelog please > Signed-off-by: Patrick Havelange > Reviewed-by: Esben Haabendal > --- > 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