Search Linux Wireless

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux