Skip to content

Commit 955d0fb

Browse files
rmsilvagregkh
authored andcommitted
usb: isp1760: use the right irq status bit
Instead of using the fields enum values to check interrupts trigged, use the correct bit values. Reported-by: Dietmar Eggemann <[email protected]> Tested-by: Dietmar Eggemann <[email protected]> Signed-off-by: Rui Miguel Silva <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 36815a4 commit 955d0fb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/usb/isp1760/isp1760-udc.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,15 +1363,15 @@ static irqreturn_t isp1760_udc_irq(int irq, void *dev)
13631363

13641364
status = isp1760_udc_irq_get_status(udc);
13651365

1366-
if (status & DC_IEVBUS) {
1366+
if (status & ISP176x_DC_IEVBUS) {
13671367
dev_dbg(udc->isp->dev, "%s(VBUS)\n", __func__);
13681368
/* The VBUS interrupt is only triggered when VBUS appears. */
13691369
spin_lock(&udc->lock);
13701370
isp1760_udc_connect(udc);
13711371
spin_unlock(&udc->lock);
13721372
}
13731373

1374-
if (status & DC_IEBRST) {
1374+
if (status & ISP176x_DC_IEBRST) {
13751375
dev_dbg(udc->isp->dev, "%s(BRST)\n", __func__);
13761376

13771377
isp1760_udc_reset(udc);
@@ -1391,18 +1391,18 @@ static irqreturn_t isp1760_udc_irq(int irq, void *dev)
13911391
}
13921392
}
13931393

1394-
if (status & DC_IEP0SETUP) {
1394+
if (status & ISP176x_DC_IEP0SETUP) {
13951395
dev_dbg(udc->isp->dev, "%s(EP0SETUP)\n", __func__);
13961396

13971397
isp1760_ep0_setup(udc);
13981398
}
13991399

1400-
if (status & DC_IERESM) {
1400+
if (status & ISP176x_DC_IERESM) {
14011401
dev_dbg(udc->isp->dev, "%s(RESM)\n", __func__);
14021402
isp1760_udc_resume(udc);
14031403
}
14041404

1405-
if (status & DC_IESUSP) {
1405+
if (status & ISP176x_DC_IESUSP) {
14061406
dev_dbg(udc->isp->dev, "%s(SUSP)\n", __func__);
14071407

14081408
spin_lock(&udc->lock);
@@ -1413,7 +1413,7 @@ static irqreturn_t isp1760_udc_irq(int irq, void *dev)
14131413
spin_unlock(&udc->lock);
14141414
}
14151415

1416-
if (status & DC_IEHS_STA) {
1416+
if (status & ISP176x_DC_IEHS_STA) {
14171417
dev_dbg(udc->isp->dev, "%s(HS_STA)\n", __func__);
14181418
udc->gadget.speed = USB_SPEED_HIGH;
14191419
}

0 commit comments

Comments
 (0)