Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'coresight-next-v6.11' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/coresight/linux into char-misc-next

Suzuki writes:

coresight: Updates for v6.11

Coresight/hwtracing subsystem updates targeting v6.11 includes a few minor
fixes and cleanups

Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>

* tag 'coresight-next-v6.11' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/coresight/linux:
hwtracing: use for_each_endpoint_of_node()
coresight: constify the struct device_type usage
coresight: tmc: Remove duplicated include in coresight-tmc-core.c
coresight: Fix ref leak when of_coresight_parse_endpoint() fails

+7 -6
+5 -3
drivers/hwtracing/coresight/coresight-platform.c
··· 275 275 */ 276 276 if (!parent) { 277 277 /* 278 - * Avoid warnings in of_graph_get_next_endpoint() 278 + * Avoid warnings in for_each_endpoint_of_node() 279 279 * if the device doesn't have any graph connections 280 280 */ 281 281 if (!of_graph_is_present(node)) ··· 286 286 } 287 287 288 288 /* Iterate through each output port to discover topology */ 289 - while ((ep = of_graph_get_next_endpoint(parent, ep))) { 289 + for_each_endpoint_of_node(parent, ep) { 290 290 /* 291 291 * Legacy binding mixes input/output ports under the 292 292 * same parent. So, skip the input ports if we are dealing ··· 297 297 continue; 298 298 299 299 ret = of_coresight_parse_endpoint(dev, ep, pdata); 300 - if (ret) 300 + if (ret) { 301 + of_node_put(ep); 301 302 return ret; 303 + } 302 304 } 303 305 304 306 return 0;
+1 -1
drivers/hwtracing/coresight/coresight-priv.h
··· 13 13 #include <linux/pm_runtime.h> 14 14 15 15 extern struct mutex coresight_mutex; 16 - extern struct device_type coresight_dev_type[]; 16 + extern const struct device_type coresight_dev_type[]; 17 17 18 18 /* 19 19 * Coresight management registers (0xf00-0xfcc)
+1 -1
drivers/hwtracing/coresight/coresight-sysfs.c
··· 377 377 }; 378 378 ATTRIBUTE_GROUPS(coresight_source); 379 379 380 - struct device_type coresight_dev_type[] = { 380 + const struct device_type coresight_dev_type[] = { 381 381 [CORESIGHT_DEV_TYPE_SINK] = { 382 382 .name = "sink", 383 383 .groups = coresight_sink_groups,
-1
drivers/hwtracing/coresight/coresight-tmc-core.c
··· 26 26 #include <linux/coresight.h> 27 27 #include <linux/amba/bus.h> 28 28 #include <linux/platform_device.h> 29 - #include <linux/acpi.h> 30 29 31 30 #include "coresight-priv.h" 32 31 #include "coresight-tmc.h"