提交 dfbc5cb3 编写于 作者: G Greg Ungerer

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: NAngelo Dureghello <angelo@sysam.it>
Signed-off-by: NGreg Ungerer <gerg@linux-m68k.org>
Reviewed-by: NAngelo Dureghello <angelo@sysam.it>
Tested-by: NAngelo Dureghello <angelo@sysam.it>
上级 927c28c2
/* SPDX-License-Identifier: GPL-2.0 */ /* SPDX-License-Identifier: GPL-2.0 */
#ifdef __uClinux__ #if defined(__uClinux__) || defined(CONFIG_COLDFIRE)
#include <asm/io_no.h> #include <asm/io_no.h>
#else #else
#include <asm/io_mm.h> #include <asm/io_mm.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册