Re: [PATCH v14 0/2] Add initial support for slimport anx7625

From: Sam Ravnborg
Date: Wed Aug 19 2020 - 16:40:02 EST


Hi Xin Ji.

On Mon, Aug 10, 2020 at 10:35:46PM +0200, Sam Ravnborg wrote:
> Hi Xin Ji.
>
> On Thu, Jul 09, 2020 at 04:31:09PM +0800, Xin Ji wrote:
> > Hi all,
> >
> > The following series add support for the Slimport ANX7625 transmitter, a
> > ultra-low power Full-HD 4K MIPI to DP transmitter designed for portable device.
> >
> >
> > This is the v14 version, any mistakes, please let me know, I will fix it in
> > the next series.
> >
> > Change history:
> > v14: Fix comments from Sam and Nicolas
> > - Check flags at drm_bridge_attach
> > - Use panel_bridge instead of drm_panel
> > - Fix not correct return value
>
> Sorry for ignoring this for so long time.
> The patch applies but no longer builds.
>
> I could fix it locally but wanted to know if you have a later version to
> be applied?

I took a short look at the driver today.
I noticed following code:
if (!(flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR))
return -EINVAL;

So if the display driver do not supply the DRM_BRIDGE_ATTACH_NO_CONNECTOR
then -EINVAL is returned.

But then the anx7625_bridge_attach() continues and creates a connector.
For a new bridge driver there should be no need for the backward
compatibility - so no need to create the connector.
Unless the display driver needs it - but then we should fix the display
driver and not add backward compatibility code in the bridge driver.

Which display driver do you expect this bridge driver to be used with?

Sam




>
> Sam
>
>
> >
> > v13: Fix comments from Launrent Pinchart and Rob Herring
> > - Picked up Rob's Reviewed-By
> > - Add .detect and .get_edid interface in bridge funcs.
> >
> > v12: Fix comments from Hsin-Yi Wang
> > - Rebase the code on kernel 5.7, fix DRM interface not match issue.
> >
> > v11: Fix comments from Rob Herring
> > - Update commit message.
> > - Remove unused label.
> >
> > v10: Fix comments from Rob Herring, Daniel.
> > - Fix dt_binding_check warning.
> > - Update description.
> >
> > v9: Fix comments from Sam, Nicolas, Daniel
> > - Remove extcon interface.
> > - Remove DPI support.
> > - Fix dt_binding_check complains.
> > - Code clean up and update description.
> >
> > v8: Fix comments from Nicolas.
> > - Fix several coding format.
> > - Update description.
> >
> > v7:
> > - Fix critical timing(eg:odd hfp/hbp) in "mode_fixup" interface,
> > enhance MIPI RX tolerance by setting register MIPI_DIGITAL_ADJ_1 to 0x3D.
> >
> >
> > Xin Ji (2):
> > dt-bindings: drm/bridge: anx7625: MIPI to DP transmitter DT schema
> > drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP
> >
> > .../bindings/display/bridge/analogix,anx7625.yaml | 95 +
> > drivers/gpu/drm/bridge/analogix/Kconfig | 9 +
> > drivers/gpu/drm/bridge/analogix/Makefile | 1 +
> > drivers/gpu/drm/bridge/analogix/anx7625.c | 1939 ++++++++++++++++++++
> > drivers/gpu/drm/bridge/analogix/anx7625.h | 391 ++++
> > 5 files changed, 2435 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml
> > create mode 100644 drivers/gpu/drm/bridge/analogix/anx7625.c
> > create mode 100644 drivers/gpu/drm/bridge/analogix/anx7625.h
> >
> > --
> > 2.7.4
> >
> > _______________________________________________
> > dri-devel mailing list
> > dri-devel@xxxxxxxxxxxxxxxxxxxxx
> > https://lists.freedesktop.org/mailman/listinfo/dri-devel
> _______________________________________________
> dri-devel mailing list
> dri-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/dri-devel