Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switchtec: Fix unintended mask of MRPC event
There exists a corner case: MRPC completion event happened immediately after other non-MRPC event, moreover exactly right after MRPC event occurrence check but before the mask event loop reach to its header register in event ISR, the MRPC event would be masked unintentionally. Since there's no chance to enable it again except module remove and install, all the following MRPC execution completion check will be defer to timeout. Fix this bug by bypass the mask operation same as to LINK event in event ISR. This corner case was exposed by concurrently running fw-update and event-wait commands of switchtec-user. When it happened, firmware update speed reduce evidently. Signed-off-by: Wesley Sheng <[email protected]>
- Loading branch information