Skip to content
Snippets Groups Projects
  1. Dec 16, 2019
  2. Sep 25, 2019
  3. Sep 08, 2019
    • Laurent Pinchart's avatar
      drm/bridge: panel: Infer connector type from panel by default · 89958b7c
      Laurent Pinchart authored
      
      The drm panel bridge creates a connector using a connector type
      explicitly passed by the display controller or bridge driver that
      instantiates the panel bridge. Now that drm_panel reports its connector
      type, we can use it to avoid passing an explicit (and often incorrect)
      connector type to drm_panel_bridge_add() and
      devm_drm_panel_bridge_add().
      
      Several drivers report incorrect or unknown connector types to
      userspace. Reporting a different type may result in a breakage. For that
      reason, rename (devm_)drm_panel_bridge_add() to
      (devm_)drm_panel_bridge_add_typed(), and add new
      (devm_)drm_panel_bridge_add() functions that use the panel connector
      type. Update all callers of (devm_)drm_panel_bridge_add() to the _typed
      function, they will be converted one by one after testing.
      
      The panel drivers have been updated with the following Coccinelle
      semantic patch, with manual inspection and fixes to indentation.
      
      @@
      expression bridge;
      expression dev;
      expression panel;
      identifier type;
      @@
      (
      -bridge = drm_panel_bridge_add(panel, type);
      +bridge = drm_panel_bridge_add_typed(panel, type);
      |
      -bridge = devm_drm_panel_bridge_add(dev, panel, type);
      +bridge = devm_drm_panel_bridge_add_typed(dev, panel, type);
      )
      
      Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Reviewed-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190904132804.29680-3-laurent.pinchart@ideasonboard.com
      89958b7c
  4. Jun 24, 2019
  5. Jun 12, 2019
  6. May 26, 2019
  7. Jan 24, 2019
  8. Jan 14, 2019
  9. Oct 30, 2018
  10. Apr 26, 2018
  11. Apr 19, 2018
  12. Mar 05, 2018
  13. Feb 08, 2018
  14. Jan 30, 2018
  15. Jan 16, 2018
  16. Jan 09, 2018
  17. Oct 10, 2017
  18. Sep 04, 2017
  19. Aug 09, 2017
  20. Jul 18, 2017
Loading