gadget.c (729e65746d4f225792e33371f3ae6d614ec66032) gadget.c (c3b22fe2e4cc45adb037e204e08910e10c5e9286)
1/**
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
4 *
5 * Copyright 2008 Openmoko, Inc.
6 * Copyright 2008 Simtec Electronics
7 * Ben Dooks <ben@simtec.co.uk>
8 * http://armlinux.simtec.co.uk/

--- 2513 unchanged lines hidden (view full) ---

2522 if (!hs_req) {
2523 dev_dbg(hsotg->dev, "XferCompl but no req\n");
2524 return;
2525 }
2526
2527 /* Finish ZLP handling for IN EP0 transactions */
2528 if (hs_ep->index == 0 && hsotg->ep0_state == DWC2_EP0_STATUS_IN) {
2529 dev_dbg(hsotg->dev, "zlp packet sent\n");
1/**
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
4 *
5 * Copyright 2008 Openmoko, Inc.
6 * Copyright 2008 Simtec Electronics
7 * Ben Dooks <ben@simtec.co.uk>
8 * http://armlinux.simtec.co.uk/

--- 2513 unchanged lines hidden (view full) ---

2522 if (!hs_req) {
2523 dev_dbg(hsotg->dev, "XferCompl but no req\n");
2524 return;
2525 }
2526
2527 /* Finish ZLP handling for IN EP0 transactions */
2528 if (hs_ep->index == 0 && hsotg->ep0_state == DWC2_EP0_STATUS_IN) {
2529 dev_dbg(hsotg->dev, "zlp packet sent\n");
2530
2531 /*
2532 * While send zlp for DWC2_EP0_STATUS_IN EP direction was
2533 * changed to IN. Change back to complete OUT transfer request
2534 */
2535 hs_ep->dir_in = 0;
2536
2530 dwc2_hsotg_complete_request(hsotg, hs_ep, hs_req, 0);
2531 if (hsotg->test_mode) {
2532 int ret;
2533
2534 ret = dwc2_hsotg_set_test_mode(hsotg, hsotg->test_mode);
2535 if (ret < 0) {
2536 dev_dbg(hsotg->dev, "Invalid Test #%d\n",
2537 hsotg->test_mode);

--- 2262 unchanged lines hidden ---
2537 dwc2_hsotg_complete_request(hsotg, hs_ep, hs_req, 0);
2538 if (hsotg->test_mode) {
2539 int ret;
2540
2541 ret = dwc2_hsotg_set_test_mode(hsotg, hsotg->test_mode);
2542 if (ret < 0) {
2543 dev_dbg(hsotg->dev, "Invalid Test #%d\n",
2544 hsotg->test_mode);

--- 2262 unchanged lines hidden ---