Skip to contentSkip to conversation

Usb midi device does not work on wake

PATCH New Richard Dodd 3 participants 8 messages Jan 12, 2020 – Feb 12, 2020 1 message not in the archive USB

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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

#2 lore raw
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_RESUME in 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

maintainer
#3 lore raw
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_RESUME in 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

#4 lore raw

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_RESUME in 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.

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
index 6b6413073584..3db6c05aaa4b 100644
@@ -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
maintainer
#5 lore raw
Quoted 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

maintainer
#7 lore raw
Quoted 18 lines · Richard Dodd
Quoted 1 line

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 +0 -0
index 6b6413073584..3db6c05aaa4b 100644

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

#8 lore raw

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
index 6b6413073584..3db6c05aaa4b 100644
@@ -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