Re: [PATCH 0/3] Add API for weak DMA masks

From: David Miller
Date: Thu May 01 2008 - 17:40:01 EST


From: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 1 May 2008 17:29:13 +0100

> We have tons of drivers that go
>
> try and set 64bit
> oh failed
> try and set 32 bit
> oh worked
>
> When what most actually want is "set it no more than this wide" - a
> request or even a "pci_set_best_mask()" type idea.
>
> Lots less code duplication.

Agreed, it's a templated construct and it belongs in one
spot.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/