int retries = MAX_HOST_RESET_RETRIES;
 
        do {
+               /* Reset the attached device */
+               ufshcd_vops_device_reset(hba);
+
                err = ufshcd_host_reset_and_restore(hba);
        } while (err && --retries);
 
                goto exit_gating;
        }
 
+       /* Reset the attached device */
+       ufshcd_vops_device_reset(hba);
+
        /* Host controller enable */
        err = ufshcd_hba_enable(hba);
        if (err) {
 
  * @resume: called during host controller PM callback
  * @dbg_register_dump: used to dump controller debug information
  * @phy_initialization: used to initialize phys
+ * @device_reset: called to issue a reset pulse on the UFS device
  */
 struct ufs_hba_variant_ops {
        const char *name;
        int     (*resume)(struct ufs_hba *, enum ufs_pm_op);
        void    (*dbg_register_dump)(struct ufs_hba *hba);
        int     (*phy_initialization)(struct ufs_hba *);
+       void    (*device_reset)(struct ufs_hba *hba);
 };
 
 /* clock gating state  */
                hba->vops->dbg_register_dump(hba);
 }
 
+static inline void ufshcd_vops_device_reset(struct ufs_hba *hba)
+{
+       if (hba->vops && hba->vops->device_reset)
+               hba->vops->device_reset(hba);
+}
+
 extern struct ufs_pm_lvl_states ufs_pm_lvl_states[];
 
 /*