Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280828
b: refs/heads/master
c: 25b8ff6
h: refs/heads/master
v: v3
  • Loading branch information
Felipe Balbi committed Dec 12, 2011
1 parent 74e4080 commit ab2148a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4878a02898bab1a988206341e529997cb46e5f29
refs/heads/master: 25b8ff68bf1d4954d4a9dcb4862c6b6a53cb09e2
5 changes: 2 additions & 3 deletions trunk/drivers/usb/dwc3/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/delay.h>

#include <asm/uaccess.h>
#include <linux/uaccess.h>

#include "core.h"
#include "gadget.h"
Expand Down Expand Up @@ -481,7 +480,7 @@ int __devinit dwc3_debugfs_init(struct dwc3 *dwc)
int ret;

root = debugfs_create_dir(dev_name(dwc->dev), NULL);
if (IS_ERR(root)){
if (IS_ERR(root)) {
ret = PTR_ERR(root);
goto err0;
}
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/usb/dwc3/ep0.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ static void dwc3_ep0_status_cmpl(struct usb_ep *ep, struct usb_request *req)
/*
* ch 9.4.5
*/
static int dwc3_ep0_handle_status(struct dwc3 *dwc, struct usb_ctrlrequest *ctrl)
static int dwc3_ep0_handle_status(struct dwc3 *dwc,
struct usb_ctrlrequest *ctrl)
{
struct dwc3_ep *dep;
u32 recip;
Expand All @@ -285,7 +286,7 @@ static int dwc3_ep0_handle_status(struct dwc3 *dwc, struct usb_ctrlrequest *ctrl
case USB_RECIP_ENDPOINT:
dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex);
if (!dep)
return -EINVAL;
return -EINVAL;

if (dep->flags & DWC3_EP_STALL)
usb_status = 1 << USB_ENDPOINT_HALT;
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,8 +745,9 @@ static int __dwc3_gadget_kick_transfer(struct dwc3_ep *dep, u16 cmd_param,
dep->flags |= DWC3_EP_BUSY;
dep->res_trans_idx = dwc3_gadget_ep_get_transfer_index(dwc,
dep->number);
if (!dep->res_trans_idx)
printk_once(KERN_ERR "%s() res_trans_idx is invalid\n", __func__);

WARN_ON_ONCE(!dep->res_trans_idx);

return 0;
}

Expand Down Expand Up @@ -1264,11 +1265,10 @@ static int __devinit dwc3_gadget_init_endpoints(struct dwc3 *dwc)
&dwc->gadget.ep_list);

ret = dwc3_alloc_trb_pool(dep);
if (ret) {
dev_err(dwc->dev, "%s: failed to allocate TRB pool\n", dep->name);
if (ret)
return ret;
}
}

INIT_LIST_HEAD(&dep->request_list);
INIT_LIST_HEAD(&dep->req_queued);
}
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/usb/dwc3/gadget.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ static inline void dwc3_gadget_move_request_queued(struct dwc3_request *req)
void dwc3_gadget_giveback(struct dwc3_ep *dep, struct dwc3_request *req,
int status);

void dwc3_ep0_interrupt(struct dwc3 *dwc, const struct dwc3_event_depevt *event);
void dwc3_ep0_interrupt(struct dwc3 *dwc,
const struct dwc3_event_depevt *event);
void dwc3_ep0_out_start(struct dwc3 *dwc);
int dwc3_gadget_ep0_queue(struct usb_ep *ep, struct usb_request *request,
gfp_t gfp_flags);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/dwc3/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#ifndef __DRIVERS_USB_DWC3_IO_H
#define __DRIVERS_USB_DWC3_IO_H

#include <asm/io.h>
#include <linux/io.h>

static inline u32 dwc3_readl(void __iomem *base, u32 offset)
{
Expand Down

0 comments on commit ab2148a

Please sign in to comment.