scsi: ufs: fix leakage during link off state
authorYaniv Gardi <ygardi@codeaurora.org>
Thu, 10 Mar 2016 15:37:17 +0000 (17:37 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 15 Mar 2016 01:04:45 +0000 (21:04 -0400)
commitf3099fbd9b90f94849bd155ebf690dd5a8cfa477
treecdbccfacd6c75642f58604762df1421ebef820ac
parent371131065de99b57d39620ac159d94e0d3773f13
scsi: ufs: fix leakage during link off state

Currently when we try to put the link in off/disabled state during
suspend, it seems link is not being kept in low power mode.
This patch fixes the issue by putting the link in hibern8 first
(so device also puts the link in low power mode) and then stop the
host controller.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c