Commit 581d667
risc-v/mpfs: usb: don't try nonexistent ep int flags
Currently the irq handler checks many reserved bits, which is
a waste of resources:
1. pending_rx_ep bit 0 is reserved (always 0)
2. pending_rx_ep and pending_tx_ep have only bits 1, 2, 3 and 4
defined, no need to scan MPFS_USB_NENDPOINTS (9) bits as the
rest are reserved
Fix this by checking only the relevant bits.
Signed-off-by: Eero Nurkkala <[email protected]>
Signed-off-by: Jukka Laitinen <[email protected]>1 parent 21787b4 commit 581d667
1 file changed
+15
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3467 | 3467 | | |
3468 | 3468 | | |
3469 | 3469 | | |
3470 | | - | |
| 3470 | + | |
3471 | 3471 | | |
3472 | 3472 | | |
3473 | 3473 | | |
| |||
3478 | 3478 | | |
3479 | 3479 | | |
3480 | 3480 | | |
3481 | | - | |
| 3481 | + | |
3482 | 3482 | | |
3483 | 3483 | | |
3484 | 3484 | | |
3485 | 3485 | | |
3486 | 3486 | | |
3487 | | - | |
3488 | | - | |
3489 | | - | |
3490 | | - | |
3491 | | - | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
| 3492 | + | |
| 3493 | + | |
| 3494 | + | |
| 3495 | + | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
3492 | 3499 | | |
3493 | 3500 | | |
3494 | | - | |
| 3501 | + | |
3495 | 3502 | | |
3496 | 3503 | | |
3497 | 3504 | | |
| |||
0 commit comments