From patchwork Mon Sep 18 12:51:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 724565 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C6A7CD13D2 for ; Mon, 18 Sep 2023 12:53:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241555AbjIRMwj (ORCPT ); Mon, 18 Sep 2023 08:52:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241565AbjIRMwI (ORCPT ); Mon, 18 Sep 2023 08:52:08 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7A3CAA for ; Mon, 18 Sep 2023 05:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695041522; x=1726577522; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=C3+DrYI6c3yXPY6uBMQap29a09f38tP0Cibur5IR1aA=; b=NajB0XyCWmNj4Ndpj8ZWxHe2ryMu5z5vejHNxbeWNRUWaWu3+66rLTEF 8w2mMKhLGmpQm1udRLgY2PN6yuelG5jmp1WS252+2lpdhx47hjKJc/UTM dTAucpUNaUQLjyA7uqUozJlEpGt+JSL/RSW7EQxuYziGPatEPccj42/4F Lz7KHqzBrMAr7JgcdHEciI3dp5cKNnguS2dLIWyMYGzU/c96k7j2fUjBV k9I2pvnycbzqrB77GYQb45CPIgOkdblKMu59WpfCeOFBAzLhyO9wVi+qa OLepvqiAPFRxGfQCOde3YUWluW6AImslJSnxGD2lgYkyP2qdUUeH/Ysbu w==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="364688981" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="scan'208";a="364688981" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 05:51:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="836005470" X-IronPort-AV: E=Sophos;i="6.02,156,1688454000"; d="scan'208";a="836005470" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2023 05:51:53 -0700 Received: from svinhufvud.ger.corp.intel.com (localhost [IPv6:::1]) by kekkonen.fi.intel.com (Postfix) with ESMTP id CE81D11FC2C; Mon, 18 Sep 2023 15:51:50 +0300 (EEST) From: Sakari Ailus To: linux-media@vger.kernel.org Cc: laurent.pinchart@ideasonboard.com, Tianshu Qiu , Bingbu Cao , Tomi Valkeinen , Jacopo Mondi , Rui Miguel Silva , Martin Kepplinger Subject: [PATCH v2 09/12] media: ov2740: Return -EPROBE_DEFER if no endpoint is found Date: Mon, 18 Sep 2023 15:51:35 +0300 Message-Id: <20230918125138.90002-10-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230918125138.90002-1-sakari.ailus@linux.intel.com> References: <20230918125138.90002-1-sakari.ailus@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org With ipu bridge, endpoints may only be created when ipu bridge has initialised. This may happen after the sensor driver has first probed. Signed-off-by: Sakari Ailus --- drivers/media/i2c/ov2740.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov2740.c b/drivers/media/i2c/ov2740.c index 2c00e653ec47..ccbb15e730ae 100644 --- a/drivers/media/i2c/ov2740.c +++ b/drivers/media/i2c/ov2740.c @@ -976,7 +976,7 @@ static int ov2740_check_hwcfg(struct device *dev) ep = fwnode_graph_get_next_endpoint(fwnode, NULL); if (!ep) - return -ENXIO; + return -EPROBE_DEFER; ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg); fwnode_handle_put(ep);