Search Linux Wireless

Re: [PATCH 3/4] ath5k: define ath_common ops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Fri, 11 Sep 2009, Luis R. Rodriguez wrote:
> 
> > In fact, if you know what kind of IO op it is (ie "it's always MMIO"),
> > you'd be even better using "writel()" directly,
> 
> Heh.. you realize I tried to document such a thing a while ago and it
> seems you opposed it [1]?

If it's mapped with "pci_iomap()" you should use ioread*/iowrite*. 

But if you know it's always MMIO, and you use just ioremap() to map it, 
and then readl/writel.

It's the _mixing_ of the two that I object to:
 - pci_iomap() - can do either MMIO of PIO
 - readl/writel - always just MMIO
should preferably not be mixed.

(Sure it will _work_, but I wouldn't encourage it)

			Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux