1. 24 9月, 2016 1 次提交
    • M
      ACPI / watchdog: Add support for WDAT hardware watchdog · 058dfc76
      Mika Westerberg 提交于
      Starting from Intel Skylake the iTCO watchdog timer registers were moved to
      reside in the same register space with SMBus host controller.  Not all
      needed registers are available though and we need to unhide P2SB (Primary
      to Sideband) device briefly to be able to read status of required NO_REBOOT
      bit. The i2c-i801.c SMBus driver used to handle this and creation of the
      iTCO watchdog platform device.
      
      Windows, on the other hand, does not use the iTCO watchdog hardware
      directly even if it is available. Instead it relies on ACPI Watchdog Action
      Table (WDAT) table to describe the watchdog hardware to the OS. This table
      contains necessary information about the the hardware and also set of
      actions which are executed by a driver as needed.
      
      This patch implements a new watchdog driver that takes advantage of the
      ACPI WDAT table. We split the functionality into two parts: first part
      enumerates the WDAT table and if found, populates resources and creates
      platform device for the actual driver. The second part is the driver
      itself.
      
      The reason for the split is that this way we can make the driver itself to
      be a module and loaded automatically if the WDAT table is found. Otherwise
      the module is not loaded.
      Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Reviewed-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      058dfc76
  2. 18 7月, 2016 4 次提交
  3. 18 6月, 2016 1 次提交
  4. 15 5月, 2016 1 次提交
  5. 13 5月, 2016 2 次提交
  6. 03 5月, 2016 1 次提交
  7. 17 3月, 2016 2 次提交
  8. 01 3月, 2016 6 次提交
  9. 07 2月, 2016 1 次提交
  10. 01 2月, 2016 1 次提交
  11. 31 1月, 2016 3 次提交
  12. 10 1月, 2016 1 次提交
  13. 29 12月, 2015 5 次提交
  14. 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
  15. 23 11月, 2015 1 次提交
  16. 27 10月, 2015 1 次提交
  17. 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
  18. 10 9月, 2015 3 次提交
  19. 11 8月, 2015 1 次提交
  20. 29 6月, 2015 1 次提交
  21. 22 6月, 2015 2 次提交