From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: [PATCH] Implement check_legacy_ioport() on PS3 From: David Woodhouse To: cbe-oss-dev@ozlabs.org Content-Type: text/plain Date: Fri, 30 Mar 2007 01:02:52 +0100 Message-Id: <1175212972.3122.87.camel@pmac.infradead.org> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , It doesn't like it when we poke at legacy I/O ports like the i8042. We should probably change the _default_ to return -ENODEV, and let any strange platform which wants to allow unfettered access provide its own function for that. Signed-off-by: David Woodhouse --- linux-2.6.20.ppc64/arch/powerpc/platforms/ps3/setup.c.orig 2007-03-30 00:45:59.000000000 +0100 +++ linux-2.6.20.ppc64/arch/powerpc/platforms/ps3/setup.c 2007-03-30 00:48:29.000000000 +0100 @@ -230,6 +230,11 @@ static void ps3_machine_kexec(struct kim } #endif +static int ps3_check_legacy_ioport(unsigned int baseport) +{ + return -ENODEV; +} + define_machine(ps3) { .name = "PS3", .probe = ps3_probe, @@ -240,6 +245,7 @@ define_machine(ps3) { .set_rtc_time = ps3_set_rtc_time, .get_rtc_time = ps3_get_rtc_time, .calibrate_decr = ps3_calibrate_decr, + .check_legacy_ioport = ps3_check_legacy_ioport, .progress = ps3_progress, .restart = ps3_restart, .power_off = ps3_power_off, -- dwmw2