07 Jan, 2020

4 commits


06 Jan, 2020

5 commits


05 Jan, 2020

1 commit


03 Jan, 2020

3 commits


22 Dec, 2019

6 commits

  • This driver adds support for the LED operational mode of the
    tps6105x MFD device.

    Acked-by: Jacek Anaszewski
    Signed-off-by: Sven Van Asbroeck
    Signed-off-by: Pavel Machek

    Sven Van Asbroeck
     
  • We need the of_match table if we want to use the compatible string in
    the pmic's child node and get the led driver loaded automatically.

    Signed-off-by: Bartosz Golaszewski
    Signed-off-by: Pavel Machek

    Bartosz Golaszewski
     
  • The Rohm BD2802 have no in-kernel users so we can drop the
    GPIO number from the platform data and require users to
    provide the GPIO line using machine descriptors.

    As the descriptors come with inherent polarity inversion
    semantics, we invert the calls to set the GPIO line such
    that 0 means "unasserted" and 1 means "asserted".

    Put a note in the driver that machine descriptor tables
    will need to specify that the line is active low.

    Cc: Kim Kyuwon
    Signed-off-by: Linus Walleij
    Signed-off-by: Pavel Machek

    Linus Walleij
     
  • Before commit bb29b9cccd95 ("leds: pca963x: Add bindings to invert
    polarity") Mode register 2 was initialized directly with either 0x01
    or 0x05 for open-drain or totem pole (push-pull) configuration.

    Afterwards, MODE2 initialization started using bitwise operations on
    top of the default MODE2 register value (0x05). Using bitwise OR for
    setting OUTDRV with 0x01 and 0x05 does not produce correct results.
    When open-drain is used, instead of setting OUTDRV to 0, the driver
    keeps it as 1:

    Open-drain: 0x05 | 0x01 -> 0x05 (0b101 - incorrect)
    Totem pole: 0x05 | 0x05 -> 0x05 (0b101 - correct but still wrong)

    Now OUTDRV setting uses correct bitwise operations for initialization:

    Open-drain: 0x05 & ~0x04 -> 0x01 (0b001 - correct)
    Totem pole: 0x05 | 0x04 -> 0x05 (0b101 - correct)

    Additional MODE2 register definitions are introduced now as well.

    Fixes: bb29b9cccd95 ("leds: pca963x: Add bindings to invert polarity")
    Signed-off-by: Zahari Petkov
    Signed-off-by: Pavel Machek

    Zahari Petkov
     
  • If a node is ignored, do not get a reference to it. Fix the bug by moving
    fwnode_handle_get() where a reference to an fwnode is saved for clarity.

    Reported-by: Andy Shevchenko
    Reviewed-by: Andy Shevchenko
    Signed-off-by: Sakari Ailus
    Signed-off-by: Pavel Machek

    Sakari Ailus
     
  • When switching to using generic LED name composition mechanism via
    devm_led_classdev_register_ext() API the part of code initializing
    struct gpio_led's template name property was removed alongside.
    It was however overlooked that the property was also passed to
    devm_fwnode_get_gpiod_from_child() in place of "label" parameter,
    which when set to NULL, results in gpio label being initialized to '?'.

    It could be observed in debugfs and failed to properly identify
    gpio association with LED consumer.

    Fix this shortcoming by updating the GPIO label after the LED is
    registered and its final name is known.

    Fixes: d7235f5feaa0 ("leds: gpio: Use generic support for composing LED names")
    Cc: Russell King
    Reviewed-by: Linus Walleij
    Signed-off-by: Jacek Anaszewski
    [fixed comment]
    Signed-off-by: Pavel Machek

    Jacek Anaszewski
     

02 Dec, 2019

1 commit

  • Pull LED updates from Pavel Machek:
    "This contains usual small updates to drivers, and removal of PAGE_SIZE
    limits on /sys/class/leds//trigger.

    We should not be really having that many triggers; but with cpu
    activity triggers we do, and we'll eventually need to fix it, but...
    remove the limit for now"

    * tag 'leds-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds: (26 commits)
    leds: trigger: netdev: fix handling on interface rename
    leds: an30259a: add a check for devm_regmap_init_i2c
    leds: mlxreg: Fix possible buffer overflow
    leds: pca953x: Use of_device_get_match_data()
    leds: core: Fix leds.h structure documentation
    leds: core: Fix devm_classdev_match to reference correct structure
    leds: core: Remove extern from header
    leds: lm3601x: Convert class registration to device managed
    leds: flash: Add devm_* functions to the flash class
    leds: flash: Remove extern from the header file
    leds: flash: Convert non extended registration to inline
    leds: Kconfig: Be consistent with the usage of "LED"
    leds: remove PAGE_SIZE limit of /sys/class/leds//trigger
    leds: tlc591xx: update the maximum brightness
    leds: lm3692x: Use flags from LM3692X_BRT_CTRL
    leds: lm3692x: Use flags from LM3692X_BOOST_CTRL
    leds: lm3692x: Handle failure to probe the regulator
    leds: lm3692x: Don't overwrite return value in error path
    leds: lm3692x: Print error value on dev_err
    leds: tlc591xx: use devm_led_classdev_register_ext()
    ...

    Linus Torvalds
     

21 Nov, 2019

1 commit

  • We can now safely read user kcpustat fields on nohz_full CPUs.
    Use the appropriate accessor.

    [ mingo: Fixed build failure. ]

    Reported-by: Yauheni Kaliuta
    Signed-off-by: Frederic Weisbecker
    Cc: Jacek Anaszewski (maintainer:LED SUBSYSTEM)
    Cc: Pavel Machek (maintainer:LED SUBSYSTEM)
    Cc: Dan Murphy (reviewer:LED SUBSYSTEM)
    Cc: Peter Zijlstra
    Cc: Wanpeng Li
    Link: https://lkml.kernel.org/r/20191121024430.19938-6-frederic@kernel.org
    Signed-off-by: Ingo Molnar

    Frederic Weisbecker
     

04 Nov, 2019

19 commits