[PATCH RFC 2/2] m68k: setup_mm.c: set isa_sex for Atari if ATARI_ROM_ISA not used

Michael Schmitz
2021-06-02T05:21:19Z

For multiplatform kernels where CONFIG_ATARI_ROM_ISA is not set,
at least isa_sex must be set correctly to allow for correct I/O
primitive selection in shared drivers.

Signed-off-by: Michael Schmitz <schmitzmic@gmail.com>
---
arch/m68k/kernel/setup_mm.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/arch/m68k/kernel/setup_mm.c b/arch/m68k/kernel/setup_mm.c
index 017bac3..bb43b99 100644
--- a/arch/m68k/kernel/setup_mm.c
+++ b/arch/m68k/kernel/setup_mm.c
@@ -386,6 +386,10 @@ void __init setup_arch(char **cmdline_p)
isa_type = ISA_TYPE_ENEC;
isa_sex = 0;
}
+#else
+ if (MACH_IS_ATARI) {
+ isa_sex = 0;
+ }
#endif
#endif
}
--
2.7.4