Commit 9aa60f3
committed
ACPI: EC: Do not return result from advance_transaction()
Notice that the if the event state is EC_EVENT_READY, the event
handling work cannot be pending, so it is not necessary to check
the return value of queue_work() in acpi_ec_submit_event().
Moreover, whether or not there is any EC work pending at the
moment can always be checked by looking at the events_in_progress
and queries_in_progress counters, so acpi_ec_submit_event() and
consequently advance_transaction() need not return results.
Accordingly, make acpi_ec_dispatch_gpe() always use the counters
mentioned above (for first_ec) to check if there is any pending EC
work to flush and turn both acpi_ec_submit_event() and
advance_transaction() into void functions (again, because they were
void functions in the past).
While at it, add a clarifying comment about the acpi_ec_mask_events()
call in advance_transaction().
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent 977dc30 commit 9aa60f3
1 file changed
Lines changed: 19 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
| 171 | + | |
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
445 | 445 | | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
446 | 450 | | |
447 | 451 | | |
448 | | - | |
| 452 | + | |
449 | 453 | | |
450 | 454 | | |
451 | 455 | | |
| |||
460 | 464 | | |
461 | 465 | | |
462 | 466 | | |
463 | | - | |
| 467 | + | |
464 | 468 | | |
465 | 469 | | |
466 | | - | |
| 470 | + | |
467 | 471 | | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | 472 | | |
475 | 473 | | |
476 | 474 | | |
| |||
655 | 653 | | |
656 | 654 | | |
657 | 655 | | |
658 | | - | |
| 656 | + | |
659 | 657 | | |
660 | 658 | | |
661 | 659 | | |
662 | | - | |
663 | 660 | | |
664 | 661 | | |
665 | 662 | | |
| |||
724 | 721 | | |
725 | 722 | | |
726 | 723 | | |
727 | | - | |
| 724 | + | |
728 | 725 | | |
729 | 726 | | |
730 | 727 | | |
731 | | - | |
732 | | - | |
733 | 728 | | |
734 | 729 | | |
735 | 730 | | |
| |||
2051 | 2046 | | |
2052 | 2047 | | |
2053 | 2048 | | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
2054 | 2054 | | |
2055 | 2055 | | |
2056 | 2056 | | |
| |||
2084 | 2084 | | |
2085 | 2085 | | |
2086 | 2086 | | |
2087 | | - | |
| 2087 | + | |
| 2088 | + | |
2088 | 2089 | | |
2089 | 2090 | | |
2090 | 2091 | | |
| |||
2102 | 2103 | | |
2103 | 2104 | | |
2104 | 2105 | | |
2105 | | - | |
2106 | | - | |
| 2106 | + | |
2107 | 2107 | | |
2108 | 2108 | | |
2109 | 2109 | | |
| |||
0 commit comments