drm/bridge: analogix_dp: Add log to indicate panel self test mode

If the CONSOLE_LOGLEVEL_DEFAULT is over 6, there should be the
related log:

......
[   69.489746][  T300] rockchip-dp 27dc0000.edp: Enter panel self test mode
......

Change-Id: I256933ef2cff20716715c5850948a85e4c8fad07
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
This commit is contained in:
Damon Ding
2025-04-30 09:05:29 +08:00
committed by Tao Huang
parent 5887b5e6da
commit bd577ca192

View File

@@ -1354,9 +1354,11 @@ static int analogix_dp_commit(struct analogix_dp_device *dp)
return ret;
}
if (device_property_read_bool(dp->dev, "panel-self-test"))
if (device_property_read_bool(dp->dev, "panel-self-test")) {
dev_info(dp->dev, "Enter panel self test mode\n");
return drm_dp_dpcd_writeb(&dp->aux, DP_EDP_CONFIGURATION_SET,
DP_PANEL_SELF_TEST_ENABLE);
}
ret = analogix_dp_train_link(dp);
if (ret) {