]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: use io_no.h for MMU and non-MMU enabled ColdFire
authorGreg Ungerer <gerg@linux-m68k.org>
Sun, 25 Mar 2018 12:37:11 +0000 (22:37 +1000)
committerGreg Ungerer <gerg@linux-m68k.org>
Sun, 27 May 2018 23:45:26 +0000 (09:45 +1000)
commit67a75cf70d01fce6488b78147375be608dc3defd
treeadffb23aba9736140fc2b4ee72f8e89338cffa04
parentd86f047fa65570d1ce50f673ac70ac546bcc43ba
m68k: use io_no.h for MMU and non-MMU enabled ColdFire

Use the io_no.h IO access support for all ColdFire systems, no matter
whether configured with MMU enabled or disabled. Previously there was
subtle differences in IO access functions used in both cases, and these
resulted in broken behavior for some drivers.

As observed and reported by Angelo when using MMU enabled systems the
read/write family of functions was using little endian access, while the
non-MMU enabled systems were using native endian. This results in drivers
that are shared across Freescale processors (for some of the common
internal SoC peripherals) not working - since they are wired up for native
endian access.

This problem brings to light issues with PCI bus access and local
peripheral access - but these are not addressed with this fix.

Reported-by: Angelo Dureghello <angelo@sysam.it>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Reviewed-by: Angelo Dureghello <angelo@sysam.it>
Tested-by: Angelo Dureghello <angelo@sysam.it>
arch/m68k/include/asm/io.h