Thread (14 messages) 14 messages, 3 authors, 2011-04-22

Re: [PATCH V14 3/4] ptp: Added a clock driver for the IXP46x.

From: Richard Cochran <hidden>
Date: 2011-04-18 08:06:28
Also in: linux-api, linux-arm-kernel, linux-devicetree, linuxppc-dev, lkml

On Mon, Apr 18, 2011 at 08:56:03AM +0200, Arnd Bergmann wrote:
On Monday 18 April 2011, Richard Cochran wrote:
quoted
+
+       lo = __raw_readl(&regs->channel[ch].src_uuid_lo);
+       hi = __raw_readl(&regs->channel[ch].src_uuid_hi);
+
I guess you should use readl(), not __raw_readl() here. The __raw_* functions
are not meant for device drivers.
Krzysztof had a different opinion about this.

    https://lkml.org/lkml/2011/1/8/67

Anyway, it is his driver, and I just followed what he does elsewhere
in the driver. It make sense to me to keep the driver consistent.
Maybe we should make the change throughout?

Thanks,
Richard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help