Skip to content

Commit

Permalink
scsi: ufs: use existing macro CONTROLLER_ENABLE to test register bit
Browse files Browse the repository at this point in the history
Signed-off-by: Tomohiro Kusumi <[email protected]>
Reviewed-by: Subhash Jadavani <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
  • Loading branch information
kusumi authored and martinkpetersen committed Mar 30, 2017
1 parent c9e6010 commit 4a8eec2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/scsi/ufs/ufshcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,8 @@ static inline void ufshcd_hba_start(struct ufs_hba *hba)
*/
static inline bool ufshcd_is_hba_active(struct ufs_hba *hba)
{
return (ufshcd_readl(hba, REG_CONTROLLER_ENABLE) & 0x1) ? false : true;
return (ufshcd_readl(hba, REG_CONTROLLER_ENABLE) & CONTROLLER_ENABLE)
? false : true;
}

static const char *ufschd_uic_link_state_to_string(
Expand Down

0 comments on commit 4a8eec2

Please sign in to comment.