]> git.baikalelectronics.ru Git - kernel.git/commit
Blackfin: no-mpu: fix masking of small uncached dma region
authorSonic Zhang <sonic.zhang@analog.com>
Thu, 4 Nov 2010 08:01:37 +0000 (08:01 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 10 Jan 2011 12:18:18 +0000 (07:18 -0500)
commitbdc0fc63f026b57c86f1d1f4309712e5a9c2c8f5
treea659f8f7bf7266b848e0c103ee8956317f0a0820
parent760e4c86376a4aaf35fb081db185108de8eb892e
Blackfin: no-mpu: fix masking of small uncached dma region

When using an uncached DMA region less than 1 MiB, we try to mask off
the whole last 1 MiB for it.  Unfortunately, this fails as we forgot
to subtract one from the calculated mask, leading to the region still
be marked as cacheable.

Reported-by: Andrew Rook <andrew.rook@speakerbus.co.uk>
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/cplb-nompu/cplbinit.c