Skip to content
Snippets Groups Projects
Select Git revision
  • 7e5d1fd75c3dde9fc10c4472b9368089d1b81d00
  • master default
  • android-container
  • nanopc-t4
  • for-kernelci
  • WIP-syscall
  • v4.16-rc5
  • v4.16-rc4
  • v4.16-rc3
  • v4.16-rc2
  • v4.16-rc1
  • v4.15
  • v4.15-rc9
  • v4.15-rc8
  • v4.15-rc7
  • v4.15-rc6
  • v4.15-rc5
  • v4.15-rc4
  • v4.15-rc3
  • v4.15-rc2
  • v4.15-rc1
  • v4.14
  • v4.14-rc8
  • v4.14-rc7
  • v4.14-rc6
  • v4.14-rc5
26 results

sysfs.c

  • Gottfried Haider's avatar
    7e5d1fd7
    pwm: Set class for exported channels in sysfs · 7e5d1fd7
    Gottfried Haider authored
    
    Notifications for devices without bus or class set get dropped by
    dev_uevent_filter(). Adding the class to the exported child matches
    what the GPIO subsystem is doing.
    
    With this change exporting a channel triggers a udev event, which
    gives userspace a chance to fixup permissions and makes it possible
    for non-root users to make use of the PWM subsystem.
    
    Signed-off-by: default avatarGottfried Haider <gottfried.haider@gmail.com>
    CC: Thierry Reding <thierry.reding@gmail.com>
    CC: H Hartley Sweeten <hsweeten@visionengravers.com>
    CC: linux-pwm@vger.kernel.org
    CC: linux-arm-kernel@lists.infradead.org
    CC: linux-rpi-kernel@lists.infradead.org
    Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
    7e5d1fd7
    History
    pwm: Set class for exported channels in sysfs
    Gottfried Haider authored
    
    Notifications for devices without bus or class set get dropped by
    dev_uevent_filter(). Adding the class to the exported child matches
    what the GPIO subsystem is doing.
    
    With this change exporting a channel triggers a udev event, which
    gives userspace a chance to fixup permissions and makes it possible
    for non-root users to make use of the PWM subsystem.
    
    Signed-off-by: default avatarGottfried Haider <gottfried.haider@gmail.com>
    CC: Thierry Reding <thierry.reding@gmail.com>
    CC: H Hartley Sweeten <hsweeten@visionengravers.com>
    CC: linux-pwm@vger.kernel.org
    CC: linux-arm-kernel@lists.infradead.org
    CC: linux-rpi-kernel@lists.infradead.org
    Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>