From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.218.69 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796216631; b=Et6l2udIwdmctwOwuMszrZS+OIjwYYZWA9UwpogEPABzgdfDobEQBzcfMyzImdFBFn1G oz/WzNdu9767oyCbN1Po3VBZ9FSoX3TqA7ZxE9E155JOKpFBIhM1taUfXPq/KHF54Xu+s CTcm7Gnse0mYfAqyGC7MMX92soYlMJLIp3gbbcDaRAaDagoFPWo6PQfJG7CJFGY2nLzXs YiWl6F+GUFbhvsdS+3tZV2qn4qfH1dot2Y/3RI9S6Ur1Kkq51FNtNlVJpWlyUf0s1POmL 3hSOlXMOFv7qFPlpb9LAx6S+p9Dx4ZRDIdmeVpGjrlhGO+RpUWEQuvsuU5Lo2FIdfRA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796216631; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:Mime-Version: X-Mailer:Message-ID:Subject:From:To:Cc:Content-Type; bh=VrZzO1TnnqF25/Ep3IvVf/TxYyhu3T1jzJNgGkAbmiQ=; b=JRKa0gB2q6/wrSl8tGC3OsXrFWdToZc/d0JeKymLMdz2NLEbUp2f7DYI26MtUYu1yZ47 UfZTJ5gXIqqpp9X5WVF/2CE1sZOXjzEmbo81EHsImc1jo+fiL68OP6R196qGthXugz+uP 4pa9ibn1BzumRrikVwQVGHFNasovfHgLLTeyDlO4EMSyuP6H8btcvZvKraoBdPFnGGIQW hcZoSNzuuQvMD5lfhR8kh67rkQEWdDfiyeomlLamunc+MWlslxWGi0XHrd+3pVJCIxFPm 6+QP4x+o5fWNUsViZ80pgIW/eXsdKMJ5Gu5E8agrmrI2/xYam2pnunSvEnjsxwzyC5w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--jurbanowicz.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=onqj8OzX; arc=none smtp.remote-ip=209.85.218.69 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05CF1606A322 for ; Wed, 2 Dec 2026 13:03:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 05CF1606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--jurbanowicz.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=onqj8OzX Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-c505ee610feso1059867866b.2 for ; Wed, 02 Dec 2026 05:03:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796216629; x=1796821429; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=VrZzO1TnnqF25/Ep3IvVf/TxYyhu3T1jzJNgGkAbmiQ=; b=onqj8OzXDnpkHd0JAHlWOG3+oOgKEYdnIJPZ2x8QS+jgzZZ3s1U2xvHNjgiceRf9mV 251AQrktVafRhdOKAoS78eTFYDOhIR3m8JlrIzFqVjMi3YIWkiuPM2Edi9rKJ886oTqZ sfo1l55JksexBAqD6th+ujzbE+GKnG0JgkXvh8rEsl4U9fVbaROGDNH+orVm/GsLwxPv PivL4/W1A3Qnv4/tYbyM2yjl4H3u2PAqQKPlxPhFQebGp8VRiKn65i+2+bxWjO5azcmj /V3GZqSJFQt+6vi4aByUMC9enB6Ukxs9h1i9r8IaaLgVmQZIZfwAjAXwkdsUxHWYJJng ydag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796216629; x=1796821429; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=VrZzO1TnnqF25/Ep3IvVf/TxYyhu3T1jzJNgGkAbmiQ=; b=sXp+x4mBmgiGxMOywdnH99VyIL7z361IdhOA8Iq+62+5+g6dCCnvo/a1w64ZPvvRRT Ft8DesVrc1pm7Z7+8Sf8pujRqu4AccCRJcGSJ/Z++D+a/WJm0p0rxwYbNtrJ3oCXDmBm POtiE2zxgtSVIEzZ5mrzvN2krKBFUktJKjoG7vrOn9mruIHLnEA5Mp/A5htJpphN4HVm 4abRdXEyxdcxKyeBc+R4HxLL3/cn8e/fRRTqsaDSPppLFZXVSyPI5GWpwsWNaSaUEoDp At6Vmcf4/c5Pg+KcXPu9AS5S7tgWtVqk9dHDJzp31geZSqm8eEssKG01Ymp1Y/j/VyuA /HLw== X-Forwarded-Encrypted: i=1; AL+hErFVpuArVVJGAItGEcJszkAYiKDulwrsFwVNyJcjI9lMWrOrjx3m2aEViNWmSIH9MKByatgN7esSvQI1lG0=@vger.kernel.org X-Gm-Message-State: APuU4Z+F31RynPGBSDZP4qJK4QyUVo0IGRR2vaNwxTghtLI7Pl2maO/I Hy8Ssc3E/c/cKagKWqiU9Rq78QIu4wnrLaRlwMaNeDe1b4jQeOvnfY2XBSIBNq86GTGwLd/ln2t e0LBjYNF6tYkM2f4OcD0PwXHCiA== X-Received: from edcob24.prod.google.com ([2002:a05:6402:ca18:b0:6b8:94f9:d813]) (user=jurbanowicz job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6402:4028:b0:6bb:2a86:1a58 with SMTP id 4fb4d7f45d1cf-6bb2a86201emr19234479a12.43.1796216629145; Wed, 02 Dec 2026 05:03:49 -0800 (PST) Date: Wed, 2 Dec 2026 13:03:24 +0000 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 X-Mailer: git-send-email 2.56.1.911.g883d8bcb20-goog Message-ID: <20261202130324.1739821-1-jurbanowicz@google.com> Subject: [PATCH] media: i2c: ov5675: Use fwnode_graph_get_next_endpoint() From: Jacek Urbanowicz To: Sakari Ailus , Mauro Carvalho Chehab Cc: Antti Laakso , Hans de Goede , Daniel Scally , Hans Verkuil , Ricardo Ribalda , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Jacek Urbanowicz Content-Type: text/plain; charset="UTF-8" Commit c409dea36f00 ("media: i2c: ov5675: Wait for endpoint") replaced fwnode_graph_get_next_endpoint() with fwnode_graph_get_endpoint_by_id(). fwnode_graph_get_endpoint_by_id() requires the remote endpoint to resolve to an available device. On the Redrix Chromebook, the ACPI _DSD graph for OVTI5675 references IPU0 port 1, while IPU0 defines port 2. Because port 1 does not exist, fwnode_graph_get_endpoint_by_id() returns NULL. v4l2_fwnode_endpoint_alloc_parse() then returns -EPROBE_DEFER on every probe attempt, and the sensor fails to bind. Restore fwnode_graph_get_next_endpoint() at the start of ov5675_get_hwcfg(). On systems that use ipu-bridge, fwnode_graph_get_next_endpoint() returns NULL until the driver attaches the software node, so probe defers as before. This change restores camera probing and capture on Redrix Chromebook hardware. Fixes: c409dea36f00 ("media: i2c: ov5675: Wait for endpoint") Cc: stable@vger.kernel.org Signed-off-by: Jacek Urbanowicz --- drivers/media/i2c/ov5675.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/media/i2c/ov5675.c b/drivers/media/i2c/ov5675.c index a86f7af7798d..3d83a142dc7f 100644 --- a/drivers/media/i2c/ov5675.c +++ b/drivers/media/i2c/ov5675.c @@ -1182,8 +1182,12 @@ static int ov5675_get_hwcfg(struct ov5675 *ov5675) if (!fwnode) return -ENXIO; - ep = fwnode_graph_get_endpoint_by_id(fwnode, 0, 0, - FWNODE_GRAPH_ENDPOINT_NEXT); + /* + * Do not use fwnode_graph_get_endpoint_by_id(). Some Chromebooks ship + * broken ACPI tables where the remote-endpoint port does not match + * the host port, so the remote availability check fails. + */ + ep = fwnode_graph_get_next_endpoint(fwnode, NULL); ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); fwnode_handle_put(ep); if (ret) base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244