On Mon Sep 1 17:13:36 2025 +0200, Matthias Fend wrote:
> This message can be helpful for troubleshooting and there is already a
> corresponding message in case of a channel destroy timeout.
> Add a similar message for channel creation.
> 
> Signed-off-by: Matthias Fend <[email protected]>
> Reviewed-by: Nicolas Dufresne <[email protected]>
> Signed-off-by: Nicolas Dufresne <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>

Patch committed.

Thanks,
Hans Verkuil

 drivers/media/platform/allegro-dvt/allegro-core.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

---

diff --git a/drivers/media/platform/allegro-dvt/allegro-core.c 
b/drivers/media/platform/allegro-dvt/allegro-core.c
index f347d56ac108..be56ef682845 100644
--- a/drivers/media/platform/allegro-dvt/allegro-core.c
+++ b/drivers/media/platform/allegro-dvt/allegro-core.c
@@ -2602,8 +2602,14 @@ static int allegro_create_channel(struct allegro_channel 
*channel)
        allegro_mcu_send_create_channel(dev, channel);
        time_left = wait_for_completion_timeout(&channel->completion,
                                                msecs_to_jiffies(5000));
-       if (time_left == 0)
+       if (time_left == 0) {
+               v4l2_warn(&dev->v4l2_dev,
+                         "user %d: timeout while creating channel\n",
+                         channel->user_id);
+
                channel->error = -ETIMEDOUT;
+       }
+
        if (channel->error)
                goto err;
 
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to