]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f71b2f36cfad8e9287c5bc77158b29e112393e5
tree0ea2421bf0ffda40b1498380bc1ab7db09c0a429
parentcc46869c6b434eaca4cbc7d8adfe5a90a590be33
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