drm/bridge: nxp-ptn3460: add get_edid bridge operation
authorSam Ravnborg <sam@ravnborg.org>
Mon, 27 Jul 2020 17:03:19 +0000 (19:03 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 27 Jul 2020 17:24:20 +0000 (19:24 +0200)
commit4151c14cdda689fd64299736f2779668a9fb3a7d
tree9d4837536d0130d9bd9f9dacc6b3b8e973c48cd3
parentde5e6c027ae67dd1dfcd3022593651c24b3f794a
drm/bridge: nxp-ptn3460: add get_edid bridge operation

Add the get_edid() bridge operation to prepare for
use as a chained bridge.
Add helper function that is also used by the connector.

v2:
  - Fix memory leak (Laurent)
  - Do not save a copy of edid, read it when needed

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
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>
Link: https://patchwork.freedesktop.org/patch/msgid/20200727170320.959777-5-sam@ravnborg.org
drivers/gpu/drm/bridge/nxp-ptn3460.c