From: dongas86@gmail.com (Dong Aisheng)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] timer: imx-tpm: add imx tpm timer support
Date: Wed, 31 May 2017 14:34:16 +0800 [thread overview]
Message-ID: <20170531063416.GA16812@b29396-OptiPlex-7040> (raw)
In-Reply-To: <CAK8P3a1JEzZFn4FXi2tb2jOFtV-3MRD-7O3gPBiZDM4qc3BTnA@mail.gmail.com>
Hi Arnd,
On Thu, May 25, 2017 at 11:02:22PM +0200, Arnd Bergmann wrote:
> On Sat, May 13, 2017 at 9:29 AM, Dong Aisheng <aisheng.dong@nxp.com> wrote:
>
> > diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
> > index 3356ab8..03dfd6a 100644
> > --- a/drivers/clocksource/Kconfig
> > +++ b/drivers/clocksource/Kconfig
> > @@ -590,6 +590,11 @@ config CLKSRC_IMX_GPT
> > depends on ARM && CLKDEV_LOOKUP
> > select CLKSRC_MMIO
> >
> > +config CLKSRC_IMX_TPM
> > + bool "Clocksource using i.MX TPM" if COMPILE_TEST
> > + depends on ARM && CLKDEV_LOOKUP && GENERIC_CLOCKEVENTS
> > + select CLKSRC_MMIO
> > +
>
> This needs a help text
>
Got it
>
> > +static inline void tpm_timer_disable(void)
> > +{
> > + unsigned int val;
> > +
> > + /* channel disable */
> > + val = __raw_readl(timer_base + TPM_C0SC);
> > + val &= ~(TPM_C0SC_MODE_MASK | TPM_C0SC_CHIE);
> > + __raw_writel(val, timer_base + TPM_C0SC);
> > +}
>
> __raw_readl/__raw_writel is broken on big-endian kernels, please
> use readl/writel instead.
>
That's true.
Thanks for the kind reminder.
Regards
Dong Aisheng
> Arnd
next prev parent reply other threads:[~2017-05-31 6:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-13 7:29 [PATCH 1/2] dt-bindings: timer: add nxp tpm timer binding doc Dong Aisheng
2017-05-13 7:29 ` [PATCH 2/2] timer: imx-tpm: add imx tpm timer support Dong Aisheng
2017-05-25 20:54 ` Daniel Lezcano
2017-05-31 6:36 ` Dong Aisheng
2017-05-25 21:02 ` Arnd Bergmann
2017-05-31 6:34 ` Dong Aisheng [this message]
2017-05-19 1:25 ` [PATCH 1/2] dt-bindings: timer: add nxp tpm timer binding doc Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170531063416.GA16812@b29396-OptiPlex-7040 \
--to=dongas86@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox