diff options
author | Suzuki K Poulose <suzuki.poulose@arm.com> | 2017-10-10 16:32:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-20 09:03:06 -0400 |
commit | 0bbb194c0c33c251ac3d33f46c8fd045d82350e5 (patch) | |
tree | 4bcde932e0f28bc9efbd2345eb6e82c1e5972c47 /drivers/hwtracing | |
parent | 58f2c391cc0560231d7636c39d31b1b26c9396b7 (diff) |
coresight: Extend the PIDR mask to cover relevant bits in PIDR2
As per coresight standards, PIDR2 register has the following format :
[2-0] - JEP106_bits6to4
[3] - JEDEC, designer ID is specified by JEDEC.
However some of the drivers only use mask of 0x3 for the PIDR2 leaving
bits [3-2] unchecked, which could potentially match the component for
a different device altogether. This patch fixes the mask and the
corresponding id bits for the existing devices.
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwtracing')
-rw-r--r-- | drivers/hwtracing/coresight/coresight-dynamic-replicator.c | 4 | ||||
-rw-r--r-- | drivers/hwtracing/coresight/coresight-etb10.c | 4 | ||||
-rw-r--r-- | drivers/hwtracing/coresight/coresight-etm3x.c | 24 | ||||
-rw-r--r-- | drivers/hwtracing/coresight/coresight-funnel.c | 4 | ||||
-rw-r--r-- | drivers/hwtracing/coresight/coresight-stm.c | 8 | ||||
-rw-r--r-- | drivers/hwtracing/coresight/coresight-tmc.c | 4 | ||||
-rw-r--r-- | drivers/hwtracing/coresight/coresight-tpiu.c | 4 |
7 files changed, 26 insertions, 26 deletions
diff --git a/drivers/hwtracing/coresight/coresight-dynamic-replicator.c b/drivers/hwtracing/coresight/coresight-dynamic-replicator.c index accc2056f7c6..8f4357e2626c 100644 --- a/drivers/hwtracing/coresight/coresight-dynamic-replicator.c +++ b/drivers/hwtracing/coresight/coresight-dynamic-replicator.c | |||
@@ -199,8 +199,8 @@ static const struct dev_pm_ops replicator_dev_pm_ops = { | |||
199 | 199 | ||
200 | static const struct amba_id replicator_ids[] = { | 200 | static const struct amba_id replicator_ids[] = { |
201 | { | 201 | { |
202 | .id = 0x0003b909, | 202 | .id = 0x000bb909, |
203 | .mask = 0x0003ffff, | 203 | .mask = 0x000fffff, |
204 | }, | 204 | }, |
205 | { | 205 | { |
206 | /* Coresight SoC-600 */ | 206 | /* Coresight SoC-600 */ |
diff --git a/drivers/hwtracing/coresight/coresight-etb10.c b/drivers/hwtracing/coresight/coresight-etb10.c index 56ecd7aff5eb..e03e58933141 100644 --- a/drivers/hwtracing/coresight/coresight-etb10.c +++ b/drivers/hwtracing/coresight/coresight-etb10.c | |||
@@ -748,8 +748,8 @@ static const struct dev_pm_ops etb_dev_pm_ops = { | |||
748 | 748 | ||
749 | static const struct amba_id etb_ids[] = { | 749 | static const struct amba_id etb_ids[] = { |
750 | { | 750 | { |
751 | .id = 0x0003b907, | 751 | .id = 0x000bb907, |
752 | .mask = 0x0003ffff, | 752 | .mask = 0x000fffff, |
753 | }, | 753 | }, |
754 | { 0, 0}, | 754 | { 0, 0}, |
755 | }; | 755 | }; |
diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index e5b1ec57dbde..39f42fdd503d 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c | |||
@@ -901,33 +901,33 @@ static const struct dev_pm_ops etm_dev_pm_ops = { | |||
901 | 901 | ||
902 | static const struct amba_id etm_ids[] = { | 902 | static const struct amba_id etm_ids[] = { |
903 | { /* ETM 3.3 */ | 903 | { /* ETM 3.3 */ |
904 | .id = 0x0003b921, | 904 | .id = 0x000bb921, |
905 | .mask = 0x0003ffff, | 905 | .mask = 0x000fffff, |
906 | .data = "ETM 3.3", | 906 | .data = "ETM 3.3", |
907 | }, | 907 | }, |
908 | { /* ETM 3.5 - Cortex-A5 */ | 908 | { /* ETM 3.5 - Cortex-A5 */ |
909 | .id = 0x0003b955, | 909 | .id = 0x000bb955, |
910 | .mask = 0x0003ffff, | 910 | .mask = 0x000fffff, |
911 | .data = "ETM 3.5", | 911 | .data = "ETM 3.5", |
912 | }, | 912 | }, |
913 | { /* ETM 3.5 */ | 913 | { /* ETM 3.5 */ |
914 | .id = 0x0003b956, | 914 | .id = 0x000bb956, |
915 | .mask = 0x0003ffff, | 915 | .mask = 0x000fffff, |
916 | .data = "ETM 3.5", | 916 | .data = "ETM 3.5", |
917 | }, | 917 | }, |
918 | { /* PTM 1.0 */ | 918 | { /* PTM 1.0 */ |
919 | .id = 0x0003b950, | 919 | .id = 0x000bb950, |
920 | .mask = 0x0003ffff, | 920 | .mask = 0x000fffff, |
921 | .data = "PTM 1.0", | 921 | .data = "PTM 1.0", |
922 | }, | 922 | }, |
923 | { /* PTM 1.1 */ | 923 | { /* PTM 1.1 */ |
924 | .id = 0x0003b95f, | 924 | .id = 0x000bb95f, |
925 | .mask = 0x0003ffff, | 925 | .mask = 0x000fffff, |
926 | .data = "PTM 1.1", | 926 | .data = "PTM 1.1", |
927 | }, | 927 | }, |
928 | { /* PTM 1.1 Qualcomm */ | 928 | { /* PTM 1.1 Qualcomm */ |
929 | .id = 0x0003006f, | 929 | .id = 0x000b006f, |
930 | .mask = 0x0003ffff, | 930 | .mask = 0x000fffff, |
931 | .data = "PTM 1.1", | 931 | .data = "PTM 1.1", |
932 | }, | 932 | }, |
933 | { 0, 0}, | 933 | { 0, 0}, |
diff --git a/drivers/hwtracing/coresight/coresight-funnel.c b/drivers/hwtracing/coresight/coresight-funnel.c index 77642e0e955b..fd3c396717f6 100644 --- a/drivers/hwtracing/coresight/coresight-funnel.c +++ b/drivers/hwtracing/coresight/coresight-funnel.c | |||
@@ -248,8 +248,8 @@ static const struct dev_pm_ops funnel_dev_pm_ops = { | |||
248 | 248 | ||
249 | static const struct amba_id funnel_ids[] = { | 249 | static const struct amba_id funnel_ids[] = { |
250 | { | 250 | { |
251 | .id = 0x0003b908, | 251 | .id = 0x000bb908, |
252 | .mask = 0x0003ffff, | 252 | .mask = 0x000fffff, |
253 | }, | 253 | }, |
254 | { | 254 | { |
255 | /* Coresight SoC-600 */ | 255 | /* Coresight SoC-600 */ |
diff --git a/drivers/hwtracing/coresight/coresight-stm.c b/drivers/hwtracing/coresight/coresight-stm.c index 92a780a6df1d..15e7ef3891f5 100644 --- a/drivers/hwtracing/coresight/coresight-stm.c +++ b/drivers/hwtracing/coresight/coresight-stm.c | |||
@@ -917,13 +917,13 @@ static const struct dev_pm_ops stm_dev_pm_ops = { | |||
917 | 917 | ||
918 | static const struct amba_id stm_ids[] = { | 918 | static const struct amba_id stm_ids[] = { |
919 | { | 919 | { |
920 | .id = 0x0003b962, | 920 | .id = 0x000bb962, |
921 | .mask = 0x0003ffff, | 921 | .mask = 0x000fffff, |
922 | .data = "STM32", | 922 | .data = "STM32", |
923 | }, | 923 | }, |
924 | { | 924 | { |
925 | .id = 0x0003b963, | 925 | .id = 0x000bb963, |
926 | .mask = 0x0003ffff, | 926 | .mask = 0x000fffff, |
927 | .data = "STM500", | 927 | .data = "STM500", |
928 | }, | 928 | }, |
929 | { 0, 0}, | 929 | { 0, 0}, |
diff --git a/drivers/hwtracing/coresight/coresight-tmc.c b/drivers/hwtracing/coresight/coresight-tmc.c index 2ff4a66a3caa..0ea04f588de0 100644 --- a/drivers/hwtracing/coresight/coresight-tmc.c +++ b/drivers/hwtracing/coresight/coresight-tmc.c | |||
@@ -439,8 +439,8 @@ out: | |||
439 | 439 | ||
440 | static const struct amba_id tmc_ids[] = { | 440 | static const struct amba_id tmc_ids[] = { |
441 | { | 441 | { |
442 | .id = 0x0003b961, | 442 | .id = 0x000bb961, |
443 | .mask = 0x0003ffff, | 443 | .mask = 0x000fffff, |
444 | }, | 444 | }, |
445 | { | 445 | { |
446 | /* Coresight SoC 600 TMC-ETR/ETS */ | 446 | /* Coresight SoC 600 TMC-ETR/ETS */ |
diff --git a/drivers/hwtracing/coresight/coresight-tpiu.c b/drivers/hwtracing/coresight/coresight-tpiu.c index d7a3e453016d..bef49a3a5ca7 100644 --- a/drivers/hwtracing/coresight/coresight-tpiu.c +++ b/drivers/hwtracing/coresight/coresight-tpiu.c | |||
@@ -194,8 +194,8 @@ static const struct dev_pm_ops tpiu_dev_pm_ops = { | |||
194 | 194 | ||
195 | static const struct amba_id tpiu_ids[] = { | 195 | static const struct amba_id tpiu_ids[] = { |
196 | { | 196 | { |
197 | .id = 0x0003b912, | 197 | .id = 0x000bb912, |
198 | .mask = 0x0003ffff, | 198 | .mask = 0x000fffff, |
199 | }, | 199 | }, |
200 | { | 200 | { |
201 | .id = 0x0004b912, | 201 | .id = 0x0004b912, |