Re: [PATCH 2/3] openfirmware: adds sysfs nodes for openfirmware devices

From: Segher Boessenkool
Date: Mon Mar 14 2005 - 08:56:52 EST

Sorry to follow up this late...

Is whitespace (in any form) allowed in the compatible value?

No. Only printable characters are allowed, that is, byte values
0x21..0x7e and 0xa1..0xfe; each text string is terminated by a
0x00; there can be several text strings concatenated in one
"compatible" property.

Yes, whitespace is used at least in the toplevel compatible file, like
'Power Macintosh' in some Pismo models.

So those OF implementations violate the OF specification.

Oh well, it was wishful thinking anyway. ;)

I see two potential solutions:
* Ideally, I'd like to find a character (pipe?) that isn't used in the
Apple OF compatible property. I've been unable to find any
documentation that specifies to this level of detail. (Well, without
paying for the IEEE-1275 reference, and it may not even be there.)

See 2.3.75 and in the OF spec.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at