summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSubhash Jadavani <subhashj@codeaurora.org>2014-09-25 14:23:18 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 10:57:31 -0700
commit0a81142619ded5b3f24cca651fa59ea17f7a7119 (patch)
tree5e137d8aedc0fccaaed8011c78b175adf11c9dcc /include/linux
parent084930e1e4e76ddb55540ee932fb9d839766bc59 (diff)
scsi: ufs: move dme peer quirk handling to ufshcd_dme_get_attr()
Some UFS host controllers may only allow accessing the peer DME attribute in AUTO mode (FAST AUTO or SLOW AUTO) hence we had added a quirk for switching to AUTO power mode before accessing the peer DME attribute. But this quirk handling was only done in UFS driver's debugfs handling hence this patch moves it to main driver ufshcd.c so that this quirk handling is applied to all the peer DME accesses. As we are doing this, this patch fixes 2 more related problem: 1. Current quirk was only handling the switch from FAST to FAST AUTO hence this change adds the handling for SLOW to SLOW AUTO mode change as well. 2. ufsdbg_dme_read() helper function was always reading the local DME attribute hence this change fix the same. Change-Id: I475375fb57cd27cdafe1573c14d09dc7f9a2791b 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')
0 files changed, 0 insertions, 0 deletions