Thread (70 messages) flat view 70 messages, 7 authors, 2011-08-31

Re: [PATCH 07/15] ps3flash: Refuse to work in lpars other than OtherOS

From: Andre Heider <hidden>
Date: 2011-08-04 16:40:36

On Thu, Aug 4, 2011 at 12:34 AM, Geoff Levand [off-list ref] wrote:
On 08/01/2011 01:02 PM, Andre Heider wrote:
quoted
The driver implements a character and misc device, meant for the
axed OtherOS to exchange various settings with GameOS.
Since Firmware 3.21 there is no GameOS support anymore to write these
settings, so limit the driver to the OtherOS environment.
This is really a test if running on the PS3 OtherOS, so this
comment should state that.
Ok.
quoted
Signed-off-by: Andre Heider <redacted>
---
=A0arch/powerpc/platforms/ps3/Kconfig | =A0 =A01 +
=A0drivers/char/ps3flash.c =A0 =A0 =A0 =A0 =A0 =A0| =A0 =A07 +++++++
=A02 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/platforms/ps3/Kconfig b/arch/powerpc/platforms=
/ps3/Kconfig
quoted
index 84df5c8..5eb956a 100644
--- a/arch/powerpc/platforms/ps3/Kconfig
+++ b/arch/powerpc/platforms/ps3/Kconfig
@@ -121,6 +121,7 @@ config PS3_FLASH
=A0 =A0 =A0 =A0 This support is required to access the PS3 FLASH ROM, wh=
ich
quoted
=A0 =A0 =A0 =A0 contains the boot loader and some boot options.
+ =A0 =A0 =A0 This driver only supports the deprecated OtherOS LPAR.
This will be confusing for OtherOS users, so should be removed.
Ok.
quoted
=A0 =A0 =A0 =A0 In general, all users will say Y or M.

This could be changed to: 'In general, all PS3 OtherOS users will say Y o=
r M.'

Yeah, you're right, that's much better
quoted
=A0 =A0 =A0 =A0 As this driver needs a fixed buffer of 256 KiB of memory=
, it can
quoted
diff --git a/drivers/char/ps3flash.c b/drivers/char/ps3flash.c
index 69c734a..b1e8659 100644
--- a/drivers/char/ps3flash.c
+++ b/drivers/char/ps3flash.c
@@ -25,6 +25,7 @@
=A0#include <asm/lv1call.h>
=A0#include <asm/ps3stor.h>
+#include <asm/firmware.h>


=A0#define DEVICE_NAME =A0 =A0 =A0 =A0 =A0"ps3flash"
@@ -455,6 +456,12 @@ static struct ps3_system_bus_driver ps3flash =3D {
=A0static int __init ps3flash_init(void)
=A0{
+ =A0 =A0 if (!firmware_has_feature(FW_FEATURE_PS3_LV1))
+ =A0 =A0 =A0 =A0 =A0 =A0 return -ENODEV;
Is this needed? =A0Won't this driver only be loaded on PS3 hardware?
The same code is in drivers/block/ps3disk.c, I wasn't sure if it is
missing here or redundant there.
Should I remove it here?
quoted
+
+ =A0 =A0 if (ps3_get_ss_laid() !=3D PS3_SS_LAID_OTHEROS)
+ =A0 =A0 =A0 =A0 =A0 =A0 return -ENODEV;
+
=A0 =A0 =A0 return ps3_system_bus_driver_register(&ps3flash);
=A0}
-Geoff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help