1. 17 9月, 2015 1 次提交
  2. 28 8月, 2015 2 次提交
    • S
      leds: leds-ns2: handle can_sleep GPIOs · 4b90432d
      Simon Guinot 提交于
      On the board n090401 (Seagate NAS 4-Bay), some of the LEDs are handled
      by the leds-ns2 driver. This LEDs are connected to an I2C GPIO expander
      (PCA95554PW) which means that GPIO access may sleep. This patch makes
      leds-ns2 compatible with such GPIOs by using the *_cansleep() variant of
      the GPIO functions. As a drawback this functions can't be used safely in
      a timer context (with the timer LED trigger for example). To fix this
      issue, a workqueue mechanism (copied from the leds-gpio driver) is used.
      
      Note that this patch also updates slightly the ns2_led_sata_store
      function. The LED state is now retrieved from cached values instead of
      reading the GPIOs previously. This prevents ns2_led_sata_store from
      working with a stale LED state (which may happen when a delayed work
      is pending).
      Signed-off-by: NSimon Guinot <simon.guinot@sequanux.org>
      Signed-off-by: NVincent Donnefort <vdonnefort@gmail.com>
      Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      4b90432d
    • V
      leds: leds-ns2: move LED modes mapping outside of the driver · f7fafd08
      Vincent Donnefort 提交于
      On the board n090401 (Seagate NAS 4-Bay), the LED mode mapping (GPIO
      values to LED mode) is different from the one used on other boards
      supported by the leds-ns2 driver.
      
      With this patch the hardcoded mapping is removed from leds-ns2. Now,
      it must be defined either in the platform data (if an old-fashion board
      setup file is used) or in the DT node. In order to allow the later, this
      patch also introduces a modes-map property for the leds-ns2 DT binding.
      Signed-off-by: NVincent Donnefort <vdonnefort@gmail.com>
      Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      f7fafd08
  3. 20 10月, 2014 1 次提交
  4. 26 6月, 2014 1 次提交
  5. 28 2月, 2014 1 次提交
  6. 23 10月, 2013 1 次提交
  7. 27 8月, 2013 1 次提交
  8. 21 6月, 2013 1 次提交
  9. 02 4月, 2013 2 次提交
  10. 29 11月, 2012 3 次提交
  11. 28 11月, 2012 1 次提交
  12. 27 11月, 2012 2 次提交
  13. 22 11月, 2012 1 次提交
  14. 19 9月, 2012 1 次提交
  15. 24 7月, 2012 1 次提交
  16. 11 5月, 2012 1 次提交
  17. 11 1月, 2012 1 次提交
  18. 01 11月, 2011 1 次提交
  19. 08 10月, 2010 1 次提交
  20. 20 9月, 2010 1 次提交
  21. 17 7月, 2010 1 次提交