omap3-n900.dts: Rename model name to "Nokia RX-51 board"
PATCH 1/1 omap3-n900.dts: Rename model name to "Nokia RX-51 board"
Use same name as in legacy board code. There are lot of userspace applications which using machine/model name for determinating device type. And changing this name will break all of them. Due to small features support in DT code only non DT kernel was used for Nokia N900 until now.
--- arch/arm/boot/dts/omap3-n900.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/omap3-n900.dts +1 -1
@@ -13,7 +13,7 @@ #include <dt-bindings/input/input.h> / { - model = "Nokia N900"; + model = "Nokia RX-51 board"; compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3"; aliases {
Signature · 1 line
1.7.9.5
Quoted 2 lines · Pali Roh?r
Use same name as in legacy board code. There are lot of userspace applications which using machine/model name for determinating device type.
Can you clarify this? Nokia kernel or userspace never had DT, so they cannot see e.g. /proc/device-tree/model. What other APIs expose model?
A.
Quoted 10 lines · On Wednesday 18 June 2014 22:12:41 Aaro Koskinen wrote:
Quoted 3 lines · Pali Roh?r
Use same name as in legacy board code. There are lot of userspace applications which using machine/model name for determinating device type.
Can you clarify this? Nokia kernel or userspace never had DT, so they cannot see e.g.
/proc/device-tree/model. What other APIs expose model?A.
Hi Aaro,
look at email discussion about my previous patch with subject:
[PATCH] ARM: /proc/cpuinfo: Use DT machine name when possible
Basically that patch export model name in Hardware /proc/cpuinfo instead generic DT name. And this patch change name to what legacy board code reported.
Signature · 9 lines
Pali Roh?r pali.rohar at gmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140618/2d166566/attachment.sig>
Hi,
Quoted 6 lines · Pali Roh?r
Quoted 5 lines · On Wednesday 18 June 2014 22:12:41 Aaro Koskinen wrote:
Quoted 3 lines · Pali Roh?r
Use same name as in legacy board code. There are lot of userspace applications which using machine/model name for determinating device type.
Quoted 7 lines
Quoted 3 lines
Can you clarify this? Nokia kernel or userspace never had DT, so they cannot see e.g.
/proc/device-tree/model. What other APIs expose model?Basically that patch export model name in Hardware
/proc/cpuinfoinstead generic DT name. And this patch change name to what legacy board code reported.
I don't like the idea of changing the model name from Nokia marketing names to those cryptic internal names in DT files. There also may be already some userspace relying to find current model name from /proc/device-tree/model (e.g. I think my own OS would break).
A.