diff mbox series

[2/2] flexcop: allow for modern speeds

Message ID 20220517131109.28371-2-oneukum@suse.com (mailing list archive)
State New, archived
Headers show
Series [1/2] flexcop: unneeded ATOMIC | expand

Commit Message

Oliver Neukum May 17, 2022, 1:11 p.m. UTC
High speed is no longer the ultimate in speed.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
---
 drivers/media/usb/b2c2/flexcop-usb.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Johan Hovold May 17, 2022, 1:23 p.m. UTC | #1
On Tue, May 17, 2022 at 03:11:09PM +0200, Oliver Neukum wrote:
> High speed is no longer the ultimate in speed.
> 
> Signed-off-by: Oliver Neukum <oneukum@suse.com>
> ---
>  drivers/media/usb/b2c2/flexcop-usb.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/media/usb/b2c2/flexcop-usb.c b/drivers/media/usb/b2c2/flexcop-usb.c
> index 98d9912a4efb..52e9964c2e59 100644
> --- a/drivers/media/usb/b2c2/flexcop-usb.c
> +++ b/drivers/media/usb/b2c2/flexcop-usb.c
> @@ -525,6 +525,12 @@ static int flexcop_usb_init(struct flexcop_usb *fc_usb)
>  	case USB_SPEED_HIGH:
>  		info("running at HIGH speed.");
>  		break;
> +	case USB_SPEED_SUPER:
> +		info("running at SUPER speed.");
> +		break;
> +	case USB_SPEED_SUPER_PLUS:
> +		info("running at SUPER+ speed.");
> +		break;

Not sure this change is warranted, though. These devices aren't going to
start supporting SuperSpeed.

>  	case USB_SPEED_UNKNOWN:
>  	default:
>  		err("cannot handle USB speed because it is unknown.");

Johan
diff mbox series

Patch

diff --git a/drivers/media/usb/b2c2/flexcop-usb.c b/drivers/media/usb/b2c2/flexcop-usb.c
index 98d9912a4efb..52e9964c2e59 100644
--- a/drivers/media/usb/b2c2/flexcop-usb.c
+++ b/drivers/media/usb/b2c2/flexcop-usb.c
@@ -525,6 +525,12 @@  static int flexcop_usb_init(struct flexcop_usb *fc_usb)
 	case USB_SPEED_HIGH:
 		info("running at HIGH speed.");
 		break;
+	case USB_SPEED_SUPER:
+		info("running at SUPER speed.");
+		break;
+	case USB_SPEED_SUPER_PLUS:
+		info("running at SUPER+ speed.");
+		break;
 	case USB_SPEED_UNKNOWN:
 	default:
 		err("cannot handle USB speed because it is unknown.");