From: Mathieu Poirier Date: Fri, 24 Jul 2015 15:08:27 +0000 (-0600) Subject: coresight: adding comments to remove ambiguity X-Git-Tag: KARO-TX6UL-2015-11-03~17^2~5 X-Git-Url: https://git.kernelconcepts.de/?a=commitdiff_plain;h=12f36af2d41b4dea02690dd2666659a0404e1d8d;p=karo-tx-linux.git 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 --- diff --git a/drivers/hwtracing/coresight/coresight.c b/drivers/hwtracing/coresight/coresight.c index 894531d315b8..e25492137d8b 100644 --- a/drivers/hwtracing/coresight/coresight.c +++ b/drivers/hwtracing/coresight/coresight.c @@ -240,6 +240,11 @@ static int coresight_enable_path(struct list_head *path) int ret = 0; struct coresight_device *cd; + /* + * At this point we have a full @path, from source to sink. The + * sink is the first entry and the source the last one. Go through + * all the components and enable them one by one. + */ list_for_each_entry(cd, path, path_link) { if (cd == list_first_entry(path, struct coresight_device, path_link)) {