1. 20 4月, 2017 1 次提交
  2. 25 2月, 2017 1 次提交
    • H
      leds: class: Add new optional brightness_hw_changed attribute · b8c5099b
      Hans de Goede 提交于
      Some LEDs may have their brightness level changed autonomously
      (outside of kernel control) by hardware / firmware. This commit
      adds support for an optional brightness_hw_changed attribute to
      signal such changes to userspace (if a driver can detect them):
      
      What:		/sys/class/leds/<led>/brightness_hw_changed
      Date:		January 2017
      KernelVersion:	4.11
      Description:
      		Last hardware set brightness level for this LED. Some LEDs
      		may be changed autonomously by hardware/firmware. Only LEDs
      		where this happens and the driver can detect this, will
      		have this file.
      
      		This file supports poll() to detect when the hardware
      		changes the brightness.
      
      		Reading this file will return the last brightness level set
      		by the hardware, this may be different from the current
      		brightness.
      
      Drivers which want to support this, simply add LED_BRIGHT_HW_CHANGED to
      their flags field and call led_classdev_notify_brightness_hw_changed()
      with the hardware set brightness when they detect a hardware / firmware
      triggered brightness change.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      Signed-off-by: NJacek Anaszewski <jacek.anaszewski@gmail.com>
      b8c5099b
  3. 23 2月, 2017 1 次提交
  4. 15 2月, 2017 1 次提交
  5. 01 2月, 2017 1 次提交
  6. 31 1月, 2017 1 次提交
  7. 30 1月, 2017 2 次提交
    • S
      [media] rc: change wakeup_protocols to list all protocol variants · 0751d33c
      Sean Young 提交于
      For IR wakeup, a driver has to program the hardware to wakeup at a
      specific IR sequence, so it makes no sense to allow multiple wakeup
      protocols to be selected. In the same manner the sysfs interface only
      allows one scancode to be provided.
      
      In addition, we need to know the specific variant of the protocol.
      
      In short, these changes are made to the wakeup_protocols sysfs entry:
       - list all the protocol variants rather than the protocol groups,
         e.g. "nec nec-x nec-32" rather than just "nec".
       - only allow one protocol variant to be selected rather than multiple
       - wakeup_filter can only be set once a protocol has been selected in
         wakeup_protocols.
      
      This is an API change, however the only user of this API is the img-ir,
      but the wakeup code was never merged to mainline, so it was never used.
      Signed-off-by: NSean Young <sean@mess.org>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Sifan Naeem <sifan.naeem@imgtec.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      0751d33c
    • H
      leds: class: Add new optional brightness_hw_changed attribute · 0cb8eb30
      Hans de Goede 提交于
      Some LEDs may have their brightness level changed autonomously
      (outside of kernel control) by hardware / firmware. This commit
      adds support for an optional brightness_hw_changed attribute to
      signal such changes to userspace (if a driver can detect them):
      
      What:		/sys/class/leds/<led>/brightness_hw_changed
      Date:		January 2017
      KernelVersion:	4.11
      Description:
      		Last hardware set brightness level for this LED. Some LEDs
      		may be changed autonomously by hardware/firmware. Only LEDs
      		where this happens and the driver can detect this, will
      		have this file.
      
      		This file supports poll() to detect when the hardware
      		changes the brightness.
      
      		Reading this file will return the last brightness level set
      		by the hardware, this may be different from the current
      		brightness.
      
      Drivers which want to support this, simply add LED_BRIGHT_HW_CHANGED to
      their flags field and call led_classdev_notify_brightness_hw_changed()
      with the hardware set brightness when they detect a hardware / firmware
      triggered brightness change.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      Signed-off-by: NJacek Anaszewski <jacek.anaszewski@gmail.com>
      0cb8eb30
  8. 29 1月, 2017 2 次提交
  9. 26 1月, 2017 1 次提交
    • B
      iio: Add STM32 timer trigger driver · 93fbe91b
      Benjamin Gaignard 提交于
      Timers IPs can be used to generate triggers for other IPs like
      DAC or ADC.
      Each trigger may result of timer internals signals like counter enable,
      reset or edge, this configuration could be done through "master_mode"
      device attribute.
      
      Since triggers could be used by DAC or ADC their names are defined
      in include/ nux/iio/timer/stm32-timer-trigger.h and is_stm32_iio_timer_trigger
      function could be used to check if the trigger is valid or not.
      
      "trgo" trigger have a "sampling_frequency" attribute which allow to configure
      timer sampling frequency.
      
      version 8:
      - change kernel version from 4.10 to 4.11 in ABI documentation
      
      version 7:
      - remove all iio_device related code
      - move driver into trigger directory
      
      version 5:
      - simplify tables of triggers
      - only create an IIO device when needed
      
      version 4:
      - get triggers configuration from "reg" in DT
      - add tables of triggers
      - sampling frequency is enable/disable when writing in trigger
        sampling_frequency attribute
      - no more use of interruptions
      
      version 3:
      - change compatible to "st,stm32-timer-trigger"
      - fix attributes access right
      - use string instead of int for master_mode and slave_mode
      - document device attributes in sysfs-bus-iio-timer-stm32
      
      version 2:
      - keep only one compatible
      - use st,input-triggers-names and st,output-triggers-names
        to know which triggers are accepted and/or create by the device
      Signed-off-by: NBenjamin Gaignard <benjamin.gaignard@st.com>
      Acked-by: NJonathan Cameron <jic23@kernel.org>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      93fbe91b
  10. 23 1月, 2017 1 次提交
  11. 19 1月, 2017 1 次提交
  12. 14 1月, 2017 2 次提交
  13. 05 1月, 2017 1 次提交
  14. 02 1月, 2017 1 次提交
  15. 31 12月, 2016 1 次提交
  16. 09 12月, 2016 1 次提交
  17. 06 12月, 2016 1 次提交
  18. 01 12月, 2016 1 次提交
  19. 22 11月, 2016 3 次提交
    • P
      cleanup LED documentation and make it match reality · ed25e9ca
      Pavel Machek 提交于
      sysfs-class-led fails to mention some important details. Also fix led
      vs LED and english.
      Signed-off-by: NPavel Machek <pavel@ucw.cz>
      Signed-off-by: NJacek Anaszewski <j.anaszewski@samsung.com>
      ed25e9ca
    • E
      PCI: Create revision file in sysfs · 702ed3be
      Emil Velikov 提交于
      Currently the revision isn't available via sysfs/libudev thus if one wants
      to know the value one needs to read through the config file, which can be
      quite time-consuming because it wakes/powers up the device.
      
      There are at least two userspace components which could make use the new
      file: libpciaccess and libdrm.  The former wakes up _every_ PCI device,
      which can be observed via glxinfo when using Mesa 10.0+ drivers.  The
      latter, in association with Mesa 13.0, can lead to 2-3 second delays while
      starting firefox, thunderbird or chromium.
      
      Link: https://bugs.freedesktop.org/show_bug.cgi?id=98502Tested-by: NMauro Santos <registo.mailling@gmail.com>
      Signed-off-by: NEmil Velikov <emil.velikov@collabora.com>
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch
      CC: Greg KH <gregkh@linuxfoundation.org>
      702ed3be
    • R
      PM / sleep: System sleep state selection interface rework · 406e7938
      Rafael J. Wysocki 提交于
      There are systems in which the platform doesn't support any special
      sleep states, so suspend-to-idle (PM_SUSPEND_FREEZE) is the only
      available system sleep state.  However, some user space frameworks
      only use the "mem" and (sometimes) "standby" sleep state labels, so
      the users of those systems need to modify user space in order to be
      able to use system suspend at all and that may be a pain in practice.
      
      Commit 0399d4db (PM / sleep: Introduce command line argument for
      sleep state enumeration) attempted to address this problem by adding
      a command line argument to change the meaning of the "mem" string in
      /sys/power/state to make it trigger suspend-to-idle (instead of
      suspend-to-RAM).
      
      However, there also are systems in which the platform does support
      special sleep states, but suspend-to-idle is the preferred one anyway
      (it even may save more energy than the platform-provided sleep states
      in some cases) and the above commit doesn't help in those cases.
      
      For this reason, rework the system sleep state selection interface
      again (but preserve backwards compatibiliby).  Namely, add a new
      sysfs file, /sys/power/mem_sleep, that will control the system
      suspend mode triggered by writing "mem" to /sys/power/state (in
      analogy with what /sys/power/disk does for hibernation).  Make it
      select suspend-to-RAM ("deep" sleep) by default (if supported) and
      fall back to suspend-to-idle ("s2idle") otherwise and add a new
      command line argument, mem_sleep_default, allowing that default to
      be overridden if need be.
      
      At the same time, drop the relative_sleep_states command line
      argument that doesn't make sense any more.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Tested-by: NMario Limonciello <mario.limonciello@dell.com>
      406e7938
  20. 18 11月, 2016 2 次提交
  21. 13 11月, 2016 4 次提交
  22. 11 11月, 2016 2 次提交
  23. 02 11月, 2016 1 次提交
  24. 01 11月, 2016 1 次提交
  25. 31 10月, 2016 2 次提交
  26. 27 10月, 2016 2 次提交
  27. 26 10月, 2016 1 次提交
  28. 24 10月, 2016 1 次提交