Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp433874imm; Thu, 30 Aug 2018 02:35:02 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb5tCLSS2Pp2JYHOdWRnqQuJ93B6doIGMAOy+mgJOtkjDATnMFhHcK/4tyvPnAUWpouuxkv X-Received: by 2002:a17:902:543:: with SMTP id 61-v6mr9601896plf.126.1535621702078; Thu, 30 Aug 2018 02:35:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535621702; cv=none; d=google.com; s=arc-20160816; b=Ri1knmhxktKi9/iBFQ9gjd5xnxAWSiEPDMvOd5a/25SyjtqqB4OKVEq3HD3Wg/rxB2 qlM1hBXgXSd1wia61PE3VYfbbOTTKlXSvWla9gpeCtLtDxn4oRRRynmqehBuM/gBKEj0 hmIJCqychOpLWu67PDKEJD7XPuxG8PJuRz5VKlSpAjj8zYGApqip8xLBm0N+lEGPmKGh RTyEeFXfEOlqeO7kMWyUB5e0xWnKb0hdjU/2v/SVMLHy+2c9Ec2lpddemDpoemPdRQMG zyQKxqooR2Z9AwOVCwQkLrVDIadb02m0e9NPKSn8Fg0A/cWaHubyt/+ziy2X9gDazWYK bHmQ== 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=lb8hsgoWYwZyhLfucADGi/IaF4QFAQ7GZMgGJ4KZjoA=; b=A9aoz94vW7lp32EEUt4NaxDeSrDE8OIdNzK7ZYhitl8OBQcyrKdW98ZDcASMHzRoZK v4HwlsnieESMNY19EFGVu3tZita++pu33QbQAuzdP341A9fOq7NkwyVt9qVIi1lv1tf7 JVmhQMwuAziAuN6j7fErmkeVaFSSS3q5OtUQEDTtoisP08efaqI1nx3ezwGot+t2tp53 GosBlQRsWyl2gLbaUjf7pmVc3nV3iJwue9GnLOjAmr6QDj+eiOgilKOV2DqHwpqraAdQ 6/O79yohy5/7hAThDpKnEKhBUeLtn6Is12ce5c/GraSewQlxFb/0ouaTgc2ueMPIRRcx TwjQ== 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=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y74-v6si4629184pfg.124.2018.08.30.02.34.46; Thu, 30 Aug 2018 02:35:02 -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=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728149AbeH3Ne5 (ORCPT + 99 others); Thu, 30 Aug 2018 09:34:57 -0400 Received: from nblzone-211-213.nblnetworks.fi ([83.145.211.213]:59980 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727782AbeH3Ne4 (ORCPT ); Thu, 30 Aug 2018 09:34:56 -0400 Received: from valkosipuli.localdomain (valkosipuli.retiisi.org.uk [IPv6:2001:1bc8:1a6:d3d5::80:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hillosipuli.retiisi.org.uk (Postfix) with ESMTPS id 2F640634C7D; Thu, 30 Aug 2018 12:33:40 +0300 (EEST) Received: from sakke by valkosipuli.localdomain with local (Exim 4.89) (envelope-from ) id 1fvJKd-0000vQ-T5; Thu, 30 Aug 2018 12:33:39 +0300 Date: Thu, 30 Aug 2018 12:33:39 +0300 From: Sakari Ailus To: Philippe De Muyter Cc: Laurent Pinchart , 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: <20180830093339.4kquhqdi6knrd2kh@valkosipuli.retiisi.org.uk> References: <20180824163525.12694-1-luca@lucaceresoli.net> <20180829112936.GA15244@frolo.macqel> <20180829113843.4v63cxf3clvbzbtd@valkosipuli.retiisi.org.uk> <1552922.PBQrL6RDxY@avalon> <20180830065813.GA18916@frolo.macqel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180830065813.GA18916@frolo.macqel> 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 On Thu, Aug 30, 2018 at 08:58:13AM +0200, Philippe De Muyter wrote: > 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 ? No need to. -- Sakari Ailus e-mail: sakari.ailus@iki.fi