Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2383611lqp; Sun, 24 Mar 2024 17:01:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWese4QDzKfXAEmIQVQogwgymETxqSrzSrfS7kJYEWXKEQUEdADeBvwjmQYrfPrjdqmknI4FvT/YtyA4ICW1OrFey8IHfHx2xFIAr686Q== X-Google-Smtp-Source: AGHT+IEMQQvNg+i6FV4jg3EHtjYZIkASUAs5GlZsGg078sk8SZlU0G7eWimCRbq6fdUn3a9D/L/f X-Received: by 2002:a50:d4cf:0:b0:565:e610:c358 with SMTP id e15-20020a50d4cf000000b00565e610c358mr3124924edj.38.1711324915858; Sun, 24 Mar 2024 17:01:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711324915; cv=pass; d=google.com; s=arc-20160816; b=Zypb69Uacnh7ZeGlY1G71QSFs7Z3juaaAqVeBcf7X3V9qeUYOcRaytChGragsLt1ui zdNYey7UfM3iZ5dOrEJ7lqVeMCxs7wLslJJBIc7chWigxK52FH5VWFcZjwH5sXmYJcVm 8L0n6rWBan7bnWj439xLhrEfej/PxJ2pgd7nNou/cwg1l+bz+ROcNl0itQt0cOL/+rOQ tBO0/HUjOTNbNYtD4fSeT/R6giTrP0PmHelcf59zTCsGokys4We3/2xun2U4QC6I4j57 Jnn58N0swRs5GbJ7GUOv5hFyTOTJLEzIqS53hBXaPypEuFsrYGJdI6RajQcRUAjDarbr utNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=XhLQecWq2KHfWHze5MqfAliakWPnrLGqxPFjGIQIOuo=; fh=nwuC79TRP0Q9hduUSmf0HNFufj39VSgkajNAwSLpa+c=; b=AXEasMrW7/ccGz6GszwxnP4Wm5oidOnCJu/uPOFKCmtOtlgR9YQhdi5G14KHBYhSAa cylfv9AGMYGtcWrfNnmImfni15v18HLbG/vnP1AXZ/h5L+s6mwYPccofY/b8jHIaWhUv qx+2zOHpd9wal2n+kTZahUpHT5xdipAahkuXXgWcB21p7cqZ9ijIhUTfzmuSsSNT1G8l 1GKLy2nGsjC67F/+fRK40yfa0aJqiYSpvNBcISll+6DipNY/s1tfXstNx1rdG99Zg1zP bV3AwJFgcRXebnxSnNCcc0nX0JSCkJjXnvSBuvcjK2ouLo1BzXM7GgcyYYj1Q8XSUUUD oyvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lhBtUHlZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l15-20020a056402254f00b0056c17c2c32bsi42905edb.430.2024.03.24.17.01.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:01:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lhBtUHlZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113264-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113264-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A5E451F22B24 for ; Sun, 24 Mar 2024 23:56:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D88C1189A2F; Sun, 24 Mar 2024 22:41:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lhBtUHlZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EAED1189282; Sun, 24 Mar 2024 22:41:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320064; cv=none; b=ooMWPLC43mscegf/6NE+RKLqE7xn8bDsgZGcNHNnxInJASH+/mJgfY9JzQ1o+XxSLYVddB+ygUkuzI6gEFVs3XiuDbkHDcu0vbbG08NfA42c60xGi8ChzM9TtigejASi/YLskPbv2iKuB5utnCPt0DAjIeF5N2XhQeOJBMHWb/M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320064; c=relaxed/simple; bh=VNH8aazt+hgmi98g0sVxWScnSlD7pb3NGFc4YISxvsA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YBS7TEaqIzBFHtqrhS2ygtiLPb60pVaPXGsXI2i8Ry3q7kij8EAFoJ05E2Ku2t56kQSH6ZiXuop5Y5XkDBGDIqvQmCL68rSeUq/YaxKoMVI106ZT/0Y5B33vHM67UQoqpUaKQu46LPl/5SKDTjCzjq19qSZarOSW3WdMLaLwsB0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lhBtUHlZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C609C433C7; Sun, 24 Mar 2024 22:41:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320063; bh=VNH8aazt+hgmi98g0sVxWScnSlD7pb3NGFc4YISxvsA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lhBtUHlZhal4e8XuhF2nFS4EoxLGLWyM29ZKEQPmw9bLLvd7hK19vkQP2vK270jnG DJSD7ian7wIVeFUAr5/EIvb4oS2vs5VyK7jGmx/MygyGDqizLTG5lmGwzwaMvNGr8w Y3ijdMpKeiVq09Aq7yjI+HYYqASpaJ7tePh0oaTdgkKBzJCfPcV+BfXkcyKTCCdeDU J1fbqn1Mc6ePpeLU/Sydap4QcuxFXK6o4NfIxW6f2ER7w4lhvJNaRAm50yPRvcLjrN 5UWJt44pci4SoI6QJ/pN4vqf+KnzDY+zX6BYffMfDnIgYVbNxJPqgVKkLwcLbFr2ib 8dIbZqewDmQnQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Julien Massot , Jai Luthra , Sakari Ailus , Hans Verkuil , Sasha Levin Subject: [PATCH 6.8 373/715] media: cadence: csi2rx: use match fwnode for media link Date: Sun, 24 Mar 2024 18:29:12 -0400 Message-ID: <20240324223455.1342824-374-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Julien Massot [ Upstream commit 448699c522af9e3266f168c3f51f4c3713c7bee1 ] Since commit 1029939b3782 ("media: v4l: async: Simplify async sub-device fwnode matching"), async connections are matched using the async sub-device fwnode, not that of the endpoint. Fix this by using the fwnode of the connection match to find the pad. Fixes: 1029939b3782 ("media: v4l: async: Simplify async sub-device fwnode matching") Signed-off-by: Julien Massot Reviewed-by: Jai Luthra Signed-off-by: Sakari Ailus Signed-off-by: Hans Verkuil Signed-off-by: Sasha Levin --- drivers/media/platform/cadence/cdns-csi2rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c b/drivers/media/platform/cadence/cdns-csi2rx.c index fead5426830e8..0ea5fa956fe9a 100644 --- a/drivers/media/platform/cadence/cdns-csi2rx.c +++ b/drivers/media/platform/cadence/cdns-csi2rx.c @@ -468,7 +468,7 @@ static int csi2rx_async_bound(struct v4l2_async_notifier *notifier, struct csi2rx_priv *csi2rx = v4l2_subdev_to_csi2rx(subdev); csi2rx->source_pad = media_entity_get_fwnode_pad(&s_subdev->entity, - s_subdev->fwnode, + asd->match.fwnode, MEDIA_PAD_FL_SOURCE); if (csi2rx->source_pad < 0) { dev_err(csi2rx->dev, "Couldn't find output pad for subdev %s\n", -- 2.43.0