Patch "Revert "coresight: cti: Fix hang in cti_disable_hw()"" has been added to the 6.0-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Revert "coresight: cti: Fix hang in cti_disable_hw()"

to the 6.0-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     revert-coresight-cti-fix-hang-in-cti_disable_hw.patch
and it can be found in the queue-6.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 3a2f7fc63430e869b49c05738eb23e7b95f6bfff
Author: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Date:   Mon Oct 24 08:32:39 2022 +0200

    Revert "coresight: cti: Fix hang in cti_disable_hw()"
    
    [ Upstream commit d76308f03ee1574b0deffde45604252a51c77f6d ]
    
    This reverts commit 665c157e0204176023860b51a46528ba0ba62c33.
    
    It causes reported build warnings:
    
    drivers/hwtracing/coresight/coresight-cti-core.c: In functio
    n 'cti_enable_hw':
    drivers/hwtracing/coresight/coresight-cti-core.c:93:24: warning: unused variable 'dev' [-Wunused-variable]
       93 |         struct device *dev = &drvdata->csdev->dev;
          |                        ^~~
    drivers/hwtracing/coresight/coresight-cti-core.c: In function 'cti_disable_hw':
    drivers/hwtracing/coresight/coresight-cti-core.c:154:24: warning: unused variable 'dev' [-Wunused-variable]
      154 |         struct device *dev = &drvdata->csdev->dev;
          |                        ^~~
    
    Reported-by: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx>
    Cc: Aishwarya TCV <Aishwarya.TCV@xxxxxxx>
    Cc: Cristian Marussi <Cristian.Marussi@xxxxxxx>
    Cc: Suzuki Poulose <Suzuki.Poulose@xxxxxxx>
    Cc: James Clark <james.clark@xxxxxxx>
    Cc: Mike Leach <mike.leach@xxxxxxxxxx>
    Cc: Mike Leach <mike.leach@xxxxxxxxxx>
    Cc: Suzuki K Poulose <suzuki.poulose@xxxxxxx>
    Fixes: 665c157e0204 ("coresight: cti: Fix hang in cti_disable_hw()")
    Link: https://lore.kernel.org/r/20221024135752.2b83af97@xxxxxxxxxxxxxxxx
    Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/hwtracing/coresight/coresight-cti-core.c b/drivers/hwtracing/coresight/coresight-cti-core.c
index dcd607a0c41a..5c2ebb5323a5 100644
--- a/drivers/hwtracing/coresight/coresight-cti-core.c
+++ b/drivers/hwtracing/coresight/coresight-cti-core.c
@@ -93,6 +93,7 @@ static int cti_enable_hw(struct cti_drvdata *drvdata)
 	unsigned long flags;
 	int rc = 0;
 
+	pm_runtime_get_sync(dev->parent);
 	spin_lock_irqsave(&drvdata->spinlock, flags);
 
 	/* no need to do anything if enabled or unpowered*/
@@ -117,6 +118,7 @@ static int cti_enable_hw(struct cti_drvdata *drvdata)
 	/* cannot enable due to error */
 cti_err_not_enabled:
 	spin_unlock_irqrestore(&drvdata->spinlock, flags);
+	pm_runtime_put(dev->parent);
 	return rc;
 }
 
@@ -171,6 +173,7 @@ static int cti_disable_hw(struct cti_drvdata *drvdata)
 	coresight_disclaim_device_unlocked(csdev);
 	CS_LOCK(drvdata->base);
 	spin_unlock(&drvdata->spinlock);
+	pm_runtime_put(dev->parent);
 	return 0;
 
 	/* not disabled this call */



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux