/* Device enumeration step 6 End of Get device descriptor request. Wait 20ms in IDLE state.  */
static void uhc_enumeration_step6(usb_add_t add, uhd_trans_status_t status, uint16_t payload_trans)
/* Device enumeration step 6 End of Get device descriptor request. Wait 20ms in IDLE state.  */
static void uhc_enumeration_step6(usb_add_t add, uhd_trans_status_t status, uint16_t payload_trans)
{
	UNUSED(add);
	if ((status != UHD_TRANS_NOERROR) || (payload_trans < 8)
			|| (uhc_dev_enum->dev_desc.bDescriptorType != USB_DT_DEVICE)) {
		uhc_enumeration_error((status == UHD_TRANS_DISCONNECT)?
				UHC_ENUM_DISCONNECT:UHC_ENUM_FAIL);
		return;
	}
	uhc_enable_timeout_callback(20, uhc_enumeration_step7);
}