Merge branches 'acpi-spcr', 'acpi-osi', 'acpi-bus', 'acpi-scan' and 'acpi-misc'
[sfrench/cifs-2.6.git] / drivers / usb / dwc3 / ep0.c
index a78c78e7a8c3c18ac3d50f1b4dc18ec9517ae248..827e376bfa97106f1ccbeefcad40bc2a05357c8b 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * ep0.c - DesignWare USB3 DRD Controller Endpoint 0 Handling
  *
  * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com
@@ -319,10 +319,16 @@ static int dwc3_ep0_handle_status(struct dwc3 *dwc,
 {
        struct dwc3_ep          *dep;
        u32                     recip;
+       u32                     value;
        u32                     reg;
        u16                     usb_status = 0;
        __le16                  *response_pkt;
 
+       /* We don't support PTM_STATUS */
+       value = le16_to_cpu(ctrl->wValue);
+       if (value != 0)
+               return -EINVAL;
+
        recip = ctrl->bRequestType & USB_RECIP_MASK;
        switch (recip) {
        case USB_RECIP_DEVICE: