Re: [PATCH 17/20] libata: make ata_pci_acquire_resources() handle iomap

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

 



Tejun Heo wrote:
Jeff Garzik wrote:
+    /* iomap PCI BARs */
+    for (i = 0; i < DEVICE_COUNT_RESOURCE; i++) {
+        if (!(bar_mask & (1 << i)))
+            continue;

NAK, you only should map the stuff you are going to use.

Mapped resources is finite, and you definitely don't want to map certain resources on certain controllers -- sometimes they are a memory area that's too large to be mapped, even.

Yeap, that's what @bar_mask and the above if () continue; block is for. Or am I misunderstanding you?

Oops, I missed that part.  Ignore my comment...


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

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux