[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f22d0c6ab97f4f45ac66f646626b8c37@BN1PR0301MB0609.namprd03.prod.outlook.com>
Date: Sun, 28 Sep 2014 02:39:54 +0000
From: "Li.Xiubo@...escale.com" <Li.Xiubo@...escale.com>
To: Thomas Gleixner <tglx@...utronix.de>
CC: "daniel.lezcano@...aro.org" <daniel.lezcano@...aro.org>,
"john.stultz@...aro.org" <john.stultz@...aro.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH v2] clocksource: Add BE APIs support for clocksource
counter reading.
Hi,
> Subject: Re: [PATCH v2] clocksource: Add BE APIs support for clocksource
> counter reading.
>
> On Fri, 26 Sep 2014, Xiubo Li wrote:
> > For now I just added _be() support using ioread{16,32}be.
> > And i have a check of the clocksource drivers, didn't find anyone
> > using LE mode on one BE SoC, so _le() APIs is not needed.
>
> Nonsense. The existing clocksource_mmio accessor function are
> providing LE access independent of the CPU endianess. So we don't need
> an _le() API simply because we have it already.
>
> > cycle_t clocksource_mmio_readl_up(struct clocksource *c)
> > {
> > - return (cycle_t)readl_relaxed(to_mmio_clksrc(c)->reg);
> > + return (cycle_t)ioread32(to_mmio_clksrc(c)->reg);
>
> And how exactly is this change related to adding BE support?
>
Actually not very much, since the _be() APIs are using ioread{16,32}be(),
so I think using ioread{16,32}() will be less odd to having two different
accessors here.
Wouldn't this be more unified somehow ?
Thanks very much,
BRs
Xiubo
> Thanks,
>
> tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists