diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-05 19:20:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-06-05 19:20:22 -0400 |
commit | abf7dba7c4f77d781f6df50fefb19a64c5dc331f (patch) | |
tree | 38648731b502d5aec508f3b33f6616190e598eb6 /drivers/hwtracing/coresight | |
parent | 07c4dd3435aa387d3b58f4e941dc516513f14507 (diff) | |
parent | b23220fe054e92f616b82450fae8cd3ab176cc60 (diff) |
Merge tag 'char-misc-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver updates from Greg KH:
"Here is the "big" char and misc driver patches for 4.18-rc1.
It's not a lot of stuff here, but there are some highlights:
- coreboot driver updates
- soundwire driver updates
- android binder updates
- fpga big sync, mostly documentation
- lots of minor driver updates
All of these have been in linux-next for a while with no reported
issues"
* tag 'char-misc-4.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (81 commits)
vmw_balloon: fixing double free when batching mode is off
MAINTAINERS: Add driver-api/fpga path
fpga: clarify that unregister functions also free
documentation: fpga: move fpga-region.txt to driver-api
documentation: fpga: add bridge document to driver-api
documentation: fpga: move fpga-mgr.txt to driver-api
Documentation: fpga: move fpga overview to driver-api
fpga: region: kernel-doc fixes
fpga: bridge: kernel-doc fixes
fpga: mgr: kernel-doc fixes
fpga: use SPDX
fpga: region: change api, add fpga_region_create/free
fpga: bridge: change api, don't use drvdata
fpga: manager: change api, don't use drvdata
fpga: region: don't use drvdata in common fpga code
Drivers: hv: vmbus: Removed an unnecessary cast from void *
ver_linux: Drop redundant calls to system() to test if file is readable
ver_linux: Move stderr redirection from function parameter to function body
misc: IBM Virtual Management Channel Driver (VMC)
rpmsg: Correct support for MODULE_DEVICE_TABLE()
...
Diffstat (limited to 'drivers/hwtracing/coresight')
23 files changed, 57 insertions, 254 deletions
diff --git a/drivers/hwtracing/coresight/coresight-cpu-debug.c b/drivers/hwtracing/coresight/coresight-cpu-debug.c index 9cdb3fbc8c1f..45b2460f3166 100644 --- a/drivers/hwtracing/coresight/coresight-cpu-debug.c +++ b/drivers/hwtracing/coresight/coresight-cpu-debug.c | |||
@@ -1,20 +1,8 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * Copyright (c) 2017 Linaro Limited. All rights reserved. | 3 | * Copyright (c) 2017 Linaro Limited. All rights reserved. |
3 | * | 4 | * |
4 | * Author: Leo Yan <leo.yan@linaro.org> | 5 | * Author: Leo Yan <leo.yan@linaro.org> |
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify it | ||
7 | * under the terms of the GNU General Public License version 2 as published by | ||
8 | * the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
13 | * more details. | ||
14 | * | ||
15 | * You should have received a copy of the GNU General Public License along with | ||
16 | * this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | * | ||
18 | */ | 6 | */ |
19 | #include <linux/amba/bus.h> | 7 | #include <linux/amba/bus.h> |
20 | #include <linux/coresight.h> | 8 | #include <linux/coresight.h> |
@@ -315,7 +303,7 @@ static void debug_dump_regs(struct debug_drvdata *drvdata) | |||
315 | } | 303 | } |
316 | 304 | ||
317 | pc = debug_adjust_pc(drvdata); | 305 | pc = debug_adjust_pc(drvdata); |
318 | dev_emerg(dev, " EDPCSR: [<%px>] %pS\n", (void *)pc, (void *)pc); | 306 | dev_emerg(dev, " EDPCSR: %pS\n", (void *)pc); |
319 | 307 | ||
320 | if (drvdata->edcidsr_present) | 308 | if (drvdata->edcidsr_present) |
321 | dev_emerg(dev, " EDCIDSR: %08x\n", drvdata->edcidsr); | 309 | dev_emerg(dev, " EDCIDSR: %08x\n", drvdata->edcidsr); |
diff --git a/drivers/hwtracing/coresight/coresight-dynamic-replicator.c b/drivers/hwtracing/coresight/coresight-dynamic-replicator.c index 043da86b0fe9..f6d0571ab9dd 100644 --- a/drivers/hwtracing/coresight/coresight-dynamic-replicator.c +++ b/drivers/hwtracing/coresight/coresight-dynamic-replicator.c | |||
@@ -1,14 +1,6 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * Copyright (c) 2011-2015, The Linux Foundation. All rights reserved. | 3 | * Copyright (c) 2011-2015, The Linux Foundation. All rights reserved. |
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 and | ||
6 | * only version 2 as published by the Free Software Foundation. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | */ | 4 | */ |
13 | 5 | ||
14 | #include <linux/amba/bus.h> | 6 | #include <linux/amba/bus.h> |
diff --git a/drivers/hwtracing/coresight/coresight-etb10.c b/drivers/hwtracing/coresight/coresight-etb10.c index 580cd381adf3..9b6c55523c58 100644 --- a/drivers/hwtracing/coresight/coresight-etb10.c +++ b/drivers/hwtracing/coresight/coresight-etb10.c | |||
@@ -1,15 +1,8 @@ | |||
1 | /* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | /* | ||
3 | * Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. | ||
2 | * | 4 | * |
3 | * Description: CoreSight Embedded Trace Buffer driver | 5 | * Description: CoreSight Embedded Trace Buffer driver |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 and | ||
7 | * only version 2 as published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | */ | 6 | */ |
14 | 7 | ||
15 | #include <asm/local.h> | 8 | #include <asm/local.h> |
diff --git a/drivers/hwtracing/coresight/coresight-etm-cp14.c b/drivers/hwtracing/coresight/coresight-etm-cp14.c index 12a220682117..4174a8d355d2 100644 --- a/drivers/hwtracing/coresight/coresight-etm-cp14.c +++ b/drivers/hwtracing/coresight/coresight-etm-cp14.c | |||
@@ -1,13 +1,6 @@ | |||
1 | /* Copyright (c) 2012, The Linux Foundation. All rights reserved. | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | * | 2 | /* |
3 | * This program is free software; you can redistribute it and/or modify | 3 | * Copyright (c) 2012, The Linux Foundation. All rights reserved. |
4 | * it under the terms of the GNU General Public License version 2 and | ||
5 | * only version 2 as published by the Free Software Foundation. | ||
6 | * | ||
7 | * This program is distributed in the hope that it will be useful, | ||
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | * GNU General Public License for more details. | ||
11 | */ | 4 | */ |
12 | 5 | ||
13 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.c b/drivers/hwtracing/coresight/coresight-etm-perf.c index 4e5ed6597f2f..677695635211 100644 --- a/drivers/hwtracing/coresight/coresight-etm-perf.c +++ b/drivers/hwtracing/coresight/coresight-etm-perf.c | |||
@@ -1,18 +1,7 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * Copyright(C) 2015 Linaro Limited. All rights reserved. | 3 | * Copyright(C) 2015 Linaro Limited. All rights reserved. |
3 | * Author: Mathieu Poirier <mathieu.poirier@linaro.org> | 4 | * Author: Mathieu Poirier <mathieu.poirier@linaro.org> |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms of the GNU General Public License version 2 as published by | ||
7 | * the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 5 | */ |
17 | 6 | ||
18 | #include <linux/coresight.h> | 7 | #include <linux/coresight.h> |
diff --git a/drivers/hwtracing/coresight/coresight-etm-perf.h b/drivers/hwtracing/coresight/coresight-etm-perf.h index 3ffc9feb2d64..4197df4faf5e 100644 --- a/drivers/hwtracing/coresight/coresight-etm-perf.h +++ b/drivers/hwtracing/coresight/coresight-etm-perf.h | |||
@@ -1,18 +1,7 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
1 | /* | 2 | /* |
2 | * Copyright(C) 2015 Linaro Limited. All rights reserved. | 3 | * Copyright(C) 2015 Linaro Limited. All rights reserved. |
3 | * Author: Mathieu Poirier <mathieu.poirier@linaro.org> | 4 | * Author: Mathieu Poirier <mathieu.poirier@linaro.org> |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms of the GNU General Public License version 2 as published by | ||
7 | * the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 5 | */ |
17 | 6 | ||
18 | #ifndef _CORESIGHT_ETM_PERF_H | 7 | #ifndef _CORESIGHT_ETM_PERF_H |
diff --git a/drivers/hwtracing/coresight/coresight-etm.h b/drivers/hwtracing/coresight/coresight-etm.h index 70b0a248c321..e8b4549e30e2 100644 --- a/drivers/hwtracing/coresight/coresight-etm.h +++ b/drivers/hwtracing/coresight/coresight-etm.h | |||
@@ -1,13 +1,6 @@ | |||
1 | /* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | * | 2 | /* |
3 | * This program is free software; you can redistribute it and/or modify | 3 | * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. |
4 | * it under the terms of the GNU General Public License version 2 and | ||
5 | * only version 2 as published by the Free Software Foundation. | ||
6 | * | ||
7 | * This program is distributed in the hope that it will be useful, | ||
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | * GNU General Public License for more details. | ||
11 | */ | 4 | */ |
12 | 5 | ||
13 | #ifndef _CORESIGHT_CORESIGHT_ETM_H | 6 | #ifndef _CORESIGHT_CORESIGHT_ETM_H |
diff --git a/drivers/hwtracing/coresight/coresight-etm3x-sysfs.c b/drivers/hwtracing/coresight/coresight-etm3x-sysfs.c index 6e547ec6fead..9435c1481f61 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x-sysfs.c +++ b/drivers/hwtracing/coresight/coresight-etm3x-sysfs.c | |||
@@ -1,18 +1,7 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * Copyright(C) 2015 Linaro Limited. All rights reserved. | 3 | * Copyright(C) 2015 Linaro Limited. All rights reserved. |
3 | * Author: Mathieu Poirier <mathieu.poirier@linaro.org> | 4 | * Author: Mathieu Poirier <mathieu.poirier@linaro.org> |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms of the GNU General Public License version 2 as published by | ||
7 | * the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 5 | */ |
17 | 6 | ||
18 | #include <linux/pm_runtime.h> | 7 | #include <linux/pm_runtime.h> |
diff --git a/drivers/hwtracing/coresight/coresight-etm3x.c b/drivers/hwtracing/coresight/coresight-etm3x.c index 39f42fdd503d..15ed64d51a5b 100644 --- a/drivers/hwtracing/coresight/coresight-etm3x.c +++ b/drivers/hwtracing/coresight/coresight-etm3x.c | |||
@@ -1,15 +1,8 @@ | |||
1 | /* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | /* | ||
3 | * Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. | ||
2 | * | 4 | * |
3 | * Description: CoreSight Program Flow Trace driver | 5 | * Description: CoreSight Program Flow Trace driver |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 and | ||
7 | * only version 2 as published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | */ | 6 | */ |
14 | 7 | ||
15 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
diff --git a/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c b/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c index d21961710713..4eb8da785ce0 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c +++ b/drivers/hwtracing/coresight/coresight-etm4x-sysfs.c | |||
@@ -1,18 +1,7 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * Copyright(C) 2015 Linaro Limited. All rights reserved. | 3 | * Copyright(C) 2015 Linaro Limited. All rights reserved. |
3 | * Author: Mathieu Poirier <mathieu.poirier@linaro.org> | 4 | * Author: Mathieu Poirier <mathieu.poirier@linaro.org> |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms of the GNU General Public License version 2 as published by | ||
7 | * the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 5 | */ |
17 | 6 | ||
18 | #include <linux/pm_runtime.h> | 7 | #include <linux/pm_runtime.h> |
diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c b/drivers/hwtracing/coresight/coresight-etm4x.c index cf364a514c12..9bc04c50d45b 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x.c +++ b/drivers/hwtracing/coresight/coresight-etm4x.c | |||
@@ -1,13 +1,6 @@ | |||
1 | /* Copyright (c) 2014, The Linux Foundation. All rights reserved. | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | * | 2 | /* |
3 | * This program is free software; you can redistribute it and/or modify | 3 | * Copyright (c) 2014, The Linux Foundation. All rights reserved. |
4 | * it under the terms of the GNU General Public License version 2 and | ||
5 | * only version 2 as published by the Free Software Foundation. | ||
6 | * | ||
7 | * This program is distributed in the hope that it will be useful, | ||
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | * GNU General Public License for more details. | ||
11 | */ | 4 | */ |
12 | 5 | ||
13 | #include <linux/kernel.h> | 6 | #include <linux/kernel.h> |
diff --git a/drivers/hwtracing/coresight/coresight-etm4x.h b/drivers/hwtracing/coresight/coresight-etm4x.h index b3b5ea7b7fb3..b7c4a6f6c6b9 100644 --- a/drivers/hwtracing/coresight/coresight-etm4x.h +++ b/drivers/hwtracing/coresight/coresight-etm4x.h | |||
@@ -1,13 +1,6 @@ | |||
1 | /* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | * | 2 | /* |
3 | * This program is free software; you can redistribute it and/or modify | 3 | * Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. |
4 | * it under the terms of the GNU General Public License version 2 and | ||
5 | * only version 2 as published by the Free Software Foundation. | ||
6 | * | ||
7 | * This program is distributed in the hope that it will be useful, | ||
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | * GNU General Public License for more details. | ||
11 | */ | 4 | */ |
12 | 5 | ||
13 | #ifndef _CORESIGHT_CORESIGHT_ETM_H | 6 | #ifndef _CORESIGHT_CORESIGHT_ETM_H |
diff --git a/drivers/hwtracing/coresight/coresight-funnel.c b/drivers/hwtracing/coresight/coresight-funnel.c index 9f8ac0bef853..448145a36675 100644 --- a/drivers/hwtracing/coresight/coresight-funnel.c +++ b/drivers/hwtracing/coresight/coresight-funnel.c | |||
@@ -1,15 +1,8 @@ | |||
1 | /* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | /* | ||
3 | * Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. | ||
2 | * | 4 | * |
3 | * Description: CoreSight Funnel driver | 5 | * Description: CoreSight Funnel driver |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 and | ||
7 | * only version 2 as published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | */ | 6 | */ |
14 | 7 | ||
15 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
diff --git a/drivers/hwtracing/coresight/coresight-priv.h b/drivers/hwtracing/coresight/coresight-priv.h index f1d0e21d8cab..0e5a74dae6a6 100644 --- a/drivers/hwtracing/coresight/coresight-priv.h +++ b/drivers/hwtracing/coresight/coresight-priv.h | |||
@@ -1,13 +1,6 @@ | |||
1 | /* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | * | 2 | /* |
3 | * This program is free software; you can redistribute it and/or modify | 3 | * Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. |
4 | * it under the terms of the GNU General Public License version 2 and | ||
5 | * only version 2 as published by the Free Software Foundation. | ||
6 | * | ||
7 | * This program is distributed in the hope that it will be useful, | ||
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | * GNU General Public License for more details. | ||
11 | */ | 4 | */ |
12 | 5 | ||
13 | #ifndef _CORESIGHT_PRIV_H | 6 | #ifndef _CORESIGHT_PRIV_H |
diff --git a/drivers/hwtracing/coresight/coresight-replicator.c b/drivers/hwtracing/coresight/coresight-replicator.c index 3756e71cb8f5..8d2eaaab6c2f 100644 --- a/drivers/hwtracing/coresight/coresight-replicator.c +++ b/drivers/hwtracing/coresight/coresight-replicator.c | |||
@@ -1,15 +1,8 @@ | |||
1 | /* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | /* | ||
3 | * Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. | ||
2 | * | 4 | * |
3 | * Description: CoreSight Replicator driver | 5 | * Description: CoreSight Replicator driver |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 and | ||
7 | * only version 2 as published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | */ | 6 | */ |
14 | 7 | ||
15 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
diff --git a/drivers/hwtracing/coresight/coresight-stm.c b/drivers/hwtracing/coresight/coresight-stm.c index 15e7ef3891f5..c46c70aec1d5 100644 --- a/drivers/hwtracing/coresight/coresight-stm.c +++ b/drivers/hwtracing/coresight/coresight-stm.c | |||
@@ -1,16 +1,9 @@ | |||
1 | /* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | /* | ||
3 | * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. | ||
2 | * | 4 | * |
3 | * Description: CoreSight System Trace Macrocell driver | 5 | * Description: CoreSight System Trace Macrocell driver |
4 | * | 6 | * |
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 and | ||
7 | * only version 2 as published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | * | ||
14 | * Initial implementation by Pratik Patel | 7 | * Initial implementation by Pratik Patel |
15 | * (C) 2014-2015 Pratik Patel <pratikp@codeaurora.org> | 8 | * (C) 2014-2015 Pratik Patel <pratikp@codeaurora.org> |
16 | * | 9 | * |
diff --git a/drivers/hwtracing/coresight/coresight-tmc-etf.c b/drivers/hwtracing/coresight/coresight-tmc-etf.c index e2513b786242..61d849b11c26 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-etf.c +++ b/drivers/hwtracing/coresight/coresight-tmc-etf.c | |||
@@ -1,18 +1,7 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * Copyright(C) 2016 Linaro Limited. All rights reserved. | 3 | * Copyright(C) 2016 Linaro Limited. All rights reserved. |
3 | * Author: Mathieu Poirier <mathieu.poirier@linaro.org> | 4 | * Author: Mathieu Poirier <mathieu.poirier@linaro.org> |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms of the GNU General Public License version 2 as published by | ||
7 | * the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 5 | */ |
17 | 6 | ||
18 | #include <linux/circ_buf.h> | 7 | #include <linux/circ_buf.h> |
diff --git a/drivers/hwtracing/coresight/coresight-tmc-etr.c b/drivers/hwtracing/coresight/coresight-tmc-etr.c index 68fbc8f7450e..02f747afa2ba 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-etr.c +++ b/drivers/hwtracing/coresight/coresight-tmc-etr.c | |||
@@ -1,18 +1,7 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* | 2 | /* |
2 | * Copyright(C) 2016 Linaro Limited. All rights reserved. | 3 | * Copyright(C) 2016 Linaro Limited. All rights reserved. |
3 | * Author: Mathieu Poirier <mathieu.poirier@linaro.org> | 4 | * Author: Mathieu Poirier <mathieu.poirier@linaro.org> |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms of the GNU General Public License version 2 as published by | ||
7 | * the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 5 | */ |
17 | 6 | ||
18 | #include <linux/coresight.h> | 7 | #include <linux/coresight.h> |
@@ -124,10 +113,9 @@ static int tmc_enable_etr_sink_sysfs(struct coresight_device *csdev) | |||
124 | bool used = false; | 113 | bool used = false; |
125 | unsigned long flags; | 114 | unsigned long flags; |
126 | void __iomem *vaddr = NULL; | 115 | void __iomem *vaddr = NULL; |
127 | dma_addr_t paddr; | 116 | dma_addr_t paddr = 0; |
128 | struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); | 117 | struct tmc_drvdata *drvdata = dev_get_drvdata(csdev->dev.parent); |
129 | 118 | ||
130 | |||
131 | /* | 119 | /* |
132 | * If we don't have a buffer release the lock and allocate memory. | 120 | * If we don't have a buffer release the lock and allocate memory. |
133 | * Otherwise keep the lock and move along. | 121 | * Otherwise keep the lock and move along. |
@@ -164,11 +152,11 @@ static int tmc_enable_etr_sink_sysfs(struct coresight_device *csdev) | |||
164 | goto out; | 152 | goto out; |
165 | 153 | ||
166 | /* | 154 | /* |
167 | * If drvdata::buf == NULL, use the memory allocated above. | 155 | * If drvdata::vaddr == NULL, use the memory allocated above. |
168 | * Otherwise a buffer still exists from a previous session, so | 156 | * Otherwise a buffer still exists from a previous session, so |
169 | * simply use that. | 157 | * simply use that. |
170 | */ | 158 | */ |
171 | if (drvdata->buf == NULL) { | 159 | if (drvdata->vaddr == NULL) { |
172 | used = true; | 160 | used = true; |
173 | drvdata->vaddr = vaddr; | 161 | drvdata->vaddr = vaddr; |
174 | drvdata->paddr = paddr; | 162 | drvdata->paddr = paddr; |
diff --git a/drivers/hwtracing/coresight/coresight-tmc.c b/drivers/hwtracing/coresight/coresight-tmc.c index 0ea04f588de0..456f122df74f 100644 --- a/drivers/hwtracing/coresight/coresight-tmc.c +++ b/drivers/hwtracing/coresight/coresight-tmc.c | |||
@@ -1,15 +1,7 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | ||
1 | /* Copyright (c) 2012, The Linux Foundation. All rights reserved. | 2 | /* Copyright (c) 2012, The Linux Foundation. All rights reserved. |
2 | * | 3 | * |
3 | * Description: CoreSight Trace Memory Controller driver | 4 | * Description: CoreSight Trace Memory Controller driver |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 and | ||
7 | * only version 2 as published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | */ | 5 | */ |
14 | 6 | ||
15 | #include <linux/kernel.h> | 7 | #include <linux/kernel.h> |
diff --git a/drivers/hwtracing/coresight/coresight-tmc.h b/drivers/hwtracing/coresight/coresight-tmc.h index 8df7a813f537..dfaff077a7fc 100644 --- a/drivers/hwtracing/coresight/coresight-tmc.h +++ b/drivers/hwtracing/coresight/coresight-tmc.h | |||
@@ -1,18 +1,7 @@ | |||
1 | /* SPDX-License-Identifier: GPL-2.0 */ | ||
1 | /* | 2 | /* |
2 | * Copyright(C) 2015 Linaro Limited. All rights reserved. | 3 | * Copyright(C) 2015 Linaro Limited. All rights reserved. |
3 | * Author: Mathieu Poirier <mathieu.poirier@linaro.org> | 4 | * Author: Mathieu Poirier <mathieu.poirier@linaro.org> |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms of the GNU General Public License version 2 as published by | ||
7 | * the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | 5 | */ |
17 | 6 | ||
18 | #ifndef _CORESIGHT_TMC_H | 7 | #ifndef _CORESIGHT_TMC_H |
diff --git a/drivers/hwtracing/coresight/coresight-tpiu.c b/drivers/hwtracing/coresight/coresight-tpiu.c index 805f7c2210fe..01b7457fe8fc 100644 --- a/drivers/hwtracing/coresight/coresight-tpiu.c +++ b/drivers/hwtracing/coresight/coresight-tpiu.c | |||
@@ -1,15 +1,8 @@ | |||
1 | /* Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | /* | ||
3 | * Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. | ||
2 | * | 4 | * |
3 | * Description: CoreSight Trace Port Interface Unit driver | 5 | * Description: CoreSight Trace Port Interface Unit driver |
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License version 2 and | ||
7 | * only version 2 as published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | */ | 6 | */ |
14 | 7 | ||
15 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
diff --git a/drivers/hwtracing/coresight/coresight.c b/drivers/hwtracing/coresight/coresight.c index 389c4baeca9d..29e834aab539 100644 --- a/drivers/hwtracing/coresight/coresight.c +++ b/drivers/hwtracing/coresight/coresight.c | |||
@@ -1,13 +1,6 @@ | |||
1 | /* Copyright (c) 2012, The Linux Foundation. All rights reserved. | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | * | 2 | /* |
3 | * This program is free software; you can redistribute it and/or modify | 3 | * Copyright (c) 2012, The Linux Foundation. All rights reserved. |
4 | * it under the terms of the GNU General Public License version 2 and | ||
5 | * only version 2 as published by the Free Software Foundation. | ||
6 | * | ||
7 | * This program is distributed in the hope that it will be useful, | ||
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | * GNU General Public License for more details. | ||
11 | */ | 4 | */ |
12 | 5 | ||
13 | #include <linux/kernel.h> | 6 | #include <linux/kernel.h> |
@@ -1026,8 +1019,10 @@ struct coresight_device *coresight_register(struct coresight_desc *desc) | |||
1026 | dev_set_name(&csdev->dev, "%s", desc->pdata->name); | 1019 | dev_set_name(&csdev->dev, "%s", desc->pdata->name); |
1027 | 1020 | ||
1028 | ret = device_register(&csdev->dev); | 1021 | ret = device_register(&csdev->dev); |
1029 | if (ret) | 1022 | if (ret) { |
1030 | goto err_device_register; | 1023 | put_device(&csdev->dev); |
1024 | goto err_kzalloc_csdev; | ||
1025 | } | ||
1031 | 1026 | ||
1032 | mutex_lock(&coresight_mutex); | 1027 | mutex_lock(&coresight_mutex); |
1033 | 1028 | ||
@@ -1038,8 +1033,6 @@ struct coresight_device *coresight_register(struct coresight_desc *desc) | |||
1038 | 1033 | ||
1039 | return csdev; | 1034 | return csdev; |
1040 | 1035 | ||
1041 | err_device_register: | ||
1042 | kfree(conns); | ||
1043 | err_kzalloc_conns: | 1036 | err_kzalloc_conns: |
1044 | kfree(refcnts); | 1037 | kfree(refcnts); |
1045 | err_kzalloc_refcnts: | 1038 | err_kzalloc_refcnts: |
diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/coresight/of_coresight.c index 7c375443ede6..a33a92ebe74b 100644 --- a/drivers/hwtracing/coresight/of_coresight.c +++ b/drivers/hwtracing/coresight/of_coresight.c | |||
@@ -1,13 +1,6 @@ | |||
1 | /* Copyright (c) 2012, The Linux Foundation. All rights reserved. | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | * | 2 | /* |
3 | * This program is free software; you can redistribute it and/or modify | 3 | * Copyright (c) 2012, The Linux Foundation. All rights reserved. |
4 | * it under the terms of the GNU General Public License version 2 and | ||
5 | * only version 2 as published by the Free Software Foundation. | ||
6 | * | ||
7 | * This program is distributed in the hope that it will be useful, | ||
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
10 | * GNU General Public License for more details. | ||
11 | */ | 4 | */ |
12 | 5 | ||
13 | #include <linux/types.h> | 6 | #include <linux/types.h> |