summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorYaniv Gardi <ygardi@codeaurora.org>2014-09-12 10:28:43 +0300
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 10:57:26 -0700
commit3997870e3b9e4261c5f35a483a3d81bb71a264ee (patch)
tree26f07c6c21c70cbe7f61d5e27f953e8f6131f3da /include/linux/stackprotector.h
parenta343f60a4658c82cd8ca0404d10e853fde40e458 (diff)
scsi: ufs: fix bug when changing power mode via debugfs
So far when required to change UFS power mode via debugfs the final power parameters to which the UFS device is configured were determined based on comparison between the new required power (gear, lane, mode) and qcom pre-defined power preferences, and the minimum between them was the configured power which is incorrect. This change fixes this issue so what is done is a comparison between the new required power and the device maximum supported power parameters. If the new required power parameters exceed the device maximum supported power, then the UFS power mode is not changed. This change also contains a few cosmetic changes that simplify code that is related to the above power change. Change-Id: If08d3ce50af2dc17a6f68583dd1e7973aeb3c33a Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org> [subhashj@codeaurora.org: resolved merge conflicts] Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org> [venkatg@codeaurora.org: resolved trivial merge conflicts] Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions