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)
commit00e1b3a3d196ae876370633b32007bf98584e748
treec3a74ed0f4b674b25a5c7664735476b3ad0dcaf2
parent53ad835ce7050dc3a3b3343fb07636db86783e26
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