Discard the duplicate dma initialization codes during probe, this
will cause the system hung. These duplicate codes are introduced
by the wrong code merging to updating the kernel version.

Signed-off-by: Xulin Sun <xulin....@windriver.com>
---
 drivers/crypto/sa2ul.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/drivers/crypto/sa2ul.c b/drivers/crypto/sa2ul.c
index 469fce36934e..0231f5dcd3f0 100644
--- a/drivers/crypto/sa2ul.c
+++ b/drivers/crypto/sa2ul.c
@@ -2398,11 +2398,6 @@ static int sa_ul_probe(struct platform_device *pdev)
                return ret;
        }
 
-       sa_init_mem(dev_data);
-       ret = sa_dma_init(dev_data);
-       if (ret)
-               goto destroy_dma_pool;
-
        spin_lock_init(&dev_data->scid_lock);
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        saul_base = devm_ioremap_resource(dev, res);
@@ -2417,7 +2412,7 @@ static int sa_ul_probe(struct platform_device *pdev)
        sa_init_mem(dev_data);
        ret = sa_dma_init(dev_data);
        if (ret)
-               goto disable_pm_runtime;
+               goto destroy_dma_pool;
 
        sa_register_algos(dev);
 
@@ -2445,7 +2440,6 @@ static int sa_ul_probe(struct platform_device *pdev)
 destroy_dma_pool:
        dma_pool_destroy(dev_data->sc_pool);
 
-disable_pm_runtime:
        writel_relaxed(0, saul_base + SA_ENGINE_ENABLE_CONTROL);
 
        pm_runtime_put_sync(&pdev->dev);
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#10174): 
https://lists.yoctoproject.org/g/linux-yocto/message/10174
Mute This Topic: https://lists.yoctoproject.org/mt/84394772/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to