Call drm_probe_helper_prioritize_connectors() to set connector priorities. Guarantees that only a single output is connected at a time. Signed-off-by: Thomas Zimmermann <tzimmermann@xxxxxxx> --- drivers/gpu/drm/mgag200/mgag200_g200eh.c | 2 ++ drivers/gpu/drm/mgag200/mgag200_g200eh3.c | 2 ++ drivers/gpu/drm/mgag200/mgag200_g200er.c | 2 ++ drivers/gpu/drm/mgag200/mgag200_g200ev.c | 2 ++ drivers/gpu/drm/mgag200/mgag200_g200ew3.c | 2 ++ drivers/gpu/drm/mgag200/mgag200_g200se.c | 2 ++ drivers/gpu/drm/mgag200/mgag200_g200wb.c | 2 ++ 7 files changed, 14 insertions(+) diff --git a/drivers/gpu/drm/mgag200/mgag200_g200eh.c b/drivers/gpu/drm/mgag200/mgag200_g200eh.c index 52bf49ead5c5..c8204e8a1daf 100644 --- a/drivers/gpu/drm/mgag200/mgag200_g200eh.c +++ b/drivers/gpu/drm/mgag200/mgag200_g200eh.c @@ -222,6 +222,8 @@ static int mgag200_g200eh_pipeline_init(struct mga_device *mdev) if (ret) return ret; + drm_probe_helper_prioritize_connectors(dev, GENMASK(dev->mode_config.num_connector, 0)); + return 0; } diff --git a/drivers/gpu/drm/mgag200/mgag200_g200eh3.c b/drivers/gpu/drm/mgag200/mgag200_g200eh3.c index e7f89b2a59fd..749baefb0a7e 100644 --- a/drivers/gpu/drm/mgag200/mgag200_g200eh3.c +++ b/drivers/gpu/drm/mgag200/mgag200_g200eh3.c @@ -126,6 +126,8 @@ static int mgag200_g200eh3_pipeline_init(struct mga_device *mdev) if (ret) return ret; + drm_probe_helper_prioritize_connectors(dev, GENMASK(dev->mode_config.num_connector, 0)); + return 0; } diff --git a/drivers/gpu/drm/mgag200/mgag200_g200er.c b/drivers/gpu/drm/mgag200/mgag200_g200er.c index 737a48aa9160..e8c84d3258aa 100644 --- a/drivers/gpu/drm/mgag200/mgag200_g200er.c +++ b/drivers/gpu/drm/mgag200/mgag200_g200er.c @@ -262,6 +262,8 @@ static int mgag200_g200er_pipeline_init(struct mga_device *mdev) if (ret) return ret; + drm_probe_helper_prioritize_connectors(dev, GENMASK(dev->mode_config.num_connector, 0)); + return 0; } diff --git a/drivers/gpu/drm/mgag200/mgag200_g200ev.c b/drivers/gpu/drm/mgag200/mgag200_g200ev.c index 8d1ccc2ad94a..e2b13a90b405 100644 --- a/drivers/gpu/drm/mgag200/mgag200_g200ev.c +++ b/drivers/gpu/drm/mgag200/mgag200_g200ev.c @@ -263,6 +263,8 @@ static int mgag200_g200ev_pipeline_init(struct mga_device *mdev) if (ret) return ret; + drm_probe_helper_prioritize_connectors(dev, GENMASK(dev->mode_config.num_connector, 0)); + return 0; } diff --git a/drivers/gpu/drm/mgag200/mgag200_g200ew3.c b/drivers/gpu/drm/mgag200/mgag200_g200ew3.c index 265f3e95830a..384041e7b839 100644 --- a/drivers/gpu/drm/mgag200/mgag200_g200ew3.c +++ b/drivers/gpu/drm/mgag200/mgag200_g200ew3.c @@ -135,6 +135,8 @@ static int mgag200_g200ew3_pipeline_init(struct mga_device *mdev) if (ret) return ret; + drm_probe_helper_prioritize_connectors(dev, GENMASK(dev->mode_config.num_connector, 0)); + return 0; } diff --git a/drivers/gpu/drm/mgag200/mgag200_g200se.c b/drivers/gpu/drm/mgag200/mgag200_g200se.c index cf7f6897838f..95514dcb8c53 100644 --- a/drivers/gpu/drm/mgag200/mgag200_g200se.c +++ b/drivers/gpu/drm/mgag200/mgag200_g200se.c @@ -394,6 +394,8 @@ static int mgag200_g200se_pipeline_init(struct mga_device *mdev) if (ret) return ret; + drm_probe_helper_prioritize_connectors(dev, GENMASK(dev->mode_config.num_connector, 0)); + return 0; } diff --git a/drivers/gpu/drm/mgag200/mgag200_g200wb.c b/drivers/gpu/drm/mgag200/mgag200_g200wb.c index e25477347c3e..0100b4d03b89 100644 --- a/drivers/gpu/drm/mgag200/mgag200_g200wb.c +++ b/drivers/gpu/drm/mgag200/mgag200_g200wb.c @@ -269,6 +269,8 @@ static int mgag200_g200wb_pipeline_init(struct mga_device *mdev) if (ret) return ret; + drm_probe_helper_prioritize_connectors(dev, GENMASK(dev->mode_config.num_connector, 0)); + return 0; } -- 2.45.2