PCI: rockchip: Improve the deassert sequence of four reset pins
Per TRM, we need to deassert the four reset pins simultaneously. Currently the reset framework doesn't support that so we did it one by one. It seems no side effect found but it does impact the state machine of controller, so sometimes the change speed bit is not set when sending training sequence from recover state. After the silicon RTL review from SoC guys, we don't need to do the sequence recommended by TRM, and could just move the deassert of mgmt_sticky_rst to the first place. Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
277743ef61
commit
58c6990c5e
|
@ -449,6 +449,16 @@ static int rockchip_pcie_init_port(struct rockchip_pcie *rockchip)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Please don't reorder the deassert sequence of the following
|
||||||
|
* four reset pins.
|
||||||
|
*/
|
||||||
|
err = reset_control_deassert(rockchip->mgmt_sticky_rst);
|
||||||
|
if (err) {
|
||||||
|
dev_err(dev, "deassert mgmt_sticky_rst err %d\n", err);
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
err = reset_control_deassert(rockchip->core_rst);
|
err = reset_control_deassert(rockchip->core_rst);
|
||||||
if (err) {
|
if (err) {
|
||||||
dev_err(dev, "deassert core_rst err %d\n", err);
|
dev_err(dev, "deassert core_rst err %d\n", err);
|
||||||
|
@ -461,12 +471,6 @@ static int rockchip_pcie_init_port(struct rockchip_pcie *rockchip)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
err = reset_control_deassert(rockchip->mgmt_sticky_rst);
|
|
||||||
if (err) {
|
|
||||||
dev_err(dev, "deassert mgmt_sticky_rst err %d\n", err);
|
|
||||||
return err;
|
|
||||||
}
|
|
||||||
|
|
||||||
err = reset_control_deassert(rockchip->pipe_rst);
|
err = reset_control_deassert(rockchip->pipe_rst);
|
||||||
if (err) {
|
if (err) {
|
||||||
dev_err(dev, "deassert pipe_rst err %d\n", err);
|
dev_err(dev, "deassert pipe_rst err %d\n", err);
|
||||||
|
|
Loading…
Reference in New Issue