Skip to content
  1. May 12, 2021
  2. May 11, 2021
  3. May 10, 2021
  4. May 07, 2021
  5. May 06, 2021
  6. May 05, 2021
  7. May 04, 2021
  8. May 03, 2021
    • Jani Nikula's avatar
      drm/i915/backlight: use unique backlight device names · 20f85ef8
      Jani Nikula authored
      
      
      Registering multiple backlight devices with intel_backlight name will
      obviously fail, regardless of whether they're two connectors in the same
      drm device or two different drm devices.
      
      It would be preferrable to switch to completely unique names, and sunset
      the generic intel_backlight name. However, there are apparently users
      out there that hardcode the name, so the change would break backward
      compatibility.
      
      As a compromise, register the first device with intel_backlight name. In
      the common case, this is the only backlight device anyway. From the
      second device on, use card%d-%s-backlight format, for example
      card0-eDP-2-backlight, to make the name unique.
      
      This approach does not preclude us from registering the first device
      using the same naming scheme in the future.
      
      v2: Keep using intel_backlight name for first backlight device
      
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2794
      Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/7dc3f6974711ce44522189dc9db05d1e6e24e6d8.1619604743.git.jani.nikula@intel.com
      20f85ef8
    • Jani Nikula's avatar
      drm/i915/backlight: clean up backlight device register · b08a759d
      Jani Nikula authored
      
      
      Add connector and backlight device name to logging, and propagate error
      code from backlight_device_register() instead of flattening to
      -ENODEV. Storing the name in an allocated buffer is unnecessary here,
      but makes follow-up work on names much cleaner.
      
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/271206461d9c0f42755792236330b588df3b532e.1619604743.git.jani.nikula@intel.com
      b08a759d
  9. Apr 30, 2021
  10. Apr 28, 2021