1. 27 12月, 2015 1 次提交
    • P
      watchdog: Read device status through sysfs attributes · 33b71126
      Pratyush Anand 提交于
      This patch adds following attributes to watchdog device's sysfs interface
      to read its different status.
      
      * state - reads whether device is active or not
      * identity - reads Watchdog device's identity string.
      * timeout - reads current timeout.
      * timeleft - reads timeleft before watchdog generates a reset
      * bootstatus - reads status of the watchdog device at boot
      * status - reads watchdog device's  internal status bits
      * nowayout - reads whether nowayout feature was set or not
      
      Testing with iTCO_wdt:
       # cd /sys/class/watchdog/watchdog1/
       # ls
      bootstatus  dev  device  identity  nowayout  power  state
      subsystem  timeleft  timeout  uevent
       # cat identity
      iTCO_wdt
       # cat timeout
      30
       # cat state
      inactive
       # echo > /dev/watchdog1
       # cat timeleft
      26
       # cat state
      active
       # cat bootstatus
      0
       # cat nowayout
      0
      Signed-off-by: NPratyush Anand <panand@redhat.com>
      Reviewed-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
      33b71126
  2. 23 11月, 2015 1 次提交
  3. 27 10月, 2015 1 次提交
  4. 28 9月, 2015 1 次提交
    • G
      watchdog: iTCO: Fix dependencies on I2C · 3cef072d
      Guenter Roeck 提交于
      If I2C is built as module, the iTCO watchdog driver must be built as module
      as well. I2C_I801 must only be selected if I2C is configured.
      
      This fixes the following build errors, seen if I2C=m and ITCO_WDT=y.
      
      i2c-i801.c:(.text+0x2bf055): undefined reference to `i2c_del_adapter'
      i2c-i801.c:(.text+0x2c13e0): undefined reference to `i2c_add_adapter'
      i2c-i801.c:(.text+0x2c17bd): undefined reference to `i2c_new_device'
      
      Fixes: 2a7a0e9b ("watchdog: iTCO_wdt: Add support for TCO on Intel Sunrisepoint")
      Reviewed-by: NMatt Fleming <matt.fleming@intel.com>
      Cc: Lee Jones <lee.jones@linaro.org>
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NWim Van Sebroeck <wim@iguana.be>
      3cef072d
  5. 10 9月, 2015 3 次提交
  6. 11 8月, 2015 1 次提交
  7. 29 6月, 2015 1 次提交
  8. 22 6月, 2015 6 次提交
  9. 30 4月, 2015 1 次提交
  10. 22 4月, 2015 2 次提交
  11. 17 3月, 2015 1 次提交
  12. 18 2月, 2015 4 次提交
  13. 26 11月, 2014 1 次提交
  14. 21 10月, 2014 6 次提交
  15. 24 9月, 2014 1 次提交
  16. 09 9月, 2014 1 次提交
  17. 22 7月, 2014 1 次提交
  18. 11 6月, 2014 6 次提交
  19. 10 6月, 2014 1 次提交