hack ehci advance async to handle disconnect via hub

This commit is contained in:
hathach
2013-09-30 18:40:20 +07:00
parent 5eebec61f1
commit 93821c55ce
5 changed files with 87 additions and 34 deletions

View File

@@ -572,6 +572,13 @@ static void port_connect_status_change_isr(uint8_t hostid)
}
}
// TODO refractor abtract later
void hcd_hub_advance_asyn(uint8_t hostid)
{
ehci_registers_t* const regs = get_operational_register(hostid);
regs->usb_cmd_bit.advacne_async = 1; // Async doorbell check EHCI 4.8.2 for operational details
}
static void qhd_xfer_complete_isr(ehci_qhd_t * p_qhd)
{
uint8_t max_loop = 0;