ARM: OMAP2+: devices: Silence hwmod lookup failures (dmic/mcpdm)
Subsystems (3)
cover ARM: OMAP2+: devices: Silence hwmod lookup failures (dmic/mcpdm)
Hi,
Small patches to silence the hwmod lookup failures in case when we boot the kernel on boards where the IPs are not present (OMAP2/3 vs McPDM, DMIC, HDMI audio).
Regards,
Peter
---
Peter Ujfalusi (3):
ARM: OMAP2+: devices: Do not print error when McPDM hwmod lookup fails
ARM: OMAP2+: devices: Do not print error when DMIC hwmod lookup fails
ARM: OMAP2+: devices: Do not print error when dss_hdmi hwmod lookup
fails
arch/arm/mach-omap2/devices.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-)
Signature · 1 line
1.8.2.1
PATCH 1/3 ARM: OMAP2+: devices: Do not print error when McPDM hwmod lookup fails
It means that the SoC does not have McPDM IP.
--- arch/arm/mach-omap2/devices.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm/mach-omap2/devices.c +1 -3
@@ -374,10 +374,8 @@ static void __init omap_init_mcpdm(void)struct platform_device *pdev; oh =omap_hwmod_lookup ("mcpdm" ); -if (!oh) { -printk (KERN_ERR "Could not look up mcpdm hw_mod\n" ); +if (!oh)return ; - } pdev =omap_device_build ("omap-mcpdm" ,-1 , oh,NULL ,0 );WARN (IS_ERR (pdev),"Can't build omap_device for omap-mcpdm.\n" );
Signature · 1 line
1.8.2.1
PATCH 2/3 ARM: OMAP2+: devices: Do not print error when DMIC hwmod lookup fails
In reply to Peter UjfalusiIt means that the SoC does not have DMIC IP
.
--- arch/arm/mach-omap2/devices.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm/mach-omap2/devices.c +1 -3
@@ -393,10 +393,8 @@ static void __init omap_init_dmic(void)struct platform_device *pdev; oh =omap_hwmod_lookup ("dmic" ); -if (!oh) { -pr_err ("Could not look up dmic hw_mod\n" ); +if (!oh)return ; - } pdev =omap_device_build ("omap-dmic" ,-1 , oh,NULL ,0 );WARN (IS_ERR (pdev),"Can't build omap_device for omap-dmic.\n" );
Signature · 1 line
1.8.2.1
PATCH 3/3 ARM: OMAP2+: devices: Do not print error when dss_hdmi hwmod lookup fails
In reply to Peter UjfalusiThe dss_hdmi hwmod is used to create the HDMI audio device for OMAP4+ When we boot the kernel we can silently ignore the failure since the IP does not exist on them.
--- arch/arm/mach-omap2/devices.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm/mach-omap2/devices.c +1 -3
@@ -417,10 +417,8 @@ static void __init omap_init_hdmi_audio(void)struct platform_device *pdev; oh =omap_hwmod_lookup ("dss_hdmi" ); -if (!oh) { -printk (KERN_ERR "Could not look up dss_hdmi hw_mod\n" ); +if (!oh)return ; - } pdev =omap_device_build ("omap-hdmi-audio-dai" ,-1 , oh,NULL ,0 ); WARN(IS_ERR(pdev),
Signature · 1 line
1.8.2.1
Tony Lindgren
maintainercover ARM: OMAP2+: devices: Silence hwmod lookup failures (dmic/mcpdm)
In reply to Peter UjfalusiQuoted 5 lines · Peter Ujfalusi
Hi,
Small patches to silence the hwmod lookup failures in case when we boot the kernel on boards where the IPs are not present (OMAP2/3 vs McPDM, DMIC, HDMI audio).
Thanks applying into omap-for-v3.11/fixes-non-critical.
Regards,
Tony
Quoted 12 lines
Peter Ujfalusi (3):
ARM: OMAP2+: devices: Do not print error when McPDM hwmod lookup fails
ARM: OMAP2+: devices: Do not print error when DMIC hwmod lookup fails
ARM: OMAP2+: devices: Do not print error whendss_hdmihwmod lookup
failsarch/arm/mach-omap2/devices.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-)Signature · 1 line
1.8.2.1