mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 15:54:15 +08:00
i3c: master: svc: move module reset behind clk enable
Reset I3C module will R/W its regs, so enable its clocks first. Signed-off-by: Clark Wang <xiaoning.wang@nxp.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Jun Li <jun.li@nxp.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20211227074529.1660398-2-xiaoning.wang@nxp.com
This commit is contained in:
parent
3f43926f27
commit
57d8d3fc06
@ -1381,8 +1381,6 @@ static int svc_i3c_master_probe(struct platform_device *pdev)
|
||||
|
||||
master->dev = dev;
|
||||
|
||||
svc_i3c_master_reset(master);
|
||||
|
||||
ret = clk_prepare_enable(master->pclk);
|
||||
if (ret)
|
||||
return ret;
|
||||
@ -1419,6 +1417,8 @@ static int svc_i3c_master_probe(struct platform_device *pdev)
|
||||
|
||||
platform_set_drvdata(pdev, master);
|
||||
|
||||
svc_i3c_master_reset(master);
|
||||
|
||||
/* Register the master */
|
||||
ret = i3c_master_register(&master->base, &pdev->dev,
|
||||
&svc_i3c_master_ops, false);
|
||||
|
Loading…
Reference in New Issue
Block a user