Skip to contentSkip to conversation

Revert "usb: gadget: u_audio: add real feedback implementation"

PATCH In review Ferry Toth 5 participants 11 messages Aug 26, 2021 – Aug 27, 2021

Subsystems (3)
lore
Share & tools
lore

Ferry Toth

author
#0 lore raw

v2 cover Revert "usb: gadget: u_audio: add real feedback implementation"

Although there is a patch resolving this issue (see
https://lore.kernel.org/linux-usb/[email protected]/T/#u)
it needs a little work and will not be ready for v5.14.0 release. Until then revert the series.

v2:
- Added SoB (Balbi)

Ferry Toth (3):
Revert "usb: gadget: u_audio: add real feedback implementation" Revert "usb: gadget: f_uac2: add adaptive sync support for capture" Revert "usb: gadget: f_uac2/u_audio: add feedback endpoint support"

 .../ABI/testing/configfs-usb-gadget-uac2      |   2 -
 Documentation/usb/gadget-testing.rst          |   2 -
 drivers/usb/gadget/function/f_uac2.c          | 144 +----------
 drivers/usb/gadget/function/u_audio.c         | 225 +-----------------
 drivers/usb/gadget/function/u_audio.h         |  12 -
 drivers/usb/gadget/function/u_uac2.h          |   4 -
 6 files changed, 6 insertions(+), 383 deletions(-)
Signature · 1 line
2.30.2
author
#1 lore raw

PATCH v2 1/3 Revert "usb: gadget: u_audio: add real feedback implementation"

This reverts commit e89bb4288378b85c82212b60dc98ecda6b3d3a70.

The commit is part of a series with commit 24f779dac8f3efb9629adc0e486914d93dc45517 causing a BUG on dwc3 hardware, at least on Intel Merrifield platform when configured through configfs:

BUG: kernel NULL pointer dereference, address: 0000000000000008
...
RIP: 0010:dwc3_gadget_del_and_unmap_request+0x19/0xe0
...
Call Trace:
 dwc3_remove_requests.constprop.0+0x12f/0x170
 __dwc3_gadget_ep_disable+0x7a/0x160
 dwc3_gadget_ep_disable+0x3d/0xd0
 usb_ep_disable+0x1c/0x70
 u_audio_stop_capture+0x79/0x120 [u_audio]
 afunc_set_alt+0x73/0x80 [usb_f_uac2]
 composite_setup+0x224/0x1b90 [libcomposite]

Pavel's suggestion to add
echo "adaptive" > functions/uac2.usb0/c_sync to the configfs script resolves the issue.
Thinh suggests "the crash is probably because of f_uac2 prematurely freeing feedback request before its completion. usb_ep_dequeue() is asynchronous. dwc2() may treat it as a synchronous call so you didn't get a crash."

Revert as this is a regression and the kernel shouldn't crash depending on configuration parameters.

---
 .../ABI/testing/configfs-usb-gadget-uac2      |   1 -
 Documentation/usb/gadget-testing.rst          |   1 -
 drivers/usb/gadget/function/f_uac2.c          |   9 +-
 drivers/usb/gadget/function/u_audio.c         | 124 ++----------------
 drivers/usb/gadget/function/u_audio.h         |   9 --
 drivers/usb/gadget/function/u_uac2.h          |   2 -
 6 files changed, 10 insertions(+), 136 deletions(-)
Documentation/ABI/testing/configfs-usb-gadget-uac2 +0 -1
index 26fb8e9b4e61..e7e59d7fb12f 100644
@@ -9,7 +9,6 @@ Description:
 		c_srate    capture sampling rate
 		c_ssize    capture sample size (bytes)
 		c_sync     capture synchronization type (async/adaptive)
-		fb_max     maximum extra bandwidth in async mode
 		p_chmask   playback channel mask
 		p_srate    playback sampling rate
 		p_ssize    playback sample size (bytes)
Documentation/usb/gadget-testing.rst +0 -1
index 9d6276f82774..f5a12667bd41 100644
@@ -729,7 +729,6 @@ The uac2 function provides these attributes in its function directory:
 	c_srate		capture sampling rate
 	c_ssize		capture sample size (bytes)
 	c_sync		capture synchronization type (async/adaptive)
-	fb_max          maximum extra bandwidth in async mode
 	p_chmask	playback channel mask
 	p_srate		playback sampling rate
 	p_ssize		playback sample size (bytes)
drivers/usb/gadget/function/f_uac2.c +1 -8
index ae29ff2b2b68..321e6c05ba93 100644
@@ -584,11 +584,8 @@ static int set_ep_max_packet_size(const struct f_uac2_opts *uac2_opts,
 		ssize = uac2_opts->c_ssize;
 	}
 
-	if (!is_playback && (uac2_opts->c_sync == USB_ENDPOINT_SYNC_ASYNC))
-		srate = srate * (1000 + uac2_opts->fb_max) / 1000;
-
 	max_size_bw = num_channels(chmask) * ssize *
-		DIV_ROUND_UP(srate, factor / (1 << (ep_desc->bInterval - 1)));
+		((srate / (factor / (1 << (ep_desc->bInterval - 1)))) + 1);
 	ep_desc->wMaxPacketSize = cpu_to_le16(min_t(u16, max_size_bw,
 						    max_size_ep));
 
@@ -960,7 +957,6 @@ afunc_bind(struct usb_configuration *cfg, struct usb_function *fn)
 	agdev->params.c_srate = uac2_opts->c_srate;
 	agdev->params.c_ssize = uac2_opts->c_ssize;
 	agdev->params.req_number = uac2_opts->req_number;
-	agdev->params.fb_max = uac2_opts->fb_max;
 	ret = g_audio_setup(agdev, "UAC2 PCM", "UAC2_Gadget");
 	if (ret)
 		goto err_free_descs;
@@ -1333,7 +1329,6 @@ UAC2_ATTRIBUTE(c_srate);
 UAC2_ATTRIBUTE_SYNC(c_sync);
 UAC2_ATTRIBUTE(c_ssize);
 UAC2_ATTRIBUTE(req_number);
-UAC2_ATTRIBUTE(fb_max);
 
 static struct configfs_attribute *f_uac2_attrs[] = {
 	&f_uac2_opts_attr_p_chmask,
@@ -1344,7 +1339,6 @@ static struct configfs_attribute *f_uac2_attrs[] = {
 	&f_uac2_opts_attr_c_ssize,
 	&f_uac2_opts_attr_c_sync,
 	&f_uac2_opts_attr_req_number,
-	&f_uac2_opts_attr_fb_max,
 	NULL,
 };
 
@@ -1384,7 +1378,6 @@ static struct usb_function_instance *afunc_alloc_inst(void)
 	opts->c_ssize = UAC2_DEF_CSSIZE;
 	opts->c_sync = UAC2_DEF_CSYNC;
 	opts->req_number = UAC2_DEF_REQ_NUM;
-	opts->fb_max = UAC2_DEF_FB_MAX;
 	return &opts->func_inst;
 }
 
drivers/usb/gadget/function/u_audio.c +9 -115

202 lines not on this page · raw message

drivers/usb/gadget/function/u_audio.h +0 -9
index a218cdf771fe..53e6baf55cbf 100644
@@ -11,14 +11,6 @@
 
 #include <linux/usb/composite.h>
 
-/*
- * Same maximum frequency deviation on the slower side as in
- * sound/usb/endpoint.c. Value is expressed in per-mil deviation.
- * The maximum deviation on the faster side will be provided as
- * parameter, as it impacts the endpoint required bandwidth.
- */
-#define FBACK_SLOW_MAX	250
-
 struct uac_params {
 	/* playback */
 	int p_chmask;	/* channel mask */
@@ -31,7 +23,6 @@ struct uac_params {
 	int c_ssize;	/* sample size */
 
 	int req_number; /* number of preallocated requests */
-	int fb_max;	/* upper frequency drift feedback limit per-mil */
 };
 
 struct g_audio {
drivers/usb/gadget/function/u_uac2.h +0 -2
index 179d3ef6a195..13589c3c805c 100644
@@ -23,7 +23,6 @@
 #define UAC2_DEF_CSSIZE 2
 #define UAC2_DEF_CSYNC		USB_ENDPOINT_SYNC_ASYNC
 #define UAC2_DEF_REQ_NUM 2
-#define UAC2_DEF_FB_MAX 5
 
 struct f_uac2_opts {
 	struct usb_function_instance	func_inst;
@@ -35,7 +34,6 @@ struct f_uac2_opts {
 	int				c_ssize;
 	int				c_sync;
 	int				req_number;
-	int				fb_max;
 	bool				bound;
 
 	struct mutex			lock;
Signature · 1 line
2.30.2
#2 lore raw
Quoted 27 lines · Ferry Toth

This reverts commit e89bb4288378b85c82212b60dc98ecda6b3d3a70.

The commit is part of a series with commit 24f779dac8f3efb9629adc0e486914d93dc45517 causing a BUG on dwc3 hardware, at least on Intel Merrifield platform when configured through configfs:

BUG: kernel NULL pointer dereference, address: 0000000000000008
...
RIP: 0010:dwc3_gadget_del_and_unmap_request+0x19/0xe0
...
Call Trace:
 dwc3_remove_requests.constprop.0+0x12f/0x170
 __dwc3_gadget_ep_disable+0x7a/0x160
 dwc3_gadget_ep_disable+0x3d/0xd0
 usb_ep_disable+0x1c/0x70
 u_audio_stop_capture+0x79/0x120 [u_audio]
 afunc_set_alt+0x73/0x80 [usb_f_uac2]
 composite_setup+0x224/0x1b90 [libcomposite]

Pavel's suggestion to add
echo "adaptive" > functions/uac2.usb0/c_sync to the configfs script resolves the issue.
Thinh suggests "the crash is probably because of f_uac2 prematurely freeing feedback request before its completion. usb_ep_dequeue() is asynchronous. dwc2() may treat it as a synchronous call so you didn't get a crash."

Quoted 2 lines

Revert as this is a regression and the kernel shouldn't crash depending on configuration parameters.

Are these normal configuration options in the wild, or is this just something that you "can do"?

Quoted 1 line

I need an ack from the original authors to revert all this...

thanks,

greg k-h

#3 lore raw

Op 27-08-2021 om 10:29 schreef Greg Kroah-Hartman:

Quoted 28 lines · Ferry Toth
Quoted 27 lines

This reverts commit e89bb4288378b85c82212b60dc98ecda6b3d3a70.

The commit is part of a series with commit 24f779dac8f3efb9629adc0e486914d93dc45517 causing a BUG on dwc3 hardware, at least on Intel Merrifield platform when configured through configfs:

BUG: kernel NULL pointer dereference, address: 0000000000000008
...
RIP: 0010:dwc3_gadget_del_and_unmap_request+0x19/0xe0
...
Call Trace:
  dwc3_remove_requests.constprop.0+0x12f/0x170
  __dwc3_gadget_ep_disable+0x7a/0x160
  dwc3_gadget_ep_disable+0x3d/0xd0
  usb_ep_disable+0x1c/0x70
  u_audio_stop_capture+0x79/0x120 [u_audio]
  afunc_set_alt+0x73/0x80 [usb_f_uac2]
  composite_setup+0x224/0x1b90 [libcomposite]

Pavel's suggestion to add
echo "adaptive" > functions/uac2.usb0/c_sync to the configfs script resolves the issue.
Thinh suggests "the crash is probably because of f_uac2 prematurely freeing feedback request before its completion. usb_ep_dequeue() is asynchronous. dwc2() may treat it as a synchronous call so you didn't get a crash."

Quoted 5 lines
Quoted 2 lines

Revert as this is a regression and the kernel shouldn't crash depending on configuration parameters.

Are these normal configuration options in the wild, or is this just something that you "can do"?

It's a work around suggested by Pavel, a line that can be added to configfs script.

Quoted 3 lines
Quoted 1 line

I need an ack from the original authors to revert all this...

A fix has appeared:
https://lore.kernel.org/linux-usb/[email protected]/T/#m922149b7e74204c8ed1bed2c624910ab4eafd43c

This has been acked by Felipe. If we can get that in 5.14.0 it would be preferable to reverting this series.

Quoted 4 lines

thanks,

greg k-h

author
#4 lore raw

PATCH v2 2/3 Revert "usb: gadget: f_uac2: add adaptive sync support for capture"

In reply to Ferry Toth

This reverts commit 40c73b30546e759bedcec607fedc2d4be954508f.

The commit is part of a series with commit 24f779dac8f3efb9629adc0e486914d93dc45517 causing a BUG on dwc3 hardware, at least on Intel Merrifield platform when configured through configfs:

BUG: kernel NULL pointer dereference, address: 0000000000000008
...
RIP: 0010:dwc3_gadget_del_and_unmap_request+0x19/0xe0
...
Call Trace:
 dwc3_remove_requests.constprop.0+0x12f/0x170
 __dwc3_gadget_ep_disable+0x7a/0x160
 dwc3_gadget_ep_disable+0x3d/0xd0
 usb_ep_disable+0x1c/0x70
 u_audio_stop_capture+0x79/0x120 [u_audio]
 afunc_set_alt+0x73/0x80 [usb_f_uac2]
 composite_setup+0x224/0x1b90 [libcomposite]

Pavel's suggestion to add
echo "adaptive" > functions/uac2.usb0/c_sync to the configfs script resolves the issue.
Thinh suggests "the crash is probably because of f_uac2 prematurely freeing feedback request before its completion. usb_ep_dequeue() is asynchronous. dwc2() may treat it as a synchronous call so you didn't get a crash."

Revert as this is a regression and the kernel shouldn't crash depending on configuration parameters.

---
 .../ABI/testing/configfs-usb-gadget-uac2      |   1 -
 Documentation/usb/gadget-testing.rst          |   1 -
 drivers/usb/gadget/function/f_uac2.c          | 100 ++----------------
 drivers/usb/gadget/function/u_uac2.h          |   2 -
 4 files changed, 9 insertions(+), 95 deletions(-)
Documentation/ABI/testing/configfs-usb-gadget-uac2 +0 -1
index e7e59d7fb12f..d4356c8b8cd6 100644
@@ -8,7 +8,6 @@ Description:
 		c_chmask   capture channel mask
 		c_srate    capture sampling rate
 		c_ssize    capture sample size (bytes)
-		c_sync     capture synchronization type (async/adaptive)
 		p_chmask   playback channel mask
 		p_srate    playback sampling rate
 		p_ssize    playback sample size (bytes)
Documentation/usb/gadget-testing.rst +0 -1
index f5a12667bd41..2085e7b24eeb 100644
@@ -728,7 +728,6 @@ The uac2 function provides these attributes in its function directory:
 	c_chmask	capture channel mask
 	c_srate		capture sampling rate
 	c_ssize		capture sample size (bytes)
-	c_sync		capture synchronization type (async/adaptive)
 	p_chmask	playback channel mask
 	p_srate		playback sampling rate
 	p_ssize		playback sample size (bytes)
drivers/usb/gadget/function/f_uac2.c +9 -91

172 lines not on this page · raw message

drivers/usb/gadget/function/u_uac2.h +0 -2
index 13589c3c805c..b5035711172d 100644
@@ -21,7 +21,6 @@
 #define UAC2_DEF_CCHMASK 0x3
 #define UAC2_DEF_CSRATE 64000
 #define UAC2_DEF_CSSIZE 2
-#define UAC2_DEF_CSYNC		USB_ENDPOINT_SYNC_ASYNC
 #define UAC2_DEF_REQ_NUM 2
 
 struct f_uac2_opts {
@@ -32,7 +31,6 @@ struct f_uac2_opts {
 	int				c_chmask;
 	int				c_srate;
 	int				c_ssize;
-	int				c_sync;
 	int				req_number;
 	bool				bound;
 
Signature · 1 line
2.30.2
author
#5 lore raw

PATCH v2 3/3 Revert "usb: gadget: f_uac2/u_audio: add feedback endpoint support"

In reply to Ferry Toth

This reverts commit 24f779dac8f3efb9629adc0e486914d93dc45517.

The commit is part of a series with commit 24f779dac8f3efb9629adc0e486914d93dc45517 causing a BUG on dwc3 hardware, at least on Intel Merrifield platform when configured through configfs:

BUG: kernel NULL pointer dereference, address: 0000000000000008
...
RIP: 0010:dwc3_gadget_del_and_unmap_request+0x19/0xe0
...
Call Trace:
 dwc3_remove_requests.constprop.0+0x12f/0x170
 __dwc3_gadget_ep_disable+0x7a/0x160
 dwc3_gadget_ep_disable+0x3d/0xd0
 usb_ep_disable+0x1c/0x70
 u_audio_stop_capture+0x79/0x120 [u_audio]
 afunc_set_alt+0x73/0x80 [usb_f_uac2]
 composite_setup+0x224/0x1b90 [libcomposite]

Pavel's suggestion to add
echo "adaptive" > functions/uac2.usb0/c_sync to the configfs script resolves the issue.
Thinh suggests "the crash is probably because of f_uac2 prematurely freeing feedback request before its completion. usb_ep_dequeue() is asynchronous. dwc2() may treat it as a synchronous call so you didn't get a crash."

Revert as this is a regression and the kernel shouldn't crash depending on configuration parameters.

---
 drivers/usb/gadget/function/f_uac2.c  |  49 +----------
 drivers/usb/gadget/function/u_audio.c | 119 +-------------------------
 drivers/usb/gadget/function/u_audio.h |   3 -
 3 files changed, 3 insertions(+), 168 deletions(-)
drivers/usb/gadget/function/f_uac2.c +1 -48
index 5d63244ba319..7aa4c8bc5a1a 100644
@@ -240,7 +240,7 @@ static struct usb_interface_descriptor std_as_out_if1_desc = {
 	.bDescriptorType = USB_DT_INTERFACE,
 
 	.bAlternateSetting = 1,
-	.bNumEndpoints = 2,
+	.bNumEndpoints = 1,
 	.bInterfaceClass = USB_CLASS_AUDIO,
 	.bInterfaceSubClass = USB_SUBCLASS_AUDIOSTREAMING,
 	.bInterfaceProtocol = UAC_VERSION_2,
@@ -317,37 +317,6 @@ static struct uac2_iso_endpoint_descriptor as_iso_out_desc = {
 	.wLockDelay = 0,
 };
 
-/* STD AS ISO IN Feedback Endpoint */
-static struct usb_endpoint_descriptor fs_epin_fback_desc = {
-	.bLength = USB_DT_ENDPOINT_SIZE,
-	.bDescriptorType = USB_DT_ENDPOINT,
-
-	.bEndpointAddress = USB_DIR_IN,
-	.bmAttributes = USB_ENDPOINT_XFER_ISOC | USB_ENDPOINT_USAGE_FEEDBACK,
-	.wMaxPacketSize = cpu_to_le16(3),
-	.bInterval = 1,
-};
-
-static struct usb_endpoint_descriptor hs_epin_fback_desc = {
-	.bLength = USB_DT_ENDPOINT_SIZE,
-	.bDescriptorType = USB_DT_ENDPOINT,
-
-	.bmAttributes = USB_ENDPOINT_XFER_ISOC | USB_ENDPOINT_USAGE_FEEDBACK,
-	.wMaxPacketSize = cpu_to_le16(4),
-	.bInterval = 4,
-};
-
-static struct usb_endpoint_descriptor ss_epin_fback_desc = {
-	.bLength = USB_DT_ENDPOINT_SIZE,
-	.bDescriptorType = USB_DT_ENDPOINT,
-
-	.bEndpointAddress = USB_DIR_IN,
-	.bmAttributes = USB_ENDPOINT_XFER_ISOC | USB_ENDPOINT_USAGE_FEEDBACK,
-	.wMaxPacketSize = cpu_to_le16(4),
-	.bInterval = 4,
-};
-
-
 /* Audio Streaming IN Interface - Alt0 */
 static struct usb_interface_descriptor std_as_in_if0_desc = {
 	.bLength = sizeof std_as_in_if0_desc,
@@ -462,7 +431,6 @@ static struct usb_descriptor_header *fs_audio_desc[] = {
 	(struct usb_descriptor_header *)&as_out_fmt1_desc,
 	(struct usb_descriptor_header *)&fs_epout_desc,
 	(struct usb_descriptor_header *)&as_iso_out_desc,
-	(struct usb_descriptor_header *)&fs_epin_fback_desc,
 
 	(struct usb_descriptor_header *)&std_as_in_if0_desc,
 	(struct usb_descriptor_header *)&std_as_in_if1_desc,
@@ -493,7 +461,6 @@ static struct usb_descriptor_header *hs_audio_desc[] = {
 	(struct usb_descriptor_header *)&as_out_fmt1_desc,
 	(struct usb_descriptor_header *)&hs_epout_desc,
 	(struct usb_descriptor_header *)&as_iso_out_desc,
-	(struct usb_descriptor_header *)&hs_epin_fback_desc,
 
 	(struct usb_descriptor_header *)&std_as_in_if0_desc,
 	(struct usb_descriptor_header *)&std_as_in_if1_desc,
@@ -525,7 +492,6 @@ static struct usb_descriptor_header *ss_audio_desc[] = {
 	(struct usb_descriptor_header *)&ss_epout_desc,
 	(struct usb_descriptor_header *)&ss_epout_desc_comp,
 	(struct usb_descriptor_header *)&as_iso_out_desc,
-	(struct usb_descriptor_header *)&ss_epin_fback_desc,
 
 	(struct usb_descriptor_header *)&std_as_in_if0_desc,
 	(struct usb_descriptor_header *)&std_as_in_if1_desc,
@@ -602,26 +568,22 @@ static void setup_headers(struct f_uac2_opts *opts,
 	struct usb_ss_ep_comp_descriptor *epin_desc_comp = NULL;
 	struct usb_endpoint_descriptor *epout_desc;
 	struct usb_endpoint_descriptor *epin_desc;
-	struct usb_endpoint_descriptor *epin_fback_desc;
 	int i;
 
 	switch (speed) {
 	case USB_SPEED_FULL:
 		epout_desc = &fs_epout_desc;
 		epin_desc = &fs_epin_desc;
-		epin_fback_desc = &fs_epin_fback_desc;
 		break;
 	case USB_SPEED_HIGH:
 		epout_desc = &hs_epout_desc;
 		epin_desc = &hs_epin_desc;
-		epin_fback_desc = &hs_epin_fback_desc;
 		break;
 	default:
 		epout_desc = &ss_epout_desc;
 		epin_desc = &ss_epin_desc;
 		epout_desc_comp = &ss_epout_desc_comp;
 		epin_desc_comp = &ss_epin_desc_comp;
-		epin_fback_desc = &ss_epin_fback_desc;
 	}
 
 	i = 0;
@@ -649,7 +611,6 @@ static void setup_headers(struct f_uac2_opts *opts,
 			headers[i++] = USBDHDR(epout_desc_comp);
 
 		headers[i++] = USBDHDR(&as_iso_out_desc);
-		headers[i++] = USBDHDR(epin_fback_desc);
 	}
 	if (EPIN_EN(opts)) {
 		headers[i++] = USBDHDR(&std_as_in_if0_desc);
@@ -883,12 +844,6 @@ afunc_bind(struct usb_configuration *cfg, struct usb_function *fn)
 			dev_err(dev, "%s:%d Error!\n", __func__, __LINE__);
 			return -ENODEV;
 		}
-		agdev->in_ep_fback = usb_ep_autoconfig(gadget,
-						       &fs_epin_fback_desc);
-		if (!agdev->in_ep_fback) {
-			dev_err(dev, "%s:%d Error!\n", __func__, __LINE__);
-			return -ENODEV;
-		}
 	}
 
 	if (EPIN_EN(uac2_opts)) {
@@ -912,10 +867,8 @@ afunc_bind(struct usb_configuration *cfg, struct usb_function *fn)
 				le16_to_cpu(ss_epout_desc.wMaxPacketSize));
 
 	hs_epout_desc.bEndpointAddress = fs_epout_desc.bEndpointAddress;
-	hs_epin_fback_desc.bEndpointAddress = fs_epin_fback_desc.bEndpointAddress;
 	hs_epin_desc.bEndpointAddress = fs_epin_desc.bEndpointAddress;
 	ss_epout_desc.bEndpointAddress = fs_epout_desc.bEndpointAddress;
-	ss_epin_fback_desc.bEndpointAddress = fs_epin_fback_desc.bEndpointAddress;
 	ss_epin_desc.bEndpointAddress = fs_epin_desc.bEndpointAddress;
 
 	setup_descriptor(uac2_opts);
drivers/usb/gadget/function/u_audio.c +2 -117

161 lines not on this page · raw message

drivers/usb/gadget/function/u_audio.h +0 -3
index 53e6baf55cbf..5ea6b86f1fda 100644
@@ -30,10 +30,7 @@ struct g_audio {
 	struct usb_gadget *gadget;
 
 	struct usb_ep *in_ep;
-
 	struct usb_ep *out_ep;
-	/* feedback IN endpoint corresponding to out_ep */
-	struct usb_ep *in_ep_fback;
 
 	/* Max packet size for all in_ep possible speeds */
 	unsigned int in_ep_maxpsize;
Signature · 1 line
2.30.2
#6 lore raw
In reply to Ferry Toth
Quoted 4 lines · Ferry Toth

Although there is a patch resolving this issue (see
https://lore.kernel.org/linux-usb/[email protected]/T/#u)
it needs a little work and will not be ready for v5.14.0 release. Until then revert the series.

Seems like a quite messy solution when the fix available :/ Change with the updated commit description is avaialable BTW [0]

[0]: https://lore.kernel.org/[email protected]

Quoted 17 lines

v2:
- Added SoB (Balbi)

Ferry Toth (3):
Revert "usb: gadget: u_audio: add real feedback implementation" Revert "usb: gadget: f_uac2: add adaptive sync support for capture" Revert "usb: gadget: f_uac2/u_audio: add feedback endpoint support"

 .../ABI/testing/configfs-usb-gadget-uac2      |   2 -
 Documentation/usb/gadget-testing.rst          |   2 -
 drivers/usb/gadget/function/f_uac2.c          | 144 +----------
 drivers/usb/gadget/function/u_audio.c         | 225 +-----------------
 drivers/usb/gadget/function/u_audio.h         |  12 -
 drivers/usb/gadget/function/u_uac2.h          |   4 -
 6 files changed, 6 insertions(+), 383 deletions(-)
#7 lore raw
Quoted 8 lines · Jerome Brunet
Quoted 4 lines · Ferry Toth

Although there is a patch resolving this issue (see
https://lore.kernel.org/linux-usb/[email protected]/T/#u)
it needs a little work and will not be ready for v5.14.0 release. Until then revert the series.

Seems like a quite messy solution when the fix available :/

Is it? AFAIR Thing pointed out to some problems with the proposed solution. Have those been addressed?

Quoted 3 lines

Change with the updated commit description is avaialable BTW [0]

[0]: https://lore.kernel.org/[email protected]

Dunno, but this gives me 404.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#8 lore raw

Op 27-08-2021 om 11:15 schreef Andy Shevchenko:

Quoted 10 lines · Jerome Brunet
Quoted 8 lines · Ferry Toth
Quoted 5 lines

Although there is a patch resolving this issue (see
https://lore.kernel.org/linux-usb/[email protected]/T/#u)
it needs a little work and will not be ready for v5.14.0 release. Until then revert the series.

Seems like a quite messy solution when the fix available :/

Quoted 9 lines

Is it? AFAIR Thing pointed out to some problems with the proposed solution. Have those been addressed?

Quoted 3 lines

Change with the updated commit description is avaialable BTW [0]

[0]: https://lore.kernel.org/[email protected]

Dunno, but this gives me 404.

I think:
https://lore.kernel.org/linux-usb/[email protected]/T/#m922149b7e74204c8ed1bed2c624910ab4eafd43c

#10 lore raw

Hi
Op 27-08-2021 om 10:27 schreef Greg Kroah-Hartman:

Quoted 10 lines · Ferry Toth
Quoted 4 lines

Although there is a patch resolving this issue (see
https://lore.kernel.org/linux-usb/[email protected]/T/#u)
it needs a little work and will not be ready for v5.14.0 release. Until then revert the series.

revert the series for what? 5.14-final needs these reverts? Or are these for 5.15-rc1?

confused,

Apologies. Yes, the idea was to revert for 5.14-final as the series creates a regression.

However, an updated patch "usb: gadget: f_uac2: fixup feedback endpoint stop"
https://lore.kernel.org/linux-usb/[email protected]/T/#m922149b7e74204c8ed1bed2c624910ab4eafd43c
now has been acked by Felipe.

If we can get that it for 5.14-final it would be less messy.

Can we?

Quoted 2 lines

greg k-h