diff options
author | Tomohiro Kusumi <tkusumi@tuxera.com> | 2017-03-28 16:49:25 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-03-29 22:42:21 -0400 |
commit | 4a8eec2bac8454043d12be1ca7489ce3632d1137 (patch) | |
tree | 4f08148c07f75a3caac3936680d03f99c51df831 | |
parent | c9e6010b4ef532db719c10464cf62fe2785aeeab (diff) | |
download | talos-op-linux-4a8eec2bac8454043d12be1ca7489ce3632d1137.tar.gz talos-op-linux-4a8eec2bac8454043d12be1ca7489ce3632d1137.zip |
scsi: ufs: use existing macro CONTROLLER_ENABLE to test register bit
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/ufs/ufshcd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index b006f1e51aae..dd4625919f22 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -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( |