Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185383
b: refs/heads/master
c: b00ce11
h: refs/heads/master
i:
  185381: 4102685
  185379: 6920c88
  185375: 2b4f3bd
v: v3
  • Loading branch information
Michal Nazarewicz authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent b4f2ad5 commit 2ad2181
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 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: 7f1ee82695654faf0a93fc0abf3b08eb354ef1f6
refs/heads/master: b00ce11f00c9e86442de000e8bd3dd42f089c8e1
15 changes: 6 additions & 9 deletions trunk/drivers/usb/gadget/f_mass_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,12 @@ static int fsg_setup(struct usb_function *f,
return -EDOM;
VDBG(fsg, "get max LUN\n");
*(u8 *) req->buf = fsg->common->nluns - 1;
return 1;

/* Respond with data/status */
req->length = min(1, w_length);
fsg->common->ep0req_name =
ctrl->bRequestType & USB_DIR_IN ? "ep0-in" : "ep0-out";
return ep0_queue(fsg->common);
}

VDBG(fsg,
Expand Down Expand Up @@ -2528,14 +2533,6 @@ static void handle_exception(struct fsg_common *common)

case FSG_STATE_CONFIG_CHANGE:
rc = do_set_config(common, new_config);
if (common->ep0_req_tag != exception_req_tag)
break;
if (rc != 0) { /* STALL on errors */
DBG(common, "ep0 set halt\n");
usb_ep_set_halt(common->ep0);
} else { /* Complete the status stage */
ep0_queue(common);
}
break;

case FSG_STATE_EXIT:
Expand Down

0 comments on commit 2ad2181

Please sign in to comment.