]> git.baikalelectronics.ru Git - kernel.git/commit
IXP4xx: Fix DMA masks.
authorKrzysztof Halasa <khc@pm.waw.pl>
Sun, 23 Mar 2014 00:36:48 +0000 (01:36 +0100)
committerArnd Bergmann <arnd@arndb.de>
Wed, 26 Mar 2014 22:08:11 +0000 (23:08 +0100)
commit2ea27073a66e687d72eab4823cb5d6ff58c21cb0
treec3a74ed0f4b674b25a5c7664735476b3ad0dcaf2
parent906e93060b709c2c521ff5aed7a80834ade1a08c
IXP4xx: Fix DMA masks.

Now, devices will have 32-bit default DMA masks (0xFFFFFFFF) as per DMA API.

Fixes:
$ ifconfig eth0 up
net eth0: coherent DMA mask is unset

$ ifconfig hdlc0 up
net hdlc0: coherent DMA mask is unset

Also fixes a cosmetic off-by-one bug which caused DMA transfers ending exactly
on the 64 MiB boundary to go through dmabounce unnecessarily.

Signed-off-by: Krzysztof HaƂasa <khc@pm.waw.pl>
Tested-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-ixp4xx/common-pci.c
arch/arm/mach-ixp4xx/common.c