Commit d52771fc authored by David Woodhouse's avatar David Woodhouse Committed by Paul Mackerras

[PATCH] powerpc/cell: disable legacy i/o area

We currently crash in the fedora installer because the keyboard
driver tries to access I/O space that is not there on our hardware.

This uses the same solution as powermac by just marking all
legacy i/o as invalid.
Signed-off-by: default avatarArnd Bergmann <arndb@de.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 49d65b3a
...@@ -201,6 +201,15 @@ static int __init cell_probe(int platform) ...@@ -201,6 +201,15 @@ static int __init cell_probe(int platform)
return 1; return 1;
} }
/*
* Cell has no legacy IO; anything calling this function has to
* fail or bad things will happen
*/
static int cell_check_legacy_ioport(unsigned int baseport)
{
return -ENODEV;
}
struct machdep_calls __initdata cell_md = { struct machdep_calls __initdata cell_md = {
.probe = cell_probe, .probe = cell_probe,
.setup_arch = cell_setup_arch, .setup_arch = cell_setup_arch,
...@@ -213,6 +222,7 @@ struct machdep_calls __initdata cell_md = { ...@@ -213,6 +222,7 @@ struct machdep_calls __initdata cell_md = {
.get_rtc_time = rtas_get_rtc_time, .get_rtc_time = rtas_get_rtc_time,
.set_rtc_time = rtas_set_rtc_time, .set_rtc_time = rtas_set_rtc_time,
.calibrate_decr = generic_calibrate_decr, .calibrate_decr = generic_calibrate_decr,
.check_legacy_ioport = cell_check_legacy_ioport,
.progress = cell_progress, .progress = cell_progress,
#ifdef CONFIG_KEXEC #ifdef CONFIG_KEXEC
.machine_kexec = default_machine_kexec, .machine_kexec = default_machine_kexec,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment