1. 10 12月, 2019 7 次提交
    • S
      drm/panel: decouple connector from drm_panel · 06c4a9c2
      Sam Ravnborg 提交于
      To facilitate moving connector creation to display drivers,
      decouple the drm_connector from drm_panel.
      
      This patch adds a connector argument to drm_panel_get_modes().
      
      All users of drm_panel_get_modes() already had the connector
      available, so updating users was trivial.
      
      With this patch drm_panel no longer keeps a reference to the drm_connector.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
      Acked-by: NJeffrey Hugo <jeffrey.l.hugo@gmail.com>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Laurent Pinchart <Laurent.pinchart@ideasonboard.com>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Andrzej Hajda <a.hajda@samsung.com>
      Cc: Neil Armstrong <narmstrong@baylibre.com>
      Cc: Jonas Karlman <jonas@kwiboo.se>
      Cc: Jernej Skrabec <jernej.skrabec@siol.net>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Inki Dae <inki.dae@samsung.com>
      Cc: Joonyoung Shim <jy0922.shim@samsung.com>
      Cc: Seung-Woo Kim <sw0312.kim@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Kukjin Kim <kgene@kernel.org>
      Cc: Krzysztof Kozlowski <krzk@kernel.org>
      Cc: Stefan Agner <stefan@agner.ch>
      Cc: Alison Wang <alison.wang@nxp.com>
      Cc: Philipp Zabel <p.zabel@pengutronix.de>
      Cc: Shawn Guo <shawnguo@kernel.org>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: NXP Linux Team <linux-imx@nxp.com>
      Cc: CK Hu <ck.hu@mediatek.com>
      Cc: Matthias Brugger <matthias.bgg@gmail.com>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
      Cc: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
      Cc: Sandy Huang <hjc@rock-chips.com>
      Cc: "Heiko Stübner" <heiko@sntech.de>
      Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
      Cc: Vincent Abriou <vincent.abriou@st.com>
      Cc: Chen-Yu Tsai <wens@csie.org>
      Cc: Jonathan Hunter <jonathanh@nvidia.com>
      Cc: Torsten Duwe <duwe@lst.de>
      Cc: Vasily Khoruzhick <anarsoul@gmail.com>
      Cc: Icenowy Zheng <icenowy@aosc.io>
      Cc: Sean Paul <seanpaul@chromium.org>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Boris Brezillon <boris.brezillon@collabora.com>
      Cc: Hariprasad Kelam <hariprasad.kelam@gmail.com>
      Cc: Alexios Zavras <alexios.zavras@intel.com>
      Cc: Brian Masney <masneyb@onstation.org>
      Cc: Rob Clark <robdclark@chromium.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Allison Randal <allison@lohutok.net>
      Cc: Shayenne Moura <shayenneluzmoura@gmail.com>
      Cc: Abhinav Kumar <abhinavk@codeaurora.org>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-samsung-soc@vger.kernel.org
      Cc: linux-mediatek@lists.infradead.org
      Cc: linux-renesas-soc@vger.kernel.org
      Cc: linux-rockchip@lists.infradead.org
      Cc: linux-tegra@vger.kernel.org
      Link: https://patchwork.freedesktop.org/patch/msgid/20191207140353.23967-7-sam@ravnborg.org
      06c4a9c2
    • S
      drm/panel: add drm_connector argument to get_modes() · 0ce8ddd8
      Sam Ravnborg 提交于
      Today the bridge creates the drm_connector, but that is planned
      to be moved to the display drivers.
      To facilitate this, update drm_panel_funcs.get_modes() to
      take drm_connector as an argument.
      All panel drivers implementing get_modes() are updated.
      
      v2:
        - drop accidental change (Laurent)
        - update docs for get_modes (Laurent)
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Jagan Teki <jagan@amarulasolutions.com>
      Cc: Stefan Mavrodiev <stefan@olimex.com>
      Cc: Robert Chiras <robert.chiras@nxp.com>
      Cc: "Guido Günther" <agx@sigxcpu.org>
      Cc: Purism Kernel Team <kernel@puri.sm>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191207140353.23967-6-sam@ravnborg.org
      0ce8ddd8
    • S
      drm: get drm_bridge_panel connector via helper · d383fb5f
      Sam Ravnborg 提交于
      The drm_connector created by drm_panel_bridge was accessed
      via drm_panel.connector.
      Avoid the detour around drm_panel by providing a simple get method.
      This avoids direct access to the connector field in drm_panel in
      the two users.
      
      The change is done in preparation for removal of drm_panel.connector.
      
      Update pl111 and tve200 to use the new helper.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
      Cc: Andrzej Hajda <a.hajda@samsung.com>
      Cc: Neil Armstrong <narmstrong@baylibre.com>
      Cc: Laurent Pinchart <Laurent.pinchart@ideasonboard.com>
      Cc: Jonas Karlman <jonas@kwiboo.se>
      Cc: Jernej Skrabec <jernej.skrabec@siol.net>
      Cc: Eric Anholt <eric@anholt.net>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191207140353.23967-5-sam@ravnborg.org
      d383fb5f
    • S
      drm/panel: simple: use drm_panel backlight support · 0fe1564b
      Sam Ravnborg 提交于
      Use drm_panel infrastructure for backlight.
      Replace direct calls with drm_panel_*() calls
      to utilize the drm_panel support.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191207140353.23967-4-sam@ravnborg.org
      0fe1564b
    • S
      drm/panel: add backlight support · 152dbdea
      Sam Ravnborg 提交于
      Panels often support backlight as specified in a device tree.
      Update the drm_panel infrastructure to support this to
      simplify the drivers.
      
      With this the panel driver just needs to add the following to the
      probe() function:
      
          err = drm_panel_of_backlight(panel);
          if (err)
                  return err;
      
      Then drm_panel will handle all the rest.
      
      There is one caveat with the backlight support.
      If drm_panel_(enable|disable) are called multiple times
      in a row then backlight_(enable|disable) will be called multiple times.
      
      The above will happen when a panel drivers unconditionally
      calls drm_panel_disable() in their shutdown() function,
      whan the panel is already disabled and then shutdown() is called.
      
      Reading the backlight code it seems safe to call
      the backlight_(enable|disable) several times.
      
      v3:
      - Improve comments, fix grammar (Laurent)
      - Do not fail in drm_panel_of_backlight() if no DT support (Laurent)
      - Log if backlight_(enable|disable) fails (Laurent)
      - Improve drm_panel_of_backlight() docs
      - Updated changelog with backlight analysis (triggered by Laurent)
      
      v2:
      - Drop test of CONFIG_DRM_PANEL in header-file (Laurent)
      - do not enable backlight if ->enable() returns an error
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <maxime.ripard@bootlin.com>
      Cc: Sean Paul <sean@poorly.run>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191207140353.23967-3-sam@ravnborg.org
      152dbdea
    • S
      drm/drm_panel: no error when no callback · 5dce87a9
      Sam Ravnborg 提交于
      The callbacks in drm_panel_funcs are optional, so do not
      return an error just because no callback is assigned.
      
      v2:
      - Document what functions in drm_panel_funcs are optional (Laurent)
      - Return -EOPNOTSUPP if get_modes() is not assigned (Laurent)
        (Sam: -EOPNOTSUPP seems to best error code in this situation)
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Cc: Maxime Ripard <mripard@kernel.org>
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: David Airlie <airlied@linux.ie>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191207140353.23967-2-sam@ravnborg.org
      5dce87a9
    • C
      drm/gma500: add a missed gma_power_end in error path · 4286dc07
      Chuhong Yuan 提交于
      oaktrail_lvds_mode_set() misses a gma_power_end() in an error path.
      Add the call to fix it.
      Signed-off-by: NChuhong Yuan <hslester96@gmail.com>
      Signed-off-by: NPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20191209085747.16057-1-hslester96@gmail.com
      4286dc07
  2. 09 12月, 2019 8 次提交
  3. 07 12月, 2019 2 次提交
  4. 06 12月, 2019 14 次提交
  5. 05 12月, 2019 9 次提交