[PATCH V2 3.2 2/2] b43: fix DMA on some bugged hardware

Rafał Miłecki zajec5 at gmail.com
Sun Aug 14 13:32:13 EDT 2011


W dniu 14 sierpnia 2011 19:10 użytkownik Michael Büsch <m at bues.ch> napisał:
> On Sun, 14 Aug 2011 19:39:41 +0200
> Rafał Miłecki <zajec5 at gmail.com> 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 at gmail.com>
>> ---
>> 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ł



More information about the b43-dev mailing list