gadget.c (d784f1e50977e58db23a79181971c3c0f62452e5) | gadget.c (1e01129373f757925a652ea4ea5b278f8c2b9222) |
---|---|
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/ --- 2554 unchanged lines hidden (view full) --- 2563 struct s3c_hsotg_ep *hs_ep = our_ep(ep); 2564 struct s3c_hsotg *hsotg = hs_ep->parent; 2565 int dir_in = hs_ep->dir_in; 2566 int index = hs_ep->index; 2567 unsigned long flags; 2568 u32 epctrl_reg; 2569 u32 ctrl; 2570 | 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/ --- 2554 unchanged lines hidden (view full) --- 2563 struct s3c_hsotg_ep *hs_ep = our_ep(ep); 2564 struct s3c_hsotg *hsotg = hs_ep->parent; 2565 int dir_in = hs_ep->dir_in; 2566 int index = hs_ep->index; 2567 unsigned long flags; 2568 u32 epctrl_reg; 2569 u32 ctrl; 2570 |
2571 dev_info(hsotg->dev, "%s(ep %p)\n", __func__, ep); | 2571 dev_dbg(hsotg->dev, "%s(ep %p)\n", __func__, ep); |
2572 2573 if (ep == &hsotg->eps[0].ep) { 2574 dev_err(hsotg->dev, "%s: called for ep0\n", __func__); 2575 return -EINVAL; 2576 } 2577 2578 epctrl_reg = dir_in ? DIEPCTL(index) : DOEPCTL(index); 2579 --- 41 unchanged lines hidden (view full) --- 2621 */ 2622static int s3c_hsotg_ep_dequeue(struct usb_ep *ep, struct usb_request *req) 2623{ 2624 struct s3c_hsotg_req *hs_req = our_req(req); 2625 struct s3c_hsotg_ep *hs_ep = our_ep(ep); 2626 struct s3c_hsotg *hs = hs_ep->parent; 2627 unsigned long flags; 2628 | 2572 2573 if (ep == &hsotg->eps[0].ep) { 2574 dev_err(hsotg->dev, "%s: called for ep0\n", __func__); 2575 return -EINVAL; 2576 } 2577 2578 epctrl_reg = dir_in ? DIEPCTL(index) : DOEPCTL(index); 2579 --- 41 unchanged lines hidden (view full) --- 2621 */ 2622static int s3c_hsotg_ep_dequeue(struct usb_ep *ep, struct usb_request *req) 2623{ 2624 struct s3c_hsotg_req *hs_req = our_req(req); 2625 struct s3c_hsotg_ep *hs_ep = our_ep(ep); 2626 struct s3c_hsotg *hs = hs_ep->parent; 2627 unsigned long flags; 2628 |
2629 dev_info(hs->dev, "ep_dequeue(%p,%p)\n", ep, req); | 2629 dev_dbg(hs->dev, "ep_dequeue(%p,%p)\n", ep, req); |
2630 2631 spin_lock_irqsave(&hs->lock, flags); 2632 2633 if (!on_list(hs_ep, hs_req)) { 2634 spin_unlock_irqrestore(&hs->lock, flags); 2635 return -EINVAL; 2636 } 2637 --- 1030 unchanged lines hidden --- | 2630 2631 spin_lock_irqsave(&hs->lock, flags); 2632 2633 if (!on_list(hs_ep, hs_req)) { 2634 spin_unlock_irqrestore(&hs->lock, flags); 2635 return -EINVAL; 2636 } 2637 --- 1030 unchanged lines hidden --- |