mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
PCI: rockchip: dw: fix compliance mode set
Fixes: 02ee7a133e ("PCIe: dw: rockchip: rework compliance test settings")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ibdec2f90616eeb84f26932cdbbb0ac8fde6ca6f0
This commit is contained in:
@@ -2089,8 +2089,8 @@ retry_regulator:
|
||||
* [0] 0->SMA tool control the signal switch, 1/2/3 is for manual Gen setting
|
||||
* [1] transmitter setting for manual Gen setting, valid only if [0] isn't zero.
|
||||
*/
|
||||
if (device_property_read_u32_array(dev, "rockchip,compliance-mode",
|
||||
rk_pcie->comp_prst, 2)) {
|
||||
if (!device_property_read_u32_array(dev, "rockchip,compliance-mode",
|
||||
rk_pcie->comp_prst, 2)) {
|
||||
BUG_ON(rk_pcie->comp_prst[0] > 3 || rk_pcie->comp_prst[1] > 10);
|
||||
if (!rk_pcie->comp_prst[0]) {
|
||||
dev_info(dev, "Auto compliance mode for SMA tool.\n");
|
||||
|
||||
Reference in New Issue
Block a user