Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp165121pxb; Wed, 20 Jan 2021 04:06:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzqztnAB/uDJ2G7VNS/kkmXYuMq18O5tx0DtKr/WtJ+j2QGYOxhtmv4FBUXZVQrf43m4ZEA X-Received: by 2002:a50:b246:: with SMTP id o64mr6631766edd.132.1611144254285; Wed, 20 Jan 2021 04:04:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611144254; cv=none; d=google.com; s=arc-20160816; b=uy2ZfTqJ3YL+RY7bZeuJKOZqmIrorX86yLtqlnmDW/d4gQIrTKZaiEplNgXHkyAJLi Mp8wSIpbIJuPMCxthmJ2N+8PBEqZMV4hzHU5OaUNGUDfnsPdTvULwXK0+kIMdr9y8V22 m5pPdimzqKq+O8rYd4D3ZEpXVXkK88eHMp1W+Mst/QIDOxmtJyrwq5pW+zivU1pkjPGr HPC+Nio/s8Olhz1Za60JqJCM7kbzxCCqmo5CZXzwFjYBxB1xjrzM+7k6OW50MARXcqPA VGxdRildRBC9LpbFVd8tYuP4vF8sMI8hYbxNHqBTDXx55t1UAGQqxUJTGMzK+77gt1bT idcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=izJjiQyu1GYzGUIAUfxMpuu92rB5Iocb5gRKO07/GnQ=; b=DdKzg1zRRY05JSzn83njd2Q1kW2vgYAiBd9gsrc58huDxEVjF7WM+tHMkqHQ7Y3Pz6 hvdW46aaC/MPPaJ9Ff1ud4KXoc8T9AqDwviDZp+MHFsnqL6kyfisM0E1biIdmZ2bTWgk A6knErQsAwSeoICc0YWCL3CRWLGoF3C0UD20+bjRcmf4iVLRfF4WNoW5q50eKDE3O2uk JBBgyp33zP/pcWQAE2MXlJTiVU03dPs8Yw6TcRqNaOPFROKWaa2Qx7a+sGdFXgqgP9tF hoGqNdJqC/soz0BvZQK1H8B6KK0LfFoEKxtLt/Rzeo8nrr2E2Vlx4+XzkPrF2C28N3oG /Qfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cbUC5KOU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lr10si621390ejb.484.2021.01.20.04.03.41; Wed, 20 Jan 2021 04:04:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cbUC5KOU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387621AbhATLlp (ORCPT + 99 others); Wed, 20 Jan 2021 06:41:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729880AbhATLJ2 (ORCPT ); Wed, 20 Jan 2021 06:09:28 -0500 Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ED75C061575; Wed, 20 Jan 2021 03:08:33 -0800 (PST) Received: by mail-yb1-xb36.google.com with SMTP id y128so19068790ybf.10; Wed, 20 Jan 2021 03:08:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=izJjiQyu1GYzGUIAUfxMpuu92rB5Iocb5gRKO07/GnQ=; b=cbUC5KOUYNg8M33ntayju3FjU261leLSiPzOC58RMPGUr9aIbXhgW0hpUY1Y486h9f WzaCjiN5XjAJAbWx9DH+VbQSPcTHAo98ZNIALTh6PE/I5ZkBtqnI+CVMABP5aDEV2bQN hRgG/5kV5rKCh6l5+atY3rWmiR0HcWxvvPGWD3Vn0g7KmepSvStc/DhAbqxYxrCOHHyD n9lFCiN2jEr6G6qUyx2F5/QU0GBF0/zr/VIUOX/zfHtv0Zvw7keT7MoYHEvPXM+r3JJ4 HM1A2o3UafF2jO1pGNzeamYemll1zmQT8icJlPIPfW0F5mvtVBQPbmxq3lX5zQRiRlFQ 23uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=izJjiQyu1GYzGUIAUfxMpuu92rB5Iocb5gRKO07/GnQ=; b=GYuMPnaNEzZRzTNRdPPoUNwUaDW13p/kN+ymQ7DfSXd5COi8ZEK7tX/HfL5/qWGxDQ 5Ds0Rb7eI/JkqnjG9BjxBCRNvDwWLn8qZbW0HtNngm0V0+gDIrr+uWjnQJ8GiHDQoUl1 9RnLBK0KuCjS1wKYNTD5qYZwM+IUX5MK7XTYPRvx8Cx6xRgiHfVLUz5m9DtKHVs6v2tI Xbwb2joK9pWZfj4Vmni38X9PV1NXyFyA1yLUxewuUMSqP5H+7Nty0My05DRs7BO6Jw8E 9zbqk/sOqQ4to73uf7T5vRpgpJlCbWyKrIDEVgWvWoFEU0usNS3mUgSY3p63isvvk5bL TbJA== X-Gm-Message-State: AOAM533c2peclKsQylPxEgg36to3GkMAX3jVYMotCAdOvymAFCo4MSnP jVNeAQykJkCBTL6djZm50J0ey5I97vvzgVWqpZJuyHd09+mGQA== X-Received: by 2002:a25:e686:: with SMTP id d128mr12914565ybh.127.1611140912403; Wed, 20 Jan 2021 03:08:32 -0800 (PST) MIME-Version: 1.0 References: <20210120090148.30598-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20210120103648.GI11878@paasikivi.fi.intel.com> In-Reply-To: <20210120103648.GI11878@paasikivi.fi.intel.com> From: "Lad, Prabhakar" Date: Wed, 20 Jan 2021 11:08:06 +0000 Message-ID: Subject: Re: [PATCH] media: i2c/Kconfig: Select FWNODE for OV772x sensor To: Sakari Ailus , Kieran Bingham Cc: Lad Prabhakar , Mauro Carvalho Chehab , Laurent Pinchart , Jacopo Mondi , linux-media , LKML , Biju Das Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sakari and Kieran, On Wed, Jan 20, 2021 at 10:36 AM Sakari Ailus wrote: > > On Wed, Jan 20, 2021 at 10:17:14AM +0000, Kieran Bingham wrote: > > Hi Lad, > > > > On 20/01/2021 09:01, Lad Prabhakar wrote: > > > Fix OV772x build breakage by selecting V4L2_FWNODE config: > > > > > > ia64-linux-ld: drivers/media/i2c/ov772x.o: in function `ov772x_probe': > > > ov772x.c:(.text+0x1ee2): undefined reference to `v4l2_fwnode_endpoint_alloc_parse' > > > ia64-linux-ld: ov772x.c:(.text+0x1f12): undefined reference to `v4l2_fwnode_endpoint_free' > > > ia64-linux-ld: ov772x.c:(.text+0x2212): undefined reference to `v4l2_fwnode_endpoint_alloc_parse' > > > > > > Fixes: 8a10b4e3601e ("media: i2c: ov772x: Parse endpoint properties") > > > Reported-by: kernel test robot > > > Signed-off-by: Lad Prabhakar > > > > I see this driver uses subdev API too. > > > > Should the driver also select VIDEO_V4L2_SUBDEV_API? > > Yes, it should. Another patch? This one fixes a compilation problem. > Do agree, I will post an incremental patch on top of this. Cheers, Prabhakar > > > > Or is that covered sufficiently already on any platforms that would use > > the driver? > > > > Reviewed-by: Kieran Bingham > > > > > --- > > > drivers/media/i2c/Kconfig | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig > > > index eddb10220953..bb1b5a340431 100644 > > > --- a/drivers/media/i2c/Kconfig > > > +++ b/drivers/media/i2c/Kconfig > > > @@ -1013,6 +1013,7 @@ config VIDEO_OV772X > > > tristate "OmniVision OV772x sensor support" > > > depends on I2C && VIDEO_V4L2 > > > select REGMAP_SCCB > > > + select V4L2_FWNODE > > > help > > > This is a Video4Linux2 sensor driver for the OmniVision > > > OV772x camera. > > > > > > > -- > Sakari Ailus