linux-yocto/arch/m68k
Finn Thain 7ccf0c4070 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-19 15:31:36 +02:00
..
68000 m68knommu: updates and fixes for v6.7 2023-11-02 15:31:01 -10:00
amiga m68k: amiga: Turn off Warp1260 interrupts during boot 2024-06-04 08:59:58 +02:00
apollo
atari m68k: atari: Fix TT bootup freeze / unexpected (SCU) interrupt messages 2024-07-01 14:23:05 +02:00
bvme6000
coldfire m68k: coldfire/device.c: only build FEC when HW macros are defined 2024-12-05 14:02:24 +01:00
configs m68k: defconfig: Update defconfigs for v6.11-rc1 2024-08-26 10:25:02 +02:00
emu m68k updates for v6.11 2024-07-16 11:30:32 -07:00
fpsp040
hp300 serial: 8250: Move hp300_setup_serial_console() to <linux/serial_8250.h> 2024-01-27 19:01:39 -08:00
ifpsp060
include m68k: vga: Fix I/O defines 2025-02-17 10:05:04 +01:00
kernel m68k: mvme147: Reinstate early console 2024-12-05 14:01:13 +01:00
lib
mac m68k: mac: Fix macintosh_config for Mac II 2025-06-19 15:31:36 +02:00
math-emu
mm m68knommu: updates and fixes for v6.7 2023-11-02 15:31:01 -10:00
mvme16x
mvme147 m68k: mvme147: Reinstate early console 2024-12-05 14:01:13 +01:00
q40 treewide: Fix wrong singular form of jiffies in comments 2024-09-08 20:47:40 +02:00
sun3
sun3x
tools/amiga
virt
install.sh kbuild: Abort make on install failures 2024-07-20 13:34:54 +09:00
Kbuild
Kconfig m68k: Move ARCH_HAS_CPU_CACHE_ALIASING 2024-05-08 17:43:22 +02:00
Kconfig.bus
Kconfig.cpu arch: define CONFIG_PAGE_SIZE_*KB on all architectures 2024-03-06 19:29:09 +01:00
Kconfig.debug
Kconfig.devices
Kconfig.machine
Makefile kbuild: use 4-space indentation when followed by conditionals 2024-02-15 06:05:44 +09:00