]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
usb: gadget: aspeed: Implement dummy hub TT requests
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 26 Jul 2019 05:05:39 +0000 (15:05 +1000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 12 Aug 2019 05:54:49 +0000 (08:54 +0300)
We just accept them instead of stalling and return
zeros on GetTTState.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/aspeed-vhub/hub.c

index 0755115fd90df3b4359d6f5c4f02eb13be896ff9..19b3517e04c0abc9f0b300f64a0e6972ecb57d2e 100644 (file)
@@ -730,6 +730,12 @@ enum std_req_rc ast_vhub_class_hub_request(struct ast_vhub_ep *ep,
        case ClearPortFeature:
                EPDBG(ep, "ClearPortFeature(%d,%d)\n", wIndex & 0xf, wValue);
                return ast_vhub_clr_port_feature(ep, wIndex & 0xf, wValue);
+       case ClearTTBuffer:
+       case ResetTT:
+       case StopTT:
+               return std_req_complete;
+       case GetTTState:
+               return ast_vhub_simple_reply(ep, 0, 0, 0, 0);
        default:
                EPDBG(ep, "Unknown class request\n");
        }