On Wed, 31 Dec 2003 11:12:42 -0500 Jeff Garzik <jgarzik _at_ pobox.com> wrote: > It seems to me like a lot of drivers wind up getting their > pci_set_dma_mask stuff wrong, occasionally in subtle ways. So, I > created a "give me 64-bit PCI DMA" helper function. > > The attached patch demonstrates its use in tg3, from which the logic > originated. It also fixes a tiny bug in tg3, whereby it might return > zero on error (rather than -EFOO) if the pci_set_dma_mask succeeds but > pci_set_consistent_dma_mask fails. I'm fine with the helper. The tg3 error return bug you noticed is already fixed in the tg3 updates I'm sending to Linus today. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo _at_ vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
References:
- [PATCH] pci_set_dac helperJeff Garzik
- Prev by Date: Re: 2.6.0-rc1-mm1
- Next by Date: Re: File change notification
- Previous by thread: [PATCH] pci_set_dac helper
- Next by thread: Re: [PATCH] pci_set_dac helper
- Indexes:[Main][Thread]