msm: pcie: switch API for tuning EQ preset request vector configuration

Instead of using msm_pcie_write_mask, use msm_pcie_write_reg_field
which will shift the write value based on the mask.

Change-Id: Ie125655776d9ab0091d9ef813e1761126e920549
Signed-off-by: Tony Truong <truong@codeaurora.org>
This commit is contained in:
Tony Truong 2020-11-11 16:58:30 -08:00
commit 80da1a3297

View file

@ -3779,7 +3779,7 @@ static int msm_pcie_link_train(struct msm_pcie_dev_t *dev)
msm_pcie_write_mask(dev->dm_core,
PCIE_GEN3_EQ_CONTROL, 0x20);
msm_pcie_write_mask(dev->dm_core + PCIE_GEN3_EQ_CONTROL,
msm_pcie_write_reg_field(dev->dm_core, PCIE_GEN3_EQ_CONTROL,
PCIE_GEN3_EQ_PSET_REQ_VEC_MASK,
dev->eq_pset_req_vec);