X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fhwtracing%2Fcoresight%2Fcoresight.c;h=e25492137d8bec86a5ff406ff1025724df095fbd;hb=041c79514af9080c75197078283134f538f46b44;hp=894531d315b8312f481a15ce64b17bdebe7ffbb4;hpb=14738e03312ff1137109d68bcbf103c738af0f4a;p=firefly-linux-kernel-4.4.55.git 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)) {