coresight: etm4x: Fix BMVAL misuse
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Mon, 4 Nov 2019 18:12:51 +0000 (11:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2019 20:57:58 +0000 (21:57 +0100)
The second argument should be the lsb and the third argument should be
the msb.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20191104181251.26732-15-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etm4x-sysfs.c

index 3fc12ac4427009c0e144a4c6281d35a73e128682..ce41482431f98cd523ed01660bc5f07ca11448a6 100644 (file)
@@ -1246,7 +1246,7 @@ static ssize_t addr_exlevel_s_ns_show(struct device *dev,
 
        spin_lock(&drvdata->spinlock);
        idx = config->addr_idx;
-       val = BMVAL(config->addr_acc[idx], 14, 8);
+       val = BMVAL(config->addr_acc[idx], 8, 14);
        spin_unlock(&drvdata->spinlock);
        return scnprintf(buf, PAGE_SIZE, "%#lx\n", val);
 }