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

coresight: adding comments to remove ambiguity

Add comment to function coresight_enable_path() to make
sure there is no misunderstanding about what the code does.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Mathieu Poirier and committed by
Greg Kroah-Hartman
58b8d51b 1d27ff5a

+5
+5
drivers/hwtracing/coresight/coresight.c
··· 240 240 int ret = 0; 241 241 struct coresight_device *cd; 242 242 243 + /* 244 + * At this point we have a full @path, from source to sink. The 245 + * sink is the first entry and the source the last one. Go through 246 + * all the components and enable them one by one. 247 + */ 243 248 list_for_each_entry(cd, path, path_link) { 244 249 if (cd == list_first_entry(path, struct coresight_device, 245 250 path_link)) {