linux-yocto/arch/m68k
Finn Thain 1b6780143d m68k: mac: Fix macintosh_config for Mac II
[ Upstream commit 52ae3f5da7 ]

When booted on my Mac II, the kernel prints this:

    Detected Macintosh model: 6
    Apple Macintosh Unknown

The catch-all entry ("Unknown") is mac_data_table[0] which is only needed
in the unlikely event that the bootinfo model ID can't be matched.
When model ID is 6, the search should begin and end at mac_data_table[1].
Fix the off-by-one error that causes this problem.

Cc: Joshua Thompson <funaho@jurai.org>
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Finn Thain <fthain@linux-m68k.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/d0f30a551064ca4810b1c48d5a90954be80634a9.1745453246.git.fthain@linux-m68k.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-27 11:05:11 +01:00
..
68000 m68k: Check syscall_trace_enter() return code 2023-03-10 09:39:49 +01:00
amiga m68k: amiga: Turn off Warp1260 interrupts during boot 2024-08-19 05:45:13 +02:00
apollo
atari m68k: atari: Fix TT bootup freeze / unexpected (SCU) interrupt messages 2024-08-19 05:44:54 +02:00
bvme6000
coldfire m68k: coldfire/device.c: only build FEC when HW macros are defined 2024-12-14 19:51:06 +01:00
configs for-5.15/block-2021-08-30 2021-08-30 18:52:11 -07:00
emu TTY / Serial patches for 5.15-rc1 2021-09-01 09:51:16 -07:00
fpsp040 m68k: Fix invalid .section syntax 2023-09-19 12:22:27 +02:00
hp300
ifpsp060 m68k: Fix invalid .section syntax 2023-09-19 12:22:27 +02:00
include m68k: vga: Fix I/O defines 2025-03-13 12:50:23 +01:00
kernel m68k: mvme147: Reinstate early console 2024-12-14 19:50:43 +01:00
lib
mac m68k: mac: Fix macintosh_config for Mac II 2025-06-27 11:05:11 +01:00
math-emu
mm memblock: allow to specify flags with memblock_add_node() 2023-12-20 15:17:33 +01:00
mvme16x m68k: mvme16x: Add and use "mvme16x.h" 2024-12-14 19:50:43 +01:00
mvme147 m68k: mvme147: Reinstate early console 2024-12-14 19:50:43 +01:00
q40
sun3 m68k: Remove set_fs() 2021-09-24 13:35:07 +02:00
sun3x m68k: Remove set_fs() 2021-09-24 13:35:07 +02:00
tools/amiga
install.sh
Kbuild
Kconfig m68k/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:58:30 +02:00
Kconfig.bus m68knommu: only set CONFIG_ISA_DMA_API for ColdFire sub-arch 2021-08-23 08:40:05 +10:00
Kconfig.cpu m68k: math-emu: Fix dependencies of math emulation support 2022-06-09 10:22:59 +02:00
Kconfig.debug
Kconfig.devices m68k: /proc/hardware should depend on PROC_FS 2023-03-10 09:39:16 +01:00
Kconfig.machine m68knommu: fix undefined reference to `_init_sp' 2022-06-14 18:36:15 +02:00
Makefile Kbuild updates for v5.14 2021-07-10 11:01:38 -07:00