Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edb5ff25 authored by Xia Kaixu's avatar Xia Kaixu Committed by Mathieu Poirier
Browse files

coresight: adding the LINKSINK block as a sink type



>From the TMC TRM, the ETF can be configured as buffer mode, so ETF can
be a sink type.

Signed-off-by: default avatarXia Kaixu <kaixu.xia@linaro.org>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit a0a500efab41c761a1d1fd919d2e42a3a3545b2e)
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
parent c643df7d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -305,7 +305,9 @@ static int coresight_build_paths(struct coresight_device *csdev,

	list_add(&csdev->path_link, path);

	if (csdev->type == CORESIGHT_DEV_TYPE_SINK && csdev->activated) {
	if ((csdev->type == CORESIGHT_DEV_TYPE_SINK ||
	    csdev->type == CORESIGHT_DEV_TYPE_LINKSINK) &&
	    csdev->activated) {
		if (enable)
			ret = coresight_enable_path(path);
		else