mtip32xx: Implement timeout handler
[firefly-linux-kernel-4.4.55.git] / drivers / block / mtip32xx / mtip32xx.h
index 50af742421e27b4c6561041db6c5da9f99c06a19..7617888f79449d55ac9402bfef7f01788ef138cf 100644 (file)
@@ -134,10 +134,12 @@ enum {
        MTIP_PF_EH_ACTIVE_BIT       = 1, /* error handling */
        MTIP_PF_SE_ACTIVE_BIT       = 2, /* secure erase */
        MTIP_PF_DM_ACTIVE_BIT       = 3, /* download microcde */
+       MTIP_PF_TO_ACTIVE_BIT       = 9, /* timeout handling */
        MTIP_PF_PAUSE_IO      = ((1 << MTIP_PF_IC_ACTIVE_BIT) |
                                (1 << MTIP_PF_EH_ACTIVE_BIT) |
                                (1 << MTIP_PF_SE_ACTIVE_BIT) |
-                               (1 << MTIP_PF_DM_ACTIVE_BIT)),
+                               (1 << MTIP_PF_DM_ACTIVE_BIT) |
+                               (1 << MTIP_PF_TO_ACTIVE_BIT)),
 
        MTIP_PF_SVC_THD_ACTIVE_BIT  = 4,
        MTIP_PF_ISSUE_CMDS_BIT      = 5,
@@ -147,7 +149,8 @@ enum {
        MTIP_PF_SVC_THD_WORK    = ((1 << MTIP_PF_EH_ACTIVE_BIT) |
                                  (1 << MTIP_PF_ISSUE_CMDS_BIT) |
                                  (1 << MTIP_PF_REBUILD_BIT) |
-                                 (1 << MTIP_PF_SVC_THD_STOP_BIT)),
+                                 (1 << MTIP_PF_SVC_THD_STOP_BIT) |
+                                 (1 << MTIP_PF_TO_ACTIVE_BIT)),
 
        /* below are bit numbers in 'dd_flag' defined in driver_data */
        MTIP_DDF_SEC_LOCK_BIT       = 0,