Thread (4 messages) 4 messages, 3 authors, 2009-05-26

Re: [net-next-2.6 PATCH v2] can: SJA1000: generic OF platform bus driver

From: Wolfgang Grandegger <hidden>
Date: 2009-05-25 06:58:21
Also in: linux-devicetree, linuxppc-dev

Arnd Bergmann wrote:
On Saturday 23 May 2009, Wolfgang Grandegger wrote:
quoted
Arnd Bergmann wrote:
quoted
Minor nitpicking: dev->base_addr should be defined as an __iomem pointer
so you can avoid the cast here and in the ioremap/iounmap path.
Here the member "base_addr" of "struct net_device" is used and it's not
up to me to change the type.
Right, that makes sense. However, most drivers use the field to store the
physical address, not the iomap token. Maybe there should be a new field
in struct sja1000_priv for the virtual address, but that would be a change
to the base driver, not just to the OF portion.
Is that common practice? If yes, I will add a member to store the
virtual address to struct sja1000_priv.

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