Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5317842ybl; Tue, 4 Feb 2020 11:39:54 -0800 (PST) X-Google-Smtp-Source: APXvYqwW1jl5ZF6CitDKNlibQJ3uRpv0cxx2MD7doFHYKV0GC5FjEkrKN1oy/1AeYbGTWY64CBNN X-Received: by 2002:a05:6830:1e95:: with SMTP id n21mr23975202otr.25.1580845194216; Tue, 04 Feb 2020 11:39:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580845194; cv=none; d=google.com; s=arc-20160816; b=HhONJFSsgHBLLjcKiRTFBqIbnEfgrklAotV8pEPAiA+UN0MvrpgwN5+8ga3VJzN5WP NcGj0fa7n8Z6vUuF411M60vNjrPdQWIeAOZrL7piFiAzvV4/x7nMwXWNJsuCPWgVvsep GVXqeNAYbuhlHU1G4bOq2HBW3Z8d6MkTHlwviKQb0XqsBjykA/9cEYFpzW7XTfkKBBLn XSFFrN16J39CLCETmR3lb5VzWM/l7bp7VdVED4/R1SpHneyd7Rvac0Bf35PPVEVLnHKo DJU/5qBaPnnJHWqM89WSVwNAbXetaldTbJqTZa5QW2bnJ/lFyuAFuPSeOnr64rPFiU+B CcUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=7/vufUvQ+b7PaZ5KMMq3+F/lhv8GpphGGTdRFG4USp8=; b=C4KqihdalhK+JGOvK/5QyBPJw3J/wkbXJg+2uqgTPxrqTZZ9lxpLzk4JFlEcdoGeuO OlUC1cSrXdchRPMMaMWXkfa2EGXR7yFDK6ycjPnY0lpVkvyE5rVIFjaejGldR71oLP+P l/ZJK6V12IzZomB9LGhF+LvnSUFqldzrzLxlwAt4PglsfAMmbWsdy27Uqw1HEJU4Aeft YtdtPHFIWiGA06XlqxuNdVj9qb8ozVVo6YWG76mQQWcMW61PXs97+3RNVooqZDINl+hn wZArxhywkweeM2h6I1e2kFu/lTR2zMDl6lgFb4iZ5tzWXZbsYTa252FwTSMFs5Mb2yMG LG9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a13si12865297otq.201.2020.02.04.11.39.41; Tue, 04 Feb 2020 11:39:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727541AbgBDTit (ORCPT + 99 others); Tue, 4 Feb 2020 14:38:49 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:42872 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727331AbgBDTit (ORCPT ); Tue, 4 Feb 2020 14:38:49 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 620C628BA6C From: Ezequiel Garcia To: linux-media@vger.kernel.org Cc: kernel@collabora.com, linux-kernel@vger.kernel.org, Hans Verkuil , Ezequiel Garcia , Nicolas Dufresne , stable@vger.kernel.org Subject: [PATCH for v5.6] hantro: Fix broken media controller links Date: Tue, 4 Feb 2020 16:38:37 -0300 Message-Id: <20200204193837.16021-1-ezequiel@collabora.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver currently creates a broken topology, with a source-to-source link and a sink-to-sink link instead of two source-to-sink links. Reported-by: Nicolas Dufresne Cc: # for v5.3 and up Signed-off-by: Ezequiel Garcia --- drivers/staging/media/hantro/hantro_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/media/hantro/hantro_drv.c b/drivers/staging/media/hantro/hantro_drv.c index 448493a08805..840b96bee082 100644 --- a/drivers/staging/media/hantro/hantro_drv.c +++ b/drivers/staging/media/hantro/hantro_drv.c @@ -556,13 +556,13 @@ static int hantro_attach_func(struct hantro_dev *vpu, goto err_rel_entity1; /* Connect the three entities */ - ret = media_create_pad_link(&func->vdev.entity, 0, &func->proc, 1, + ret = media_create_pad_link(&func->vdev.entity, 0, &func->proc, 0, MEDIA_LNK_FL_IMMUTABLE | MEDIA_LNK_FL_ENABLED); if (ret) goto err_rel_entity2; - ret = media_create_pad_link(&func->proc, 0, &func->sink, 0, + ret = media_create_pad_link(&func->proc, 1, &func->sink, 0, MEDIA_LNK_FL_IMMUTABLE | MEDIA_LNK_FL_ENABLED); if (ret) -- 2.25.0