On (07/19/15 22:25), Rasmus Villemoes wrote:
> 
> Wouldn't GENMASK(align_order-1, 0) work for all cases (assuming
> align_order has a sane value)?

Devices with limits on DMA masks are uncommon, so I'm personally
not an expert at all the variations in this space, but I was thinking
that this doing 

   align_mask = 0xffffffffffffffffull >> (64 - align_order); 

would be the compact answer for both 32 and 64 bit cases here? 

--Sowmini

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to