ufs: fix power info after link start-up
authorYaniv Gardi <ygardi@codeaurora.org>
Thu, 23 Oct 2014 10:25:13 +0000 (13:25 +0300)
committerChristoph Hellwig <hch@lst.de>
Thu, 20 Nov 2014 16:01:32 +0000 (17:01 +0100)
commit5064636c759628caee3b855048be25a9a33cc8ad
tree0ea2421bf0ffda40b1498380bc1ab7db09c0a429
parent7c48bfd038e570cd12b33d6ab13316f3a0b0d1a7
ufs: fix power info after link start-up

After link start-up power mode will always be PWM G1. This is not
reflected in the pwr_info struct which will keep the previous values.
Since ufshcd_change_power_mode() tries to avoid unnecessary power mode
change if the requested power mode and current power mode are same,
power mode change won't execute again after driver initialization.

This patch solves the problem by setting pwr_info to PWM G1 after link
start-up.

Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Signed-off-by: Dolev Raviv <draviv@codeaurora.org>
Reviewed-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/ufs/ufshcd.c
This page took 0.025839 seconds and 5 git commands to generate.