]> git.baikalelectronics.ru Git - kernel.git/commit
phy: qualcomm: fix setting of tx_deamp_3_5db when device property read fails
authorColin Ian King <colin.king@canonical.com>
Tue, 21 Jul 2020 15:06:13 +0000 (16:06 +0100)
committerVinod Koul <vkoul@kernel.org>
Tue, 21 Jul 2020 17:41:48 +0000 (23:11 +0530)
commitd08df6fb6aa5def30769e371485a4bf88911446f
tree689fd7f73fac58c27d7ff0d914cf0c6c11c33ffa
parent083307165f7d3014f1f976f3396a5fd1e393f82a
phy: qualcomm: fix setting of tx_deamp_3_5db when device property read fails

Currently when reading of the device property for "qcom,tx-deamp_3_5db"
fails the default is being assigned incorrectly to phy_dwc3->rx_eq. This
looks like a copy-n-paste error and in fact should be assigning the
default instead to phy_dwc3->tx_deamp_3_5db

Addresses-Coverity: ("Copy-paste error")
Fixes: 3814cb30b4f7 ("phy: qualcomm: add qcom ipq806x dwc usb phy driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200721150613.416876-1-colin.king@canonical.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-ipq806x-usb.c