ufs: add link status to ufshci
authorJoao Pinto <Joao.Pinto@synopsys.com>
Wed, 11 May 2016 11:21:29 +0000 (12:21 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 13 Jul 2016 03:16:31 +0000 (23:16 -0400)
Add link status to ufshci.

Signed-off-by: Joao Pinto <jpinto@synopsys.com>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshci.h

index 36f58795c601ead2e07f4b59968ecbc256213ced..9599741ff606cfad3eb037a2b0bc4da1227134cf 100644 (file)
@@ -220,6 +220,12 @@ enum {
 #define UIC_ARG_ATTR_TYPE(t)           (((t) & 0xFF) << 16)
 #define UIC_GET_ATTR_ID(v)             (((v) >> 16) & 0xFFFF)
 
+/* Link Status*/
+enum link_status {
+       UFSHCD_LINK_IS_DOWN     = 1,
+       UFSHCD_LINK_IS_UP       = 2,
+};
+
 /* UIC Commands */
 enum uic_cmd_dme {
        UIC_CMD_DME_GET                 = 0x01,