linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Implement check_legacy_ioport() on PS3
@ 2007-03-30  0:02 David Woodhouse
  2007-03-30  1:45 ` Olof Johansson
  2007-04-06 21:32 ` Geoff Levand
  0 siblings, 2 replies; 9+ messages in thread
From: David Woodhouse @ 2007-03-30  0:02 UTC (permalink / raw)
  To: cbe-oss-dev; +Cc: linuxppc-dev

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 <dwmw2@infradead.org>

--- 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-04-06 21:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-30  0:02 [PATCH] Implement check_legacy_ioport() on PS3 David Woodhouse
2007-03-30  1:45 ` Olof Johansson
2007-03-30  1:43   ` David Woodhouse
2007-03-30  1:43   ` [Cbe-oss-dev] " Michael Ellerman
2007-03-30  1:47     ` Benjamin Herrenschmidt
2007-03-30  1:49     ` David Woodhouse
2007-03-30  1:45   ` Benjamin Herrenschmidt
2007-03-30 13:44     ` Segher Boessenkool
2007-04-06 21:32 ` Geoff Levand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).