Skip to content

Commit 7d708c1

Browse files
Thinh Nguyengregkh
authored andcommitted
Revert "usb: dwc3: Support EBC feature of DWC_usb31"
This reverts commit 398aa9a. The update to the gadget API to support EBC feature is incomplete. It's missing at least the following: * New usage documentation * Gadget capability check * Condition for the user to check how many and which endpoints can be used as "fifo_mode" * Description of how it can affect completed request (e.g. dwc3 won't update TRB on completion -- ie. how it can affect request's actual length report) Let's revert this until it's ready. Fixes: 398aa9a ("usb: dwc3: Support EBC feature of DWC_usb31") Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://lore.kernel.org/r/3042f847ff904b4dd4e4cf66a1b9df470e63439e.1707441690.git.Thinh.Nguyen@synopsys.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent b55fe36 commit 7d708c1

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

drivers/usb/dwc3/core.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@
376376
/* Global HWPARAMS4 Register */
377377
#define DWC3_GHWPARAMS4_HIBER_SCRATCHBUFS(n) (((n) & (0x0f << 13)) >> 13)
378378
#define DWC3_MAX_HIBER_SCRATCHBUFS 15
379-
#define DWC3_EXT_BUFF_CONTROL BIT(21)
380379

381380
/* Global HWPARAMS6 Register */
382381
#define DWC3_GHWPARAMS6_BCSUPPORT BIT(14)

drivers/usb/dwc3/gadget.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -673,12 +673,6 @@ static int dwc3_gadget_set_ep_config(struct dwc3_ep *dep, unsigned int action)
673673
params.param1 |= DWC3_DEPCFG_BINTERVAL_M1(bInterval_m1);
674674
}
675675

676-
if (dep->endpoint.fifo_mode) {
677-
if (!(dwc->hwparams.hwparams4 & DWC3_EXT_BUFF_CONTROL))
678-
return -EINVAL;
679-
params.param1 |= DWC3_DEPCFG_EBC_HWO_NOWB | DWC3_DEPCFG_USE_EBC;
680-
}
681-
682676
return dwc3_send_gadget_ep_cmd(dep, DWC3_DEPCMD_SETEPCONFIG, &params);
683677
}
684678

drivers/usb/dwc3/gadget.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ struct dwc3;
2626
#define DWC3_DEPCFG_XFER_NOT_READY_EN BIT(10)
2727
#define DWC3_DEPCFG_FIFO_ERROR_EN BIT(11)
2828
#define DWC3_DEPCFG_STREAM_EVENT_EN BIT(13)
29-
#define DWC3_DEPCFG_EBC_HWO_NOWB BIT(14)
30-
#define DWC3_DEPCFG_USE_EBC BIT(15)
3129
#define DWC3_DEPCFG_BINTERVAL_M1(n) (((n) & 0xff) << 16)
3230
#define DWC3_DEPCFG_STREAM_CAPABLE BIT(24)
3331
#define DWC3_DEPCFG_EP_NUMBER(n) (((n) & 0x1f) << 25)

include/linux/usb/gadget.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ struct usb_ep {
236236
unsigned max_streams:16;
237237
unsigned mult:2;
238238
unsigned maxburst:5;
239-
unsigned fifo_mode:1;
240239
u8 address;
241240
const struct usb_endpoint_descriptor *desc;
242241
const struct usb_ss_ep_comp_descriptor *comp_desc;

0 commit comments

Comments
 (0)