Thread (15 messages) 15 messages, 3 authors, 2021-06-23

Re: [PATCH RFC 4/4] ufs: Make host controller state change handling more systematic

From: Bart Van Assche <bvanassche@acm.org>
Date: 2021-06-21 17:38:30

On 6/21/21 1:55 AM, Avri Altman wrote:
quoted
+static bool ufshcd_set_state(struct ufs_hba *hba, enum ufshcd_state
new_state)
+{
+       lockdep_assert_held(hba->host->host_lock);
+
+       if (old_state != UFSHCD_STATE_ERROR || new_state ==
UFSHCD_STATE_ERROR)
old_state ?
Thanks for having taken a look. This function should look as follows:

static bool ufshcd_set_state(struct ufs_hba *hba, enum ufshcd_state new_state)
{
	lockdep_assert_held(hba->host->host_lock);

	if (hba->ufshcd_state != UFSHCD_STATE_ERROR ||
	    new_state == UFSHCD_STATE_ERROR) {
		hba->ufshcd_state = new_state;
		return true;
	}
	return false;
}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help