We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac55d16 commit 79aa3e1Copy full SHA for 79aa3e1
drivers/usb/cdns3/drd.c
@@ -483,11 +483,11 @@ int cdns_drd_exit(struct cdns *cdns)
483
/* Indicate the cdns3 core was power lost before */
484
bool cdns_power_is_lost(struct cdns *cdns)
485
{
486
- if (cdns->version == CDNS3_CONTROLLER_V1) {
487
- if (!(readl(&cdns->otg_v1_regs->simulate) & BIT(0)))
+ if (cdns->version == CDNS3_CONTROLLER_V0) {
+ if (!(readl(&cdns->otg_v0_regs->simulate) & BIT(0)))
488
return true;
489
} else {
490
- if (!(readl(&cdns->otg_v0_regs->simulate) & BIT(0)))
+ if (!(readl(&cdns->otg_v1_regs->simulate) & BIT(0)))
491
492
}
493
return false;
0 commit comments