Shopping Cart | 中文网站
 
 
Overview
Online Support
FAQ
  Atmel Boards  (37) TOP10
  MYD-SAM9X5 (9)
  MYS-SAM9X5 (2)
  MYS-SAM9G45 (1)
  MYD-SAMA5D3X (14)
  MYD-SAM9X5-V2 (2)
  MYC-SAM9X5 (4)
  MYC-SAM9X5-V2 (1)
  MYC-SAMA5D3X (1)
  MYD-JA5D4X (3)
  NXP Boards  (6) TOP10
  MYD-LPC435X (2)
  MYD-LPC185X (1)
  MYD-LPC1788 (0)
  MYS-6ULX (3)
  Samsung Boards  (0) TOP10
  TI Boards  (21) TOP10
  MYD-AM335X (9)
  MYC-AM335X (1)
  Rico Board (6)
  MYD-C437X-PRU (5)
  Other  (3) TOP10
  MY-WF003U (1)
  Freescale Boards  (2) TOP10
  MYD-IMX28X (2)
  Xilinx Boards  (25) TOP10
  Z-turn Board (10)
  MYD-C7Z010/20 (7)
  MYD-C7Z015 (7)
 
  Home >  Support > TI Boards > MYD-AM335X
 
map_hwmod: wd_timer2: __wait_target_disable failed
 
Question
When using the watchdog on MYD-AM335X board, there will appear below error information: map_hwmod: wd_timer2: __wait_target_disable failed It doesn't affect the using of watchdog, but it will appear always, how to remove this information?
Answer

We can remove this information through modifying linux-3.2/arch/arm/mach-omap2/omap_hwmod.c

--- linux/arch/arm/mach-omap2/omap_hwmod.c.orig    2012-06-12 16:13:11.166367276 +0200
+++ linux/arch/arm/mach-omap2/omap_hwmod.c    2012-06-12 16:15:56.319482962 +0200
@@ -781,6 +781,8 @@
                          oh->prcm.omap4.clkctrl_offs);
 }
  
+#define WD_FILTER    "wd_timer2"
+
 /**
  * _omap4_disable_module - enable CLKCTRL modulemode on OMAP4
  * @oh: struct omap_hwmod *
@@ -807,10 +809,10 @@
             oh->prcm.omap4.clkctrl_offs);
  
     v = _omap4_wait_target_disable(oh);
-    if (v)
-        pr_warn("omap_hwmod: %s: _wait_target_disable failed\n",
-                oh->name);
-
+    if (v) {
+        if (strcmp(oh->name, WD_FILTER))
+            pr_warn("omap_hwmod: %s: _wait_target_disable failed\n", oh->name);
+    }
     return 0;
 }



 

Room 04, 6th Floor, Building No.2, Fada Road, Yunli Smart Park, Bantian, Longgang District, Shenzhen, Guangdong, China 518129
E-mail: sales@myirtech.com or myirtech@yahoo.com  Phone: +86-755-22984836  Fax: +86-755-25532724
Copyright © MYIR Tech Limited 2011-2017 all rights reserved.