Skip to content

Commit

Permalink
pcie:fix dessert pereset
Browse files Browse the repository at this point in the history
Signed-off-by: ryan_chen <[email protected]>
Change-Id: Ibde3ec0f771465c332f99d6a11ed7cfb47235a72
  • Loading branch information
aspeedtech committed Jul 22, 2022
1 parent 70552e3 commit 64d46a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/pci/pcie_aspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,8 @@ static int pcie_aspeed_probe(struct udevice *dev)
return ret;
}
aspeed_pcie_rc_slot_enable(pcie, 0);
reset_deassert(&rc0_reset_ctl);
mdelay(50);
if (uclass_get_device_by_of_offset
(UCLASS_MISC, slot0_of_handle, &slot0_dev))
goto slot1;
Expand All @@ -447,13 +449,14 @@ static int pcie_aspeed_probe(struct udevice *dev)
return ret;
}
aspeed_pcie_rc_slot_enable(pcie, 1);
reset_deassert(&rc1_reset_ctl);
mdelay(50);
if (uclass_get_device_by_of_offset
(UCLASS_MISC, slot1_of_handle, &slot1_dev))
goto end;
if (aspeed_pcie_phy_link_status(slot1_dev))
aspeed_pcie_set_slot_power_limit(pcie, 1);
}
mdelay(100);
end:
return 0;
}
Expand Down

0 comments on commit 64d46a4

Please sign in to comment.