]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
coresight: adding comments to remove ambiguity
authorMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 24 Jul 2015 15:08:27 +0000 (09:08 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Fri, 23 Oct 2015 13:35:43 +0000 (07:35 -0600)
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>
drivers/hwtracing/coresight/coresight.c

index 894531d315b8312f481a15ce64b17bdebe7ffbb4..e25492137d8bec86a5ff406ff1025724df095fbd 100644 (file)
@@ -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)) {