Skip to content

Commit 18a03ce

Browse files
jfischer-nocarlescufi
authored andcommitted
tests: drivers: udc: fix udc_ep_try_config() test
Behavior of udc_ep_try_config() is changed by the commit e60a4ef ("drivers: udc: do not update MPS for isochronous endpoints"), update test case accordingly. Signed-off-by: Johann Fischer <[email protected]>
1 parent 0d9fea8 commit 18a03ce

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/drivers/udc/src/main.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@ static void test_udc_ep_try_config(const struct device *dev,
9595
ed->bInterval);
9696
zassert_equal(err, 0, "Failed to test endpoint configuration");
9797

98+
if (ed->bmAttributes == USB_EP_TYPE_CONTROL ||
99+
ed->bmAttributes == USB_EP_TYPE_ISO) {
100+
/*
101+
* Skip subsequent test since udc_ep_try_config() does not
102+
* update mps argument for control and iso endpoints.
103+
*/
104+
return;
105+
}
106+
98107
mps = 0;
99108
err = udc_ep_try_config(dev, ed->bEndpointAddress,
100109
ed->bmAttributes, &mps,

0 commit comments

Comments
 (0)