Ticket #2143: ar7-wdt-kick-debug.patch

File ar7-wdt-kick-debug.patch, 751 bytes (added by Axel Gembe, 11 years ago)

watchdog kicker debug

  • target/linux/ar7-2.6/files/drivers/char/watchdog/ar7_wdt.c

     
    9595static void ar7_wdt_kick(u32 value) 
    9696{ 
    9797        ar7_wdt->kick_lock = 0x5555; 
     98    printk(KERN_INFO DRVNAME ": set kick_lock to 0x5555\n"); 
    9899        if ((ar7_wdt->kick_lock & 3) == 1) { 
    99100                ar7_wdt->kick_lock = 0xAAAA; 
     101        printk(KERN_INFO DRVNAME ": set kick_lock to 0xAAAA\n"); 
    100102                if ((ar7_wdt->kick_lock & 3) == 3) { 
    101103                        ar7_wdt->kick = value; 
     104            printk(KERN_INFO DRVNAME ": kicked watchdog!\n"); 
    102105                        return; 
    103106                } 
    104107        }