Overview
Online Support
FAQ
  Atmel Series  (29) TOP10
  MYS-SAM9X5 (3)
  MYS-SAM9G45 (1)
  MYD-SAM9X5 (7)
  MYD-SAM9X5-V2 (2)
  MYD-JA5D2X (0)
  MYD-SAMA5D3X (11)
  MYD-SAMA5D3X-C (0)
  MYD-JA5D4X (0)
  MYC-SAM9X5 (4)
  MYC-SAM9X5-V2 (1)
  MYC-JA5D2X (0)
  MYC-SAMA5D3X (0)
  MCC-SAMA5D3X-C (0)
  MYC-JA5D4X (0)
  NXP Series  (23) TOP10
  MYS-6ULX (4)
  MYD-Y6ULX (3)
  MYD-Y6ULX-HMI (1)
  MYD-IMX28X (2)
  MYD-LPC435X (2)
  MYD-LPC185X (1)
  MYD-LPC1788 (0)
  MYC-Y6ULX (4)
  MYC-IMX28X (0)
  i.MX 6UL/6ULL (6)
  TI Series  (24) TOP10
  MYD-AM335X (12)
  MYD-AM335X-Y (0)
  MYD-AM335X-J (0)
  MYD-C437X (0)
  MYD-C437X-PRU (5)
  Rico Board (6)
  MYC-AM335X (1)
  MCC-AM335X-Y (0)
  MCC-AM335X-J (0)
  MYC-C437X (0)
  Xilinx Series  (20) TOP10
  Z-turn Board (9)
  Z-turn Lite (2)
  MYD-C7Z010/20 (0)
  MYD-C7Z015 (7)
  MYD-Y7Z010/007S (0)
  MYC-C7Z010/20 (0)
  MYC-C7Z015 (0)
  MYC-Y7Z010/007S (0)
  HMI Solutions  (0) TOP10
  MYD-Y6ULX-CHMI (0)
  MY-EVC5100S-HMI (0)
  Others  (1) TOP10
  MY-WF003U (1)
 
  Home >  Support > TI Series > 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;
 }