Hello. On 03-06-2011 11:53, Alex He wrote:
To handle the Endpoint Not Enabled Error described in section 4.7 of the xHCI spec v1.0. Add the limit condition to avoid ringing the doorbell of the dis- abled slot and do the WARN for the Endpoint Not Enabled Error.
Signed-off-by: Alex He<alex.he@xxxxxxx>
[...]
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index ac0196e..5292d07 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -558,6 +558,10 @@ struct xhci_slot_ctx { /* bits 8:26 reserved */ /* Slot state */ #define SLOT_STATE (0x1f << 27) +#define SLOT_DISABLED 0 +#define SLOT_DEFAULT 1 +#define SLOT_ADDRESSED 2 +#define SLOT_CONFIGURED 3 #define GET_SLOT_STATE(p) (((p) & (0x1f << 27)) >> 27)
These states already got added by this patch (which is about to be accepted into 3.0):
http://marc.info/?l=linux-usb&m=130706553807513 WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html