Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1378762rdh; Fri, 24 Nov 2023 11:02:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHfndgNvl2+HpJMRk4IDQUOa4Wk6G4qZPVmigPvw5yE4eQOmSW+Y6UcF6k/BXrfrigJiUiv X-Received: by 2002:a05:6830:1286:b0:6bf:1e78:cc52 with SMTP id z6-20020a056830128600b006bf1e78cc52mr4818382otp.25.1700852553569; Fri, 24 Nov 2023 11:02:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700852553; cv=none; d=google.com; s=arc-20160816; b=TSbai2HaIGgOzrh82tNHucYzI/874B7mklU3fys3SZfr+OF0POkyznR1riBiy5ePEO Ic/fZFPWMbo0vyQXNNROJLxKGWu8Qis/lKhXlYa5zPj5bsAqweNwwcnvjAIx2l3hdi5e RdRYSIrzCTuuxeWeO4ZVwBzdClpgi5vaO0gVkcwE1nVXuYkjzGz35rqrZaRaj0BKZ289 LoF+l1/EtiyqxbXPuSZirSaKUKcr0frT7La6qpWJq0AoGsEqtla1fE90L8T8xnzfV2D1 ebyuJ/VMRdXP+amVU3PlqtL76xR18/aQjB7Zmo6SZ2QlEA5qhZUIBtWb5YxVjMWqsRT1 rnog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=3F184n6UjoTn10axaf6jM7akcWXmYa+p+MWYHZqrJs8=; fh=IVgA5PbgOrqRU7LPV9hgZ4b3MgVBQFi87biauB9JjPQ=; b=dW4JmEM2XSKQAyZ/C4XtPNkstc9TGRiTFjTOSBdxP/0HxQJtDEotWqguCjyS3D3P2Y DtUwNumQyRy8fW6JDvdU+vSRerFjviBewbi4qreIEJPO5TlmN/8D0e0S84G88en+CoGq A64gW/SB29sqyOnVSppw+CdOPr8JNRAChxInfLW0llBjFGfLdpOyuPVsup60OoMfhaYG vt8jXMMROM0m4Xjp/o57ePPfxdWEXSysB6JDEYrYdst+vjj0VDg/oZkDKAT5WZTY+Ei0 bcJ/tP+J7+Rm+bs8w9iAKr4W4rixCFKVnKCY1SC0/MGFjUnQxUrlSA+KwN/GsX9VGVvP RuZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="j/hN45v4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id g24-20020a0568300a5800b006ce27d62632si1540285otu.318.2023.11.24.11.02.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 11:02:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="j/hN45v4"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id EB5BC83D4F02; Fri, 24 Nov 2023 11:02:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345901AbjKXTCI (ORCPT + 99 others); Fri, 24 Nov 2023 14:02:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231548AbjKXTCG (ORCPT ); Fri, 24 Nov 2023 14:02:06 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 177F02108; Fri, 24 Nov 2023 11:02:12 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40b34563987so13082015e9.1; Fri, 24 Nov 2023 11:02:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700852530; x=1701457330; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=3F184n6UjoTn10axaf6jM7akcWXmYa+p+MWYHZqrJs8=; b=j/hN45v4FQsWMXGs+8+2sZEh/jjM912rRTYIdIbr/N6AQQ49XVmkcx9VC0ZIDRAHst 5kat03W7Ji+l9IszlqRqcRZmsPIG/3224+WXfH8SP38SAbgFNCkirpeq//aPzMTShbHG Fk/8WqJdj1TfS3NNxJWljcU0MMfgJ61gjwdyeMLeKf2nVdbSZjgsRzXxI21UL1fSOcu4 rOWqbmZff/wETsGLHjQhBPoFlmLMX71IRk3nMjBiAqCNeVtf02wuutkIR2YEpu1dO6Rq NHDaZ9kTIh007gfRXlH92w3dSDIVJfH4KmtP9/9pi9mcfMWEyZ6oO3E3uM6uSuXDDiEN PC/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700852530; x=1701457330; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3F184n6UjoTn10axaf6jM7akcWXmYa+p+MWYHZqrJs8=; b=jri7KSfL2Jb2OZNQl/LIR53W1cbyoR/asndOAJNClwBa3Jg5MMKlzC+isatADQhmTS jty68owdUUgcyYixsDhiaf1IcL27Lm5zftqaBtZ+EVvMkDAdI2REcBSGXJuGVM6Pbz/i NyWtphU8NZcUB+VWX2DcjEH6StEdBKkerk5mzHpoWk8M5F7BfXHrYr8Y/qW8++9ZKaDX Er0xgNDzXNmCDniYn0G4yJk5Qn1mLX3EPmGjrFpn+8bJk4C44dndK/U+UXO/eaG4HQjE /oEWugFyi7IZ6wGQ+iK7bWwjpYYb7DxUCi6pxUNyGCvRCKJTbfozYzAZz6c6jmXDQ9EZ itew== X-Gm-Message-State: AOJu0Yy1V54LcL+8KLIE6kpCtWzzFaA1Gkw/HRJotiVhT+adEXLIaQ4r bfWwcdo0xbLePyKir4K1iekHYkY5lKU= X-Received: by 2002:a05:600c:6d3:b0:408:37aa:774a with SMTP id b19-20020a05600c06d300b0040837aa774amr6691625wmn.17.1700852530228; Fri, 24 Nov 2023 11:02:10 -0800 (PST) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation (net-2-39-142-131.cust.vodafonedsl.it. [2.39.142.131]) by smtp.gmail.com with ESMTPSA id v9-20020adfe4c9000000b00332c6f1beccsm4862181wrm.66.2023.11.24.11.02.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 11:02:09 -0800 (PST) Date: Fri, 24 Nov 2023 20:02:07 +0100 From: Tommaso Merciai To: linuxfancy@googlegroups.com, laurent.pinchart@ideasonboard.com, Sakari Ailus , Steve Longerbeam , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: ov5640: add missing v4l2_subdev_init_finalize Message-ID: References: <20231124184913.2574925-1-tomm.merciai@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231124184913.2574925-1-tomm.merciai@gmail.com> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 24 Nov 2023 11:02:31 -0800 (PST) Hi, On Fri, Nov 24, 2023 at 07:49:13PM +0100, Tommaso Merciai wrote: > After the ov5640 configurations steps let's add v4l2_subdev_init_finalize > that finalizes the initialization of the subdevice. > > References: > - https://linuxtv.org/downloads/v4l-dvb-apis/driver-api/v4l2-subdev.html > > Signed-off-by: Tommaso Merciai > --- > drivers/media/i2c/ov5640.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c > index 3f79a3b77044..338eea802ab8 100644 > --- a/drivers/media/i2c/ov5640.c > +++ b/drivers/media/i2c/ov5640.c > @@ -3924,6 +3924,12 @@ static int ov5640_probe(struct i2c_client *client) > if (ret) > goto entity_cleanup; > > + ret = v4l2_subdev_init_finalize(&sensor->sd); > + if (ret < 0) { > + dev_err(dev, "subdev init error: %d\n", ret); > + goto entity_cleanup; > + } > + > ret = ov5640_sensor_resume(dev); > if (ret) { > dev_err(dev, "failed to power on\n"); > -- > 2.34.1 > Ignore this patch please. I forget the cleanup part. Thanks & regards, Tommaso