W dniu 14 sierpnia 2011 19:10 użytkownik Michael Büsch <m@xxxxxxx> napisał: > On Sun, 14 Aug 2011 19:39:41 +0200 > Rafał Miłecki <zajec5@xxxxxxxxx> wrote: > >> Some hardware with 64-bit DMA uses lower address word for setting >> routing (translation) bit. Add workaround for such boards. >> >> Signed-off-by: Rafał Miłecki <zajec5@xxxxxxxxx> >> --- >> V2: use (u64) to fix compilation on 32-bit systems > > Note that there are the upper_32_bits() and lower_32_bits() > macros in kernel.h to address this problem. I should have guess there is already sth for that. Worth noting compiler trick in upper_32_bits. ((n) >> 16) >> 16 I didn't think of that :) -- Rafał -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html