Skip to contentSkip to conversation

ARM: OMAP2+: Fix socbus family info for AM33xx devices

PATCH New Suman Anna 2 participants 2 messages Mar 11, 2015 – Mar 16, 2015

Subsystems (3)
lore
Share & tools
lore

Suman Anna

author
#0 lore raw

PATCH 1/1 ARM: OMAP2+: Fix socbus family info for AM33xx devices

The family information in the soc-bus data is currently not classified properly for AM33xx devices, and a read of /sys/bus/soc/devices/soc0/family currently shows "Unknown". Fix the same.

---
 arch/arm/mach-omap2/id.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-omap2/id.c +2 -0
index 2a2f4d56e4c8..25f1beea453e 100644
@@ -720,6 +720,8 @@ static const char * __init omap_get_family(void)
 		return kasprintf(GFP_KERNEL, "OMAP4");
 	else if (soc_is_omap54xx())
 		return kasprintf(GFP_KERNEL, "OMAP5");
+	else if (soc_is_am33xx() || soc_is_am335x())
+		return kasprintf(GFP_KERNEL, "AM33xx");
 	else if (soc_is_am43xx())
 		return kasprintf(GFP_KERNEL, "AM43xx");
 	else if (soc_is_dra7xx())
Signature · 1 line
2.3.0
maintainer
#1 lore raw

PATCH 1/1 ARM: OMAP2+: Fix socbus family info for AM33xx devices

Quoted 6 lines · Suman Anna

The family information in the soc-bus data is currently not classified properly for AM33xx devices, and a read of /sys/bus/soc/devices/soc0/family currently shows "Unknown". Fix the same.

Thanks applying into omap-for-v4.0/fixes.

Tony

Quoted 20 lines
---
 arch/arm/mach-omap2/id.c | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/mach-omap2/id.c +2 -0
index 2a2f4d56e4c8..25f1beea453e 100644
@@ -720,6 +720,8 @@ static const char * __init omap_get_family(void)
 		return kasprintf(GFP_KERNEL, "OMAP4");
 	else if (soc_is_omap54xx())
 		return kasprintf(GFP_KERNEL, "OMAP5");
+	else if (soc_is_am33xx() || soc_is_am335x())
+		return kasprintf(GFP_KERNEL, "AM33xx");
 	else if (soc_is_am43xx())
 		return kasprintf(GFP_KERNEL, "AM43xx");
 	else if (soc_is_dra7xx())
Signature · 1 line
2.3.0