diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-17 12:20:35 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-03-20 16:05:12 +0100 |
commit | cb0927332cb0f7e7a2dd9b631124389c2ada76d6 (patch) | |
tree | daaf01550e19835a6d7141045be48d4fcfbf2961 /drivers/usb/dwc3 | |
parent | 253e3e4f47bfbc2919dbe9e0dce35f054009cdb6 (diff) | |
download | barebox-cb0927332cb0f7e7a2dd9b631124389c2ada76d6.tar.gz barebox-cb0927332cb0f7e7a2dd9b631124389c2ada76d6.tar.xz |
usb: ch9: Update from Linux Kernel
Update ch9.h from Linux-6.3-rc2. Linux has split up the file into a
kernel and a uapi portion. We do the same for barebox for easier
updating in the future.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/debug.h | 10 | ||||
-rw-r--r-- | drivers/usb/dwc3/ep0.c | 10 | ||||
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 10 |
3 files changed, 15 insertions, 15 deletions
diff --git a/drivers/usb/dwc3/debug.h b/drivers/usb/dwc3/debug.h index 1494df261d..054f1717e1 100644 --- a/drivers/usb/dwc3/debug.h +++ b/drivers/usb/dwc3/debug.h @@ -291,19 +291,19 @@ static inline void dwc3_decode_set_clear_feature(__u8 t, __u8 b, __u16 v, v == USB_DEVICE_TEST_MODE ? ({ char *s; switch (i) { - case TEST_J: + case USB_TEST_J: s = ": TEST_J"; break; - case TEST_K: + case USB_TEST_K: s = ": TEST_K"; break; - case TEST_SE0_NAK: + case USB_TEST_SE0_NAK: s = ": TEST_SE0_NAK"; break; - case TEST_PACKET: + case USB_TEST_PACKET: s = ": TEST_PACKET"; break; - case TEST_FORCE_EN: + case USB_TEST_FORCE_ENABLE: s = ": TEST_FORCE_EN"; break; default: diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index f4864d0388..a8503a2bad 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c @@ -435,11 +435,11 @@ static int dwc3_ep0_handle_test(struct dwc3 *dwc, enum usb_device_state state, return -EINVAL; switch (wIndex >> 8) { - case TEST_J: - case TEST_K: - case TEST_SE0_NAK: - case TEST_PACKET: - case TEST_FORCE_EN: + case USB_TEST_J: + case USB_TEST_K: + case USB_TEST_SE0_NAK: + case USB_TEST_PACKET: + case USB_TEST_FORCE_ENABLE: dwc->test_mode_nr = wIndex >> 8; dwc->test_mode = true; break; diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 1aec73c7d9..0203b7bfc1 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -44,11 +44,11 @@ int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) reg &= ~DWC3_DCTL_TSTCTRL_MASK; switch (mode) { - case TEST_J: - case TEST_K: - case TEST_SE0_NAK: - case TEST_PACKET: - case TEST_FORCE_EN: + case USB_TEST_J: + case USB_TEST_K: + case USB_TEST_SE0_NAK: + case USB_TEST_PACKET: + case USB_TEST_FORCE_ENABLE: reg |= mode << 1; break; default: |