gadget.c (51da43b555ba19e0230ff5a5acc58eb0fffb6026) gadget.c (15186f1011b088432a10f435aa6e2df5ab177503)
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/

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

2969 if (value)
2970 dwc2_hsotg_stall_ep0(hs);
2971 else
2972 dev_warn(hs->dev,
2973 "%s: can't clear halt on ep0\n", __func__);
2974 return 0;
2975 }
2976
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/

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

2969 if (value)
2970 dwc2_hsotg_stall_ep0(hs);
2971 else
2972 dev_warn(hs->dev,
2973 "%s: can't clear halt on ep0\n", __func__);
2974 return 0;
2975 }
2976
2977 if (hs_ep->isochronous) {
2978 dev_err(hs->dev, "%s is Isochronous Endpoint\n", ep->name);
2979 return -EINVAL;
2980 }
2981
2977 if (!now && value && !list_empty(&hs_ep->queue)) {
2978 dev_dbg(hs->dev, "%s request is pending, cannot halt\n",
2979 ep->name);
2980 return -EAGAIN;
2981 }
2982
2983 if (hs_ep->dir_in) {
2984 epreg = DIEPCTL(index);

--- 818 unchanged lines hidden ---
2982 if (!now && value && !list_empty(&hs_ep->queue)) {
2983 dev_dbg(hs->dev, "%s request is pending, cannot halt\n",
2984 ep->name);
2985 return -EAGAIN;
2986 }
2987
2988 if (hs_ep->dir_in) {
2989 epreg = DIEPCTL(index);

--- 818 unchanged lines hidden ---