mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 13:14:02 +02:00
usb: dwc3: xilinx: use reset_control_reset() in versal init
Replace reset_control_assert()/deassert() with reset_control_reset(). For dwc3-xilinx, reset_control_reset() routes via the zynqmp reset driver and uses PM_RESET_ACTION_PULSE, which performs assert and deassert in firmware. This results in a single SMC call issuing a reset pulse and taking the IP out of reset. Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com> Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://patch.msgid.link/6a5e4e25d84d6abc971f1669739aae4d3146700f.1779518171.git.radhey.shyam.pandey@amd.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
83f4f829a5
commit
cfdc9bde49
|
|
@ -98,18 +98,10 @@ static int dwc3_xlnx_init_versal(struct dwc3_xlnx *priv_data)
|
|||
|
||||
dwc3_xlnx_mask_phy_rst(priv_data, false);
|
||||
|
||||
/* Assert and De-assert reset */
|
||||
ret = reset_control_assert(crst);
|
||||
if (ret < 0) {
|
||||
dev_err_probe(dev, ret, "failed to assert Reset\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = reset_control_deassert(crst);
|
||||
if (ret < 0) {
|
||||
dev_err_probe(dev, ret, "failed to De-assert Reset\n");
|
||||
return ret;
|
||||
}
|
||||
/* assert and deassert reset */
|
||||
ret = reset_control_reset(crst);
|
||||
if (ret)
|
||||
return dev_err_probe(dev, ret, "failed to assert and deassert reset\n");
|
||||
|
||||
dwc3_xlnx_mask_phy_rst(priv_data, true);
|
||||
dwc3_xlnx_set_coherency(priv_data, XLNX_USB2_TRAFFIC_ROUTE_CONFIG);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user