aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/media-entity.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/media-entity.c')
-rw-r--r--drivers/media/media-entity.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c
index 37c334edc7e8..4d8e01c7b1b2 100644
--- a/drivers/media/media-entity.c
+++ b/drivers/media/media-entity.c
@@ -279,8 +279,14 @@ __must_check int media_entity_pipeline_start(struct media_entity *entity,
279 continue; 279 continue;
280 280
281 ret = entity->ops->link_validate(link); 281 ret = entity->ops->link_validate(link);
282 if (ret < 0 && ret != -ENOIOCTLCMD) 282 if (ret < 0 && ret != -ENOIOCTLCMD) {
283 dev_dbg(entity->parent->dev,
284 "link validation failed for \"%s\":%u -> \"%s\":%u, error %d\n",
285 entity->name, link->source->index,
286 link->sink->entity->name,
287 link->sink->index, ret);
283 goto error; 288 goto error;
289 }
284 } 290 }
285 291
286 /* Either no links or validated links are fine. */ 292 /* Either no links or validated links are fine. */
@@ -288,6 +294,11 @@ __must_check int media_entity_pipeline_start(struct media_entity *entity,
288 294
289 if (!bitmap_full(active, entity->num_pads)) { 295 if (!bitmap_full(active, entity->num_pads)) {
290 ret = -EPIPE; 296 ret = -EPIPE;
297 dev_dbg(entity->parent->dev,
298 "\"%s\":%u must be connected by an enabled link\n",
299 entity->name,
300 (unsigned)find_first_zero_bit(
301 active, entity->num_pads));
291 goto error; 302 goto error;
292 } 303 }
293 } 304 }