From: Oliver Neukum <oneukum@suse.com>
To: ezequiel@vanguardiasur.com.ar, mchehab@kernel.org,
linux-media@vger.kernel.org
Cc: Oliver Neukum <oneukum@suse.com>
Subject: [PATCH 2/2] media: stk1160: handle ESHUTDOWN gracefully
Date: Thu, 9 Jul 2026 15:21:24 +0200 [thread overview]
Message-ID: <20260709132124.1453410-2-oneukum@suse.com> (raw)
In-Reply-To: <20260709132124.1453410-1-oneukum@suse.com>
Give it its own error message.
Signed-off-by: Oliver Neukum <oneukum@suse.com>
---
drivers/media/usb/stk1160/stk1160-video.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/media/usb/stk1160/stk1160-video.c b/drivers/media/usb/stk1160/stk1160-video.c
index f4baf9263286..020b75fc5b2d 100644
--- a/drivers/media/usb/stk1160/stk1160-video.c
+++ b/drivers/media/usb/stk1160/stk1160-video.c
@@ -48,6 +48,9 @@ static inline void print_err_status(struct stk1160 *dev,
case -EILSEQ:
errmsg = "CRC/Timeout (could be anything)";
break;
+ case -ESHUTDOWN:
+ errmsg = "host controller removed";
+ break;
case -ETIME:
errmsg = "Device does not respond";
break;
--
2.54.0
prev parent reply other threads:[~2026-07-09 13:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-09 13:21 [PATCH 1/2] media: stk1160: cleanup error handling in probe Oliver Neukum
2026-07-09 13:21 ` Oliver Neukum [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260709132124.1453410-2-oneukum@suse.com \
--to=oneukum@suse.com \
--cc=ezequiel@vanguardiasur.com.ar \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox