forked from torvalds/linux
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
ufs: Make host controller state change handling more systematic
Introduce a function that reports whether or not a controller state change is allowed instead of duplicating these checks in every context that changes the host controller state. This patch includes a behavior change: ufshcd_link_recovery() no longer can change the host controller state from UFSHCD_STATE_ERROR into UFSHCD_STATE_RESET. Cc: Can Guo <cang@codeaurora.org> Signed-off-by: Bart Van Assche <bvanassche@acm.org>
- Loading branch information
1 parent
4e019f9
commit fcc87d783f58d9f9ee2c0ccd19c61a57c5941bfb
Showing
1 changed file
with
36 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters