Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp353852imm; Thu, 30 Aug 2018 00:00:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZiu+TZ+qMcdJhsAnYRPtSWVhM8qRRez0U3jLonrVZoHjEScC6ax5iywrKX3foEoWhyaiVF X-Received: by 2002:a62:2744:: with SMTP id n65-v6mr9279785pfn.125.1535612441608; Thu, 30 Aug 2018 00:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535612441; cv=none; d=google.com; s=arc-20160816; b=cgl09ksPb2jbCfJJeFUUYlE0oIGBTXNR/qT6hk9G7lYSbhCKYOS2NTzx5lp6Kr690T xyRHGLCkcdVKgb9XodXsQK8nY2qvgxTMVrMUGzcZsF0/r0YZqwlrHciVaAOOgWYLzXCu jr24AbW6UfQKvUpbNdH8hnQYvzqEqLOwFSJQMCSm2buUclO6TbJDPrpN51m2wyAmid4q vAZcB/VDPuDLSqWlwORTIxcTQDjQ1afVekK5UwbF5Upo6ouk35ucA4S1ptyUbr3aKRV6 R1nvnqgCGycfWHlMnRjjCh4qI7I+SrFR/OolREXoVz9WGxxwt3JPnIOtjOVvBjlfS3Qx kSKQ== 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:arc-authentication-results; bh=A4RrS/nBYFtnu9OX06w2k8Ng1+j7pr9UkHT2Zmxp+DE=; b=lkgbYpKdhw+k9CLRrg1QdW++ql3ZB3yRryoPo0hr+0Ypv3a961s4/ANNhW5BmX/pO+ UcUPpAo+2hp94IUiOIs8jz1YaC21hfclq6bSBOJyIopDuG0sr0QCpTW1r5LVoHSGKiFE JlCGzWzCt9wCl4roeER9j6XEDG2wA2d2NpA/zJge7G+e1gI1AkqtH7YFK4pBxAhItyNf P+IiBj6u7G7fXwjxYyhgeTvMIyJYaqptcunFwCwC0+d1a7IbZAGCpd3dLfD/25yaQjRs fElwCp7AMXu7jYR4tZ7zABX0O3xs4EZSe4rIPZc3+GKaSdTOmrBz9GoFv3vv0CMtB88W Rraw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z9-v6si6250775pfg.46.2018.08.30.00.00.07; Thu, 30 Aug 2018 00:00:41 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727575AbeH3K65 (ORCPT + 99 others); Thu, 30 Aug 2018 06:58:57 -0400 Received: from smtp2.macqel.be ([109.135.2.61]:56913 "EHLO smtp2.macqel.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727185AbeH3K64 (ORCPT ); Thu, 30 Aug 2018 06:58:56 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp2.macqel.be (Postfix) with ESMTP id 06A71130D3E; Thu, 30 Aug 2018 08:58:15 +0200 (CEST) X-Virus-Scanned: amavisd-new at macqel.be Received: from smtp2.macqel.be ([127.0.0.1]) by localhost (mail.macqel.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yZZ7S0MVJyTX; Thu, 30 Aug 2018 08:58:13 +0200 (CEST) Received: from frolo.macqel.be (frolo.macqel [10.1.40.73]) by smtp2.macqel.be (Postfix) with ESMTP id 5F81E130D3A; Thu, 30 Aug 2018 08:58:13 +0200 (CEST) Received: by frolo.macqel.be (Postfix, from userid 1000) id 3FCA8DF0078; Thu, 30 Aug 2018 08:58:13 +0200 (CEST) Date: Thu, 30 Aug 2018 08:58:13 +0200 From: Philippe De Muyter To: Laurent Pinchart Cc: Sakari Ailus , Hans Verkuil , Luca Ceresoli , linux-media@vger.kernel.org, Leon Luo , Mauro Carvalho Chehab , Sakari Ailus , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/7] media: imx274: don't hard-code the subdev name to DRIVER_NAME Message-ID: <20180830065813.GA18916@frolo.macqel> References: <20180824163525.12694-1-luca@lucaceresoli.net> <20180829112936.GA15244@frolo.macqel> <20180829113843.4v63cxf3clvbzbtd@valkosipuli.retiisi.org.uk> <1552922.PBQrL6RDxY@avalon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1552922.PBQrL6RDxY@avalon> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi. On Thu, Aug 30, 2018 at 12:23:23AM +0300, Laurent Pinchart wrote: > Hello, > > On Wednesday, 29 August 2018 14:38:43 EEST Sakari Ailus wrote: > > On Wed, Aug 29, 2018 at 01:29:36PM +0200, Philippe De Muyter wrote: > > > On Wed, Aug 29, 2018 at 02:07:21PM +0300, Sakari Ailus wrote: > > >> On Tue, Aug 28, 2018 at 06:02:55PM +0200, Philippe De Muyter wrote: > > [snip] > > > >>> Then we should probably also apply the following patch I submitted : > > >>> > > >>> "media: v4l2-common: v4l2_spi_subdev_init : generate unique name" > > >>> > > >>> https://patchwork.kernel.org/patch/10553035/ > > >>> > > >>> and perhaps > > >>> > > >>> "media: v4l2-common: simplify v4l2_i2c_subdev_init name generation" > > >>> > > >>> https://patchwork.kernel.org/patch/10553037/ > > >> > > >> The problem with this patch is that the existing naming scheme is very > > >> similar while the new one offers no tangible benefits apart from being > > >> in line with the rest of the kernel. That's still not a benefit for uAPI: > > >> changing the name is certain to break user space applications. > > > > > > I agree with you on the patch for v4l2_i2c_subdev_init (I wrote > > > 'perhaps'), but you don't say anything on the one about > > > v4l2_spi_subdev_init :), which fixes an actual bug. I have 2 identical > > > SPI-controlled sensors on the same board, and without my patch they get > > > the same subdev name. Of course, I could fix that in the sensor driver > > > itself, but that's not what we want, or do we ? > > > > Good point. I missed the naming of the SPI devices ignored any bus > > information there. I'm rather inclined towards taking the SPI patch. Hans, > > Mauro, Laurent; any opinion on that? > > I agree that the SPI patch makes sense, I think we should take it. Do I need to resend https://patchwork.kernel.org/patch/10553035/ "media: v4l2-common: v4l2_spi_subdev_init : generate unique name", adding Sakari's and Laurent's Acked-by ? or will that patch be taken automagically ? Philippe -- Philippe De Muyter +32 2 6101532 Macq SA rue de l'Aeronef 2 B-1140 Bruxelles