lkml.org 
[lkml]   [2023]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v7 01/13] coresight-tpdm: Remove the unnecessary lock
    Date
    Remove the unnecessary lock "CS_{UN,}LOCK" in TPDM driver. This
    lock is only needed while writing the data to Coresight registers.

    Signed-off-by: Tao Zhang <quic_taozha@quicinc.com>
    ---
    drivers/hwtracing/coresight/coresight-tpdm.c | 2 --
    1 file changed, 2 deletions(-)

    diff --git a/drivers/hwtracing/coresight/coresight-tpdm.c b/drivers/hwtracing/coresight/coresight-tpdm.c
    index f4854af..b645612 100644
    --- a/drivers/hwtracing/coresight/coresight-tpdm.c
    +++ b/drivers/hwtracing/coresight/coresight-tpdm.c
    @@ -114,11 +114,9 @@ static void tpdm_init_default_data(struct tpdm_drvdata *drvdata)
    {
    u32 pidr;

    - CS_UNLOCK(drvdata->base);
    /* Get the datasets present on the TPDM. */
    pidr = readl_relaxed(drvdata->base + CORESIGHT_PERIPHIDR0);
    drvdata->datasets |= pidr & GENMASK(TPDM_DATASETS - 1, 0);
    - CS_LOCK(drvdata->base);
    }

    /*
    --
    2.7.4
    \
     
     \ /
      Last update: 2023-07-25 09:18    [W:5.513 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site