drm: rcar-du: rzg2l_mipi_dsi: Enhance device lanes check
authorBiju Das <biju.das.jz@bp.renesas.com>
Tue, 20 Sep 2022 10:55:01 +0000 (11:55 +0100)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 9 Nov 2022 14:45:58 +0000 (16:45 +0200)
commit418bb3a69e1355c8977c528f8f3896a0aaaecb80
tree0c5f3d7598bd989adfe0a497f18a6ae854c77141
parent7a043f978ed1433bddb088a732e9bb91501ebd76
drm: rcar-du: rzg2l_mipi_dsi: Enhance device lanes check

Enhance device lanes check by reading TXSETR register at probe(),
and enforced in rzg2l_mipi_dsi_host_attach().

As per HW manual, we can read TXSETR register only after
DPHY initialization.

Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rzg2l_mipi_dsi.c