Usb midi device does not work on wake
Hello
I've got a Novation midi-over-usb device (LaunchControl XL) that works correctly on boot, but remains in power-off mode when waking from sleep.
I suspect that there is some sort of initialisation that needs to be applied. Could anyone suggest possible causes, or point me in the direction of the relevant source code. I found sound/usb/quirks.c, which seems to be the place to handle this kind of thing, but there is no mention of my device anywhere in the source tree at present (1235:0061).
Thanks in advance for your help
Richard
Am Sonntag, den 12.01.2020, 12:06 +0000 schrieb Richard Dodd:
Quoted 6 lines
Hello
I've got a Novation midi-over-usb device (LaunchControl XL) that works correctly on boot, but remains in power-off mode when waking from sleep.
Quoted 6 lines
I suspect that there is some sort of initialisation that needs to be applied. Could anyone suggest possible causes, or point me in the direction of the relevant source code. I found
sound/usb/quirks.c, which seems to be the place to handle this kind of thing, but there is no mention of my device anywhere in the source tree at present (1235:0061).
Hi,
some devices need an additional reset. They have the quirk RESET_RESUME in that file. Try adding your device to that list and recompile your kernel.
HTH
Oliver
Quoted 15 lines · Oliver Neukum
Am Sonntag, den 12.01.2020, 12:06 +0000 schrieb Richard Dodd:
Quoted 6 lines
Hello
I've got a Novation midi-over-usb device (LaunchControl XL) that works correctly on boot, but remains in power-off mode when waking from sleep.
Quoted 6 lines
I suspect that there is some sort of initialisation that needs to be applied. Could anyone suggest possible causes, or point me in the direction of the relevant source code. I found
sound/usb/quirks.c, which seems to be the place to handle this kind of thing, but there is no mention of my device anywhere in the source tree at present (1235:0061).
Quoted 9 lines
Hi,
some devices need an additional reset. They have the quirk
RESET_RESUMEin that file. Try adding your device to that list and recompile your kernel.HTH
Oliver
Hi
I found the list you are talking about in drivers/usb/core/quirks.c, and when I patched it, my device correctly woke up after suspend. :)
Can I upstream the patch by posting it here. The patch is attached to this email.
Thanks
Rich
Greg KH
maintainerQuoted 26 lines · Richard Dodd
Quoted 15 lines · Oliver Neukum
Am Sonntag, den 12.01.2020, 12:06 +0000 schrieb Richard Dodd:
Quoted 6 lines
Hello
I've got a Novation midi-over-usb device (LaunchControl XL) that works correctly on boot, but remains in power-off mode when waking from sleep.
Quoted 6 lines
I suspect that there is some sort of initialisation that needs to be applied. Could anyone suggest possible causes, or point me in the direction of the relevant source code. I found
sound/usb/quirks.c, which seems to be the place to handle this kind of thing, but there is no mention of my device anywhere in the source tree at present (1235:0061).Quoted 9 lines
Hi,
some devices need an additional reset. They have the quirk
RESET_RESUMEin that file. Try adding your device to that list and recompile your kernel.HTH
Oliver
Quoted 7 lines
Hi
I found the list you are talking about in
drivers/usb/core/quirks.c, and when I patched it, my device correctly woke up after suspend. :)Can I upstream the patch by posting it here. The patch is attached to this email.
Can you please resend this in the format described in the documentation so that we can apply it to the tree?
thanks,
greg k-h
Hi Greg
Hopefully I followed the correct instructions. I have attached the patch.
Rich
Quoted 36 lines · Greg KH
Quoted 26 lines · Richard Dodd
Quoted 15 lines · Oliver Neukum
Am Sonntag, den 12.01.2020, 12:06 +0000 schrieb Richard Dodd:
Quoted 6 lines
Hello
I've got a Novation midi-over-usb device (LaunchControl XL) that works correctly on boot, but remains in power-off mode when waking from sleep.
Quoted 6 lines
I suspect that there is some sort of initialisation that needs to be applied. Could anyone suggest possible causes, or point me in the direction of the relevant source code. I found
sound/usb/quirks.c, which seems to be the place to handle this kind of thing, but there is no mention of my device anywhere in the source tree at present (1235:0061).Quoted 9 lines
Hi,
some devices need an additional reset. They have the quirk
RESET_RESUMEin that file. Try adding your device to that list and recompile your kernel.HTH
OliverQuoted 7 lines
Hi
I found the list you are talking about in
drivers/usb/core/quirks.c, and when I patched it, my device correctly woke up after suspend. :)Can I upstream the patch by posting it here. The patch is attached to this email.
Quoted 6 lines
Can you please resend this in the format described in the documentation so that we can apply it to the tree?
thanks,
greg k-h
From 7d991df69d2c47ac41f4657109cee514eef68728 Mon Sep 17 00:00:00 2001
From: Richard Dodd <[email protected]>
Date: Thu, 30 Jan 2020 16:53:51 +0000
Subject: [PATCH] USB: Fix novation SourceControl XL after suspend
Currently, the SourceControl will stay in power-down mode after resuming from suspend. This patch resets the device after suspend to power it up.
--- drivers/usb/core/quirks.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/usb/core/quirks.c +3 -0
@@ -445,6 +445,9 @@ static const struct usb_device_id usb_quirk_list[] = {/* INTEL VALUE SSD */ { USB_DEVICE(0x8086, 0xf1a5), .driver_info = USB_QUIRK_RESET_RESUME }, + /* novation SoundControl XL */ + { USB_DEVICE(0x1235, 0x0061), .driver_info = USB_QUIRK_RESET_RESUME }, + { }/* terminating entry must be last */ };
Signature · 1 line
2.25.0
Greg KH
maintainerQuoted 3 lines · Richard Dodd
Hi Greg
Hopefully I followed the correct instructions. I have attached the patch.
Attachments do not work, just send it as-is. Look at lots of examples on this mailing list for how to do that.
that being said, it does look good so far...
thanks,
greg k-h
A message that is not in the archive (sent off-list or not yet received): CAAWug1d7u1bGhkyYRbEk1g4a3oMPgxCrppeTPtjLT-uuHhf83g@mail.gmail.com
Greg KH
maintainerQuoted 18 lines · Richard Dodd
Quoted 1 line
From
7d991df69d2c47ac41f4657109cee514eef68728Mon Sep 17 00:00:00 2001From: Richard Dodd <[email protected]>
Date: Thu, 30 Jan 2020 16:53:51 +0000
Subject: [PATCH] USB: Fix novation SourceControl XL after suspendCurrently, the SourceControl will stay in power-down mode after resuming from suspend. This patch resets the device after suspend to power it up.
Signed-off-by Richard Dodd <[email protected]>--- drivers/usb/core/quirks.c | 3 +++ 1 file changed, 3 insertions(+)drivers/usb/core/quirks.c +0
-0
drivers/usb/core/quirks.c static const struct usb_device_id usb_quirk_list[] = { · line 453
Quoted 9 lines
drivers/usb/core/quirks.c +3
-0@@ -445,6 +445,9 @@ static const struct usb_device_id usb_quirk_list[] = {/* INTEL VALUE SSD */ { USB_DEVICE(0x8086, 0xf1a5), .driver_info = USB_QUIRK_RESET_RESUME }, + /* novation SoundControl XL */ + { USB_DEVICE(0x1235, 0x0061), .driver_info = USB_QUIRK_RESET_RESUME }, + { }/* terminating entry must be last */ };
Whitespace is all corrupted, tabs are turned into spaces :(
Can you just use git send-email? Don't use a web email client, they do not work.
thanks,
greg k-h
PATCH 1/1 USB: Fix novation SourceControl XL after suspend
From: Richard Dodd <[email protected]>
Currently, the SourceControl will stay in power-down mode after resuming from suspend. This patch resets the device after suspend to power it up.
--- drivers/usb/core/quirks.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/usb/core/quirks.c +3 -0
@@ -445,6 +445,9 @@ static const struct usb_device_id usb_quirk_list[] = {/* INTEL VALUE SSD */ { USB_DEVICE(0x8086, 0xf1a5), .driver_info = USB_QUIRK_RESET_RESUME }, + /* novation SoundControl XL */ + { USB_DEVICE(0x1235, 0x0061), .driver_info = USB_QUIRK_RESET_RESUME }, + { }/* terminating entry must be last */ };
Signature · 1 line
2.25.0