From patchwork Fri Jan 5 09:00:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Massot X-Patchwork-Id: 760378 Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 24719225AD for ; Fri, 5 Jan 2024 09:00:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="vIrnjShx" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1704445247; bh=vYij0IphN1dkavCSb/lN9KMHeGQ/4DQoaD0MHdFEQ6w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vIrnjShx+UDMsvvaH/BwBxN7TJ5728zHAWuuOLoJJix/dazdKbbJnGtatgBAy3Yzz d4d4yQnHcd3LjZ4a1EAQaki7GLkaIEli4hI3kR4stiXoEL51v3dWPYsJlE12m/XHmy uy4qO3MDJEwSPsShzRK45HNpXCn5P8/zen95f7oVUq9pNHkfqNkwEYpJNua06xZt6x MOxtC5dR8RgkmaC4mQ5N8QeYVBOCGTXDb6fnqlzhH/oP68+HJzUnSADJB0IvRTKyjI wvnTI7tzZO0toG0O6Dzg1DPqTsOdCK+MoLWKOF3JBw5uQEkGwynINEgn8gewqCExuJ 84Sl0t7ewD2TQ== Received: from stla-brain-8255-1.home (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jmassot) by madrid.collaboradmins.com (Postfix) with ESMTPSA id AEB8F3782002; Fri, 5 Jan 2024 09:00:46 +0000 (UTC) From: Julien Massot To: j-luthra@ti.com, mchehab@kernel.org, mripard@kernel.org, sakari.ailus@linux.intel.com Cc: kernel@collabora.com, linux-media@vger.kernel.org, Julien Massot Subject: [PATCH v3 1/5] media: cadence: csi2rx: use match fwnode for media link Date: Fri, 5 Jan 2024 10:00:21 +0100 Message-ID: <20240105090025.1245112-2-julien.massot@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240105090025.1245112-1-julien.massot@collabora.com> References: <20240105090025.1245112-1-julien.massot@collabora.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- 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 91ef22e9109a..e83b877c48da 100644 --- a/drivers/media/platform/cadence/cdns-csi2rx.c +++ b/drivers/media/platform/cadence/cdns-csi2rx.c @@ -467,7 +467,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",