aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Gilling <konkers@android.com>2011-03-24 11:47:39 -0700
committerVikram Pandita <vikram.pandita@ti.com>2011-03-24 11:49:38 -0700
commitf3f5a97a74fddf4c7adbca01c1d4f64fc7628f07 (patch)
treec442fe0a6c78dcdb92776d80f0dee566ee6dbd0b
parentdc65fe3828429cffdff8dacd028d567004b6fca7 (diff)
downloadu-boot-pandroid-f3f5a97a74fddf4c7adbca01c1d4f64fc7628f07.tar.gz
fastboot: handle USB_REQ_CLEAR_FEATURE in fastboot
This is needed for OSx specifically. Signed-off-by: Erik Gilling <konkers@android.com> Tested-by: Vikram Pandita <vikram.pandita@ti.com>
-rw-r--r--drivers/fastboot.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/fastboot.c b/drivers/fastboot.c
index f74279c9..18198dcb 100644
--- a/drivers/fastboot.c
+++ b/drivers/fastboot.c
@@ -771,6 +771,21 @@ static int fastboot_poll_h (void)
break;
}
}
+ else if (USB_RECIP_ENDPOINT == (req.bmRequestType & USB_REQ_RECIPIENT_MASK))
+ {
+ switch (req.bRequest)
+ {
+ case USB_REQ_CLEAR_FEATURE:
+ ACK_REQ();
+ ret = 0;
+ break;
+
+ default:
+ NAK_REQ();
+ ret = -1;
+ break;
+ }
+ }
else
{
NAK_REQ();