Re: [PATCH 2.6-BK] Allow arch-specific pci_dma_set_mask

From: Jeff Garzik
Date: Sun Mar 28 2004 - 15:48:42 EST

Deepak Saxena wrote:

Following is a patch that allows for architectures to override pci_set_dma_mask and friends for systems that need to do so such
as the ARM IXP425. Instead of having invidual HAVE_ARCH_FOO
for each of the three mask functions, I think it just makes more
sense to have one for overrdding all three since chances are
if you need to override one, you need to do so for all of them.


===== drivers/pci/pci.c 1.63 vs edited =====
--- 1.63/drivers/pci/pci.c Sun Mar 14 12:17:06 2004
+++ edited/drivers/pci/pci.c Fri Mar 26 16:58:01 2004
@@ -658,6 +658,10 @@
+ * These can be overridden by arch-specific implementations
+ */
pci_set_dma_mask(struct pci_dev *dev, u64 mask)

Looks OK to me, but it's really up to arch people. I just follow the API I'm given. :)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at