From patchwork Tue Sep 19 12:17:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 724552 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 36C21CD5BA7 for ; Tue, 19 Sep 2023 12:20:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232029AbjISMUO (ORCPT ); Tue, 19 Sep 2023 08:20:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232036AbjISMT5 (ORCPT ); Tue, 19 Sep 2023 08:19:57 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43C1B1A4 for ; Tue, 19 Sep 2023 05:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695125948; x=1726661948; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Iqpx1kWDOCc1qOXWEryVVU3oAULjWBezSWe9h20p8Mo=; b=XKRxQggtQ1/9EELvt1g0NRt69aU0GPeoDiol/ohtQ9OdW3GDD771dIsc uh1zA+zAnD7MyGr6ovOY7XC7Bry2m2dqdgvvfRlkxJl1Sla3L8q0WxF2S b6wEJAiJDFGedu4DQGFFZufJVwcgpFQzCd/HfLGHMeX4OFdEOk4huwgkt wAqawzmxZxeochNE09FcfB50To4cEPzofktlLB26egW6uhT6C4l754gWr 6GvQySRIProaKjwKjKdIFo93Z5cIv2wdp1HR7cL+8vfGKcXlnSOfiAUrr dza0puNlTiAAHK7bM9SYXO4nXzRMSnEtMryJ/TZjpVS7Je4b0SCNIlLI9 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="466251022" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="466251022" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 05:17:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10837"; a="811701619" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="811701619" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 05:17:44 -0700 Received: from svinhufvud.ger.corp.intel.com (localhost [IPv6:::1]) by kekkonen.fi.intel.com (Postfix) with ESMTP id D899C120BE5; Tue, 19 Sep 2023 15:17:41 +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 v3 09/12] media: ov2740: Return -EPROBE_DEFER if no endpoint is found Date: Tue, 19 Sep 2023 15:17:25 +0300 Message-Id: <20230919121728.126781-10-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230919121728.126781-1-sakari.ailus@linux.intel.com> References: <20230919121728.126781-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 Reviewed-by: Laurent Pinchart --- 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);