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>
Loading
Please register or sign in to comment