Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2059336ybi; Thu, 20 Jun 2019 08:27:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhwHo/noDTalrVEzRCZyaFLqOfsduE93zYGOUmFo8zjwHNt62i+8Xs4RdSjMh1CqhlOSc1 X-Received: by 2002:a62:e801:: with SMTP id c1mr107680716pfi.41.1561044444613; Thu, 20 Jun 2019 08:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561044444; cv=none; d=google.com; s=arc-20160816; b=o8Efk616P6Szpl0cw59xBBEyBQaLmOBwngacDY8bo5mrkRCy09hBiHTrAuPRJJ4hjU dnL/Jm6DHbeHyl16op5h+6FnlemzaXmahYInU3FdyGKTr1Fk5bFao1H9QxZ4ZoUJIMMC Q7q2Mwx8wXA66AmMjiEuMdDR+xFbhioWJHGmaXTZrdh36Yrw1uqJv2koAF2H9nJtl3VM QbB7gqJSEdhYBHubiJVs2lL+xey8EltzrfOKxz667TJqgEJOuVdAI97uvj1qtZIShmwD +0R6jLgzYXGEHcnoM3vSSzZX7EfEWEoXYqW3kcNBJtfCDEfOqdTRq4TgdC7HSQq2Q6hO KsMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bnOg9gEcBdDirOCMI/w2xqgClkZkKcU3BNfm18YnlpQ=; b=Uw0qrqta09kh7JC9D5X6Fv7RLpoRtd6+viL0tfGyuFLYnkGe5uWnaJU8Zu0W2GmnJV ohBKeGV1Za0ouxWBRxO3dwRHQkY/Vz9QjLjkiorgVNuwa4pRBLSPxbBayL6Xn0jb6Ut6 TRw/H6b9WqLYonopqDYGE4UBMGUHoue53RhZPzohh0oNgK/i98fm3I1aG+qTF9b+Sjyt 7zpPRONfW4IPxoppfU4G4WQSP9KSgODYCcfEq0P9pfBu8BjRmIK6GWYxVjxySBN4VqgL B8tYNASUJFQ5ng0eJMO7Vbgu0GlV/kl3cIi9H3+pDiACenT18fpQvgBkmla9xYbbEhsx efgA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5si65734pjp.77.2019.06.20.08.27.08; Thu, 20 Jun 2019 08:27:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731567AbfFTP0v (ORCPT + 99 others); Thu, 20 Jun 2019 11:26:51 -0400 Received: from mga03.intel.com ([134.134.136.65]:4413 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726428AbfFTP0v (ORCPT ); Thu, 20 Jun 2019 11:26:51 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Jun 2019 08:26:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,397,1557212400"; d="scan'208";a="311692885" Received: from waelreed-mobl1.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.252.63.228]) by orsmga004.jf.intel.com with ESMTP; 20 Jun 2019 08:26:45 -0700 Received: by kekkonen.fi.intel.com (Postfix, from userid 1000) id B5D8D21D88; Thu, 20 Jun 2019 18:26:41 +0300 (EEST) Date: Thu, 20 Jun 2019 18:26:41 +0300 From: Sakari Ailus To: Hugues Fruchet Cc: Alexandre Torgue , Mauro Carvalho Chehab , Hans Verkuil , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Benjamin Gaignard , Yannick Fertre , Philippe CORNU , Mickael GUENE Subject: Re: [PATCH v2 1/3] media: stm32-dcmi: improve sensor subdev naming Message-ID: <20190620152640.chd4u4u5hd56ausk@kekkonen.localdomain> References: <1560242912-17138-1-git-send-email-hugues.fruchet@st.com> <1560242912-17138-2-git-send-email-hugues.fruchet@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1560242912-17138-2-git-send-email-hugues.fruchet@st.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hugues, On Tue, Jun 11, 2019 at 10:48:30AM +0200, Hugues Fruchet wrote: > Add a new "sensor" field to dcmi struct instead of > reusing entity->subdev to address sensor subdev. The purpose of the struct binding image source's async subdev as well as related information is to allow associating the two. This patch breaks that. If your device can support a single sensor, it might not be a big deal. The end result remains somewhat inconsistent as subdev specific information is spread across struct stm32_dcmi and struct dcmi_graph_entity. In general you don't need to know the sensor as you can always find it using media_entity_remote_pad(). This driver is a little different though as it could presumably continue to work without MC. Was that the intent? On a side note: struct dcmi_graph_entity does NOT have struct v4l2_async_subdev as its first member. Please fix that and prepend the fix to this set. -- Kind regards, Sakari Ailus sakari.ailus@linux.intel.com