patch "phy: ti: j721e-wiz: Invoke wiz_init() before" added to char-misc-next
Subsystems (2)
This is a note to let you know that I've just added the patch titled
phy: ti: j721e-wiz: Invoke wiz_init() before
to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-next branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will also be merged in the next major kernel release during the merge window.
If you have any questions about this process, please let me know.
From f7eb147d306ad2efae6837e20d2944f03be42eb4 Mon Sep 17 00:00:00 2001
From: Kishon Vijay Abraham I <[email protected]>
Date: Fri, 19 Mar 2021 18:11:17 +0530
Subject: phy: ti: j721e-wiz: Invoke wiz_init() before
of_platform_device_create()
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().
--- drivers/phy/ti/phy-j721e-wiz.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-)
drivers/phy/ti/phy-j721e-wiz.c +7 -10
@@ -1264,27 +1264,24 @@ static int wiz_probe(struct platform_device *pdev) goto err_get_sync; } + ret =wiz_init (wiz); +if (ret) { +dev_err (dev,"WIZ initialization failed\n" ); + goto err_wiz_init; + } + serdes_pdev =of_platform_device_create (child_node,NULL , dev);if (!serdes_pdev) {dev_WARN (dev,"Unable to create SERDES platform device\n" ); ret = -ENOMEM ; - goto err_pdev_create; - } - wiz->serdes_pdev = serdes_pdev; - - ret =wiz_init (wiz); -if (ret) { -dev_err (dev,"WIZ initialization failed\n" ); goto err_wiz_init; } + wiz->serdes_pdev = serdes_pdev;of_node_put (child_node);return 0 ; err_wiz_init: -of_platform_device_destroy (&serdes_pdev->dev,NULL ); - -err_pdev_create:wiz_clock_cleanup (wiz, node); err_get_sync:
Signature · 1 line
2.31.1