Revert "usb: gadget: transfer_type depends on CONFIG_NO_GKI"
This reverts commit 866525fd9f.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Iba893b9036a01bcdc981311a9846b2375e167c02
This commit is contained in:
parent
023c6f447c
commit
da52789497
2 changed files with 3 additions and 3 deletions
|
|
@ -67,7 +67,7 @@ struct usb_ep *usb_ep_autoconfig_ss(
|
|||
)
|
||||
{
|
||||
struct usb_ep *ep;
|
||||
#if defined(CONFIG_ARCH_ROCKCHIP) && defined(CONFIG_NO_GKI)
|
||||
#ifdef CONFIG_ARCH_ROCKCHIP
|
||||
u8 type = desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK;
|
||||
#endif
|
||||
|
||||
|
|
@ -113,7 +113,7 @@ found_ep:
|
|||
ep->desc = NULL;
|
||||
ep->comp_desc = NULL;
|
||||
ep->claimed = true;
|
||||
#if defined(CONFIG_ARCH_ROCKCHIP) && defined(CONFIG_NO_GKI)
|
||||
#ifdef CONFIG_ARCH_ROCKCHIP
|
||||
ep->transfer_type = type;
|
||||
if (gadget_is_superspeed(gadget) && ep_comp) {
|
||||
switch (type) {
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ struct usb_ep {
|
|||
u8 address;
|
||||
const struct usb_endpoint_descriptor *desc;
|
||||
const struct usb_ss_ep_comp_descriptor *comp_desc;
|
||||
#if defined(CONFIG_ARCH_ROCKCHIP) && defined(CONFIG_NO_GKI)
|
||||
#ifdef CONFIG_ARCH_ROCKCHIP
|
||||
u8 transfer_type;
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue