phy: ti: j721e-wiz: Invoke wiz_init() before of_platform_device_create()
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 19 Mar 2021 12:41:17 +0000 (18:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 07:49:58 +0000 (09:49 +0200)
commit6115a9027e5294e2f38ff0efac7c34e8ee40a706
tree2438cc0cc57a9cee9b9c4dd790008a5e7410b87f
parentdbd328dfd9c1ff527be68025da952e08fb87c379
phy: ti: j721e-wiz: Invoke wiz_init() before of_platform_device_create()

commit f7eb147d306ad2efae6837e20d2944f03be42eb4 upstream.

Invoke wiz_init() before configuring anything else in Sierra/Torrent
(invoked as part of of_platform_device_create()). wiz_init() resets the
SERDES device and any configuration done in the probe() of
Sierra/Torrent will be lost. In order to prevent SERDES configuration
from getting reset, invoke wiz_init() immediately before invoking
of_platform_device_create().

Fixes: 091876cc355d ("phy: ti: j721e-wiz: Add support for WIZ module present in TI J721E SoC")
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Reviewed-by: Swapnil Jakhade <sjakhade@cadence.com>
Cc: <stable@vger.kernel.org> # v5.10
Link: https://lore.kernel.org/r/20210319124128.13308-3-kishon@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/phy/ti/phy-j721e-wiz.c