Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1622283pxk; Fri, 2 Oct 2020 14:38:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCVhcZ0AOl8DFtDxIRFXQiWoVwhxu0XpnFOomATfrEezSFgD/0Qd4KqsVmCossm6g0ZWF+ X-Received: by 2002:aa7:dac5:: with SMTP id x5mr4796029eds.72.1601674680564; Fri, 02 Oct 2020 14:38:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601674680; cv=none; d=google.com; s=arc-20160816; b=SdQO1DnkhYfWjR+rhR46i02Cp10gIX7QcyeIUUM5bTPshdQYDTBFB3xb33RFnhDYfY 7lUfo9FctNg2eOO9xlyMn6fpudIdcfu4a6joMLu1fxG/94U59KpYf9L4pVPph2NrWRz0 8nerpkMP7vby6HeqG4KcWm8RPiJL/847U9L4JrhDGY/saC+thEHia0kOYjuCXaK34Lfg cJ3kiX+G0mMEWtxpHJ7izhLz4QENYT2iduPuH75R8ehjKY36BJI6beIbi6QsURJkPdBV SPB/Gy/DBI8+oGL5AISk6VEWiknWVZpu8HSdqK2gNf6SRmEzNYUbWs/DPCQQyZXzZzpS VMmA== 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=K7r5m3tkpGosvDOLsPsFAxv4/KP2aIslKzF4+30ISEA=; b=HAdjUtWBpT2xTjL+MNwY4jX+MGwP1iAPa8MmBBSfD4anMNzJG7HltqOE/4F3DvKOOP B2eNC0qn1NVquCWb8CEXJ5BQueWYj1qE9aO3zRWe64sYdPcL80xUaKneFDKhowXaTfQx ywP/8L5sPY3p6gs8DKmb6qq//8USZDakLN4xKdAlEV+Y6IUQmD2d4GDP+4PiEP0pf23h Tjm1FBWzF9wdCKokaDFBdOGBA6ITOsAZGufQfjqQG2UltyDX6BwM7A+mgOtn8SQfhvSD 1vy79IwpIZIIZDUQCm8aHNpKzHIsDLkGxqgHubnsepL4mTEvhGtDOidDoljuMQVIWRaz 9BFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QTRbgb1C; 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 k12si1869163ejp.206.2020.10.02.14.37.37; Fri, 02 Oct 2020 14:38:00 -0700 (PDT) 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=QTRbgb1C; 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 S1725730AbgJBVei (ORCPT + 99 others); Fri, 2 Oct 2020 17:34:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgJBVei (ORCPT ); Fri, 2 Oct 2020 17:34:38 -0400 Received: from mail-yb1-xb42.google.com (mail-yb1-xb42.google.com [IPv6:2607:f8b0:4864:20::b42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BD36C0613D0; Fri, 2 Oct 2020 14:34:38 -0700 (PDT) Received: by mail-yb1-xb42.google.com with SMTP id v60so2146706ybi.10; Fri, 02 Oct 2020 14:34:38 -0700 (PDT) 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=K7r5m3tkpGosvDOLsPsFAxv4/KP2aIslKzF4+30ISEA=; b=QTRbgb1CVaW6Bc+gFPjgxzLqSk9S0LCsg428otJCFxH3GsT0KBk1w48xu6cs8KsNga qkfAoGckwCHqQgw7ZLbzJX/y1m4IWvX9Xi6PLV2F392sm0Y8nqyavAQ58IMX01GLW5LL OHE5G3tLm/9G6WYJrqqgEIJESK4tZr23bx/wSsP7b1x4tiPTNmOMgnKgC4fg4c3+YF8M 5M2h84Yl+SuFwNyWdOHdq1ZlyAn2LmsaSoqAqMO1tMcjFTgSZQV49+dV2PYZn/rQkMjL LyX6Jp45XHiDSlPlGzal/ROxekY5+PDUqOlxEt/jJ3ipWPf+gPQDWX9B18R8G8L7fS4Y Sekg== 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=K7r5m3tkpGosvDOLsPsFAxv4/KP2aIslKzF4+30ISEA=; b=XsL1MLjO51ri8tcv/iQM8NUffu88r8oavqGAdCN4qC8MwHm1VpeFF5EVX5a5PoMEy7 cxbv1lGEahK535rAKe2ztoAJEfTFf4CuqTncZ/DKhxQPkQbmSSYpt2JpYqvJBaevYV2M y9mKvzVifbDGu3z73TzZtVUhaWE1fMYBn4U/mplHIfss+NCnzKEpSmwTWddCmfVqLL/q lLi9qN6oDeDrv/+x8kGOVRTC+jOxcpNqRZDHPNMwhw9iRoqTZmLCA2SX7Lzz23wBGZAv LcBj6iHZTJrMVUgKqA/tuNUuBP56VQZ4tal/0LnwczcAl4Q6E+sb3i13Nk07/FRl4/vr HFYA== X-Gm-Message-State: AOAM530hl7zJoXOwDuNSuwbx/EvN7NoR06jzTc2b+LZy4DeAdGTCOSrD /HpziGGD9waN25GH5lq8Xuw3juT/JZoLH8kpl7M= X-Received: by 2002:a25:cb45:: with SMTP id b66mr5324771ybg.25.1601674477440; Fri, 02 Oct 2020 14:34:37 -0700 (PDT) MIME-Version: 1.0 References: <20201002165656.16744-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20201002165656.16744-2-prabhakar.mahadev-lad.rj@bp.renesas.com> <20201002211236.GW26842@paasikivi.fi.intel.com> In-Reply-To: <20201002211236.GW26842@paasikivi.fi.intel.com> From: "Lad, Prabhakar" Date: Fri, 2 Oct 2020 22:34:11 +0100 Message-ID: Subject: Re: [PATCH v7 1/3] media: i2c: ov772x: Parse endpoint properties To: Sakari Ailus Cc: Lad Prabhakar , Jacopo Mondi , Mauro Carvalho Chehab , linux-media , Linux-Renesas , LKML , Biju Das Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sakari, Thank you for the review. On Fri, Oct 2, 2020 at 10:12 PM Sakari Ailus wrote: > > Hi Prabhakar, > > On Fri, Oct 02, 2020 at 05:56:54PM +0100, Lad Prabhakar wrote: > > Parse endpoint properties using v4l2_fwnode_endpoint_alloc_parse() > > to determine the bus type and store it in the driver structure. > > > > Set bus_type to V4L2_MBUS_PARALLEL as it's the only supported one > > > > Signed-off-by: Lad Prabhakar > > Reviewed-by: Jacopo Mondi > > --- > > drivers/media/i2c/ov772x.c | 33 +++++++++++++++++++++++++++++++++ > > 1 file changed, 33 insertions(+) > > > > diff --git a/drivers/media/i2c/ov772x.c b/drivers/media/i2c/ov772x.c > > index 2cc6a678069a..b56f8d7609e6 100644 > > --- a/drivers/media/i2c/ov772x.c > > +++ b/drivers/media/i2c/ov772x.c > > @@ -31,6 +31,7 @@ > > #include > > #include > > #include > > +#include > > #include > > #include > > > > @@ -434,6 +435,7 @@ struct ov772x_priv { > > #ifdef CONFIG_MEDIA_CONTROLLER > > struct media_pad pad; > > #endif > > + enum v4l2_mbus_type bus_type; > > }; > > > > /* > > @@ -1348,6 +1350,33 @@ static const struct v4l2_subdev_ops ov772x_subdev_ops = { > > .pad = &ov772x_subdev_pad_ops, > > }; > > > > +static int ov772x_parse_dt(struct i2c_client *client, > > + struct ov772x_priv *priv) > > +{ > > + struct v4l2_fwnode_endpoint bus_cfg = { .bus_type = V4L2_MBUS_PARALLEL }; > > This one gets over 80. > Argh I need to adjust my checkpatch script > > + struct fwnode_handle *ep; > > + int ret; > > + > > + ep = fwnode_graph_get_next_endpoint(dev_fwnode(&client->dev), > > + NULL); > > And this needs no newline. > Agreed. Cheers, Prabhakar