Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp76649imm; Wed, 29 Aug 2018 14:24:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZqrZs5hVaAhtAUicpwymRYGjDYU+yh47LJJF3vNkRWTB1LvzQwaGyr09h8Cb4gqzP+m0iX X-Received: by 2002:a65:4c0b:: with SMTP id u11-v6mr7012273pgq.451.1535577885336; Wed, 29 Aug 2018 14:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535577885; cv=none; d=google.com; s=arc-20160816; b=E1HkKE21sP3kl3eAsI8uxLncgSHjQ9dvGW0Y7BfhRPqAZ40H8IiTFgVc44VjYh789I GOT7zPfMyHywROMG2JC4geCF++Y1p4kjvHzylHys7thj5cBWZijQDkVchdfODyrMkPFf m2dXyJBAXgsf+p03eMOWC62ShKcjaKBCQ2vjfD5vE7xAzMsmkSVZ78+nrTyXaTFBjbcv rRfjSmPYFFZjv7sSpxXQrTupgn1ZEoE1wwzFEvW2HYVqlefKm618N3jyTEIMawT4fAbg A2nPI6W54F4RMOIT4pDF8qvU8rnVjbG7dMMIexwxmRN61L4/l6WgnZWKoPI/Z5wfeiuT H6wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=aK1W8Am6L0g9+XEaUJIM+CxfDNGbTv5i1qgpDpbzRXk=; b=gTuFV/aOgLKIxgyk79eYNf5PnxAFU0+WC1vGlgpve9V48jhYawVOZwhql/Sn5F4zmM u5rBLUQ2EWHC8cSZ1Uil8RpTHakrsdeS8QCWv6SMCTsh7IuQAhPmeAfKy6qxCG9jtt6R fy09xDl7bmhlrrmBRw5RDDovSMgPwz1YGfBH8Y/hw1xLjTiopVDNx03r6GNezt7CFlNC 4nlbb1z9Vg1/nQFBDw47vcLzLOmpNdI8g9it6g5QxRVqkCgbm11Ro5ZcbQT50DQJSL1E yD6eF7qeHaidd3w8hb6Vb7Ocg9c2j6yTvV+vg2wxvwEblrKx0HFatcCQ55JyZkrYT7lW yN+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="hZf1Iy/l"; 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 d39-v6si4724891pla.41.2018.08.29.14.24.30; Wed, 29 Aug 2018 14:24:45 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="hZf1Iy/l"; 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 S1728908AbeH3BWH (ORCPT + 99 others); Wed, 29 Aug 2018 21:22:07 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:49732 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727609AbeH3BWG (ORCPT ); Wed, 29 Aug 2018 21:22:06 -0400 Received: from avalon.localnet (rec54-5-78-202-243-150.fbx.proxad.net [78.202.243.150]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8E6F5B92; Wed, 29 Aug 2018 23:23:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1535577800; bh=5ljkoa/Q4UTPzTLgLpHS681lGcb4NUEeXTvbO78QJAQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hZf1Iy/ltSi9+wTMlthCVMMmXObDybjMYkgkjTA+NtR53WKjU3n1GF5RwZQOAvh7S QtWuKzY4LfxhWKiSdu7ZjGRro1jt3HZyZDKNFX0nxt3qwjG/PQIelcsG9yBRuqcPEx qkoKfDzAJX4M98QB3xFuvPmpUq5rD4VOe9ZpHJjc= From: Laurent Pinchart To: Sakari Ailus Cc: Philippe De Muyter , 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 Date: Thu, 30 Aug 2018 00:23:23 +0300 Message-ID: <1552922.PBQrL6RDxY@avalon> Organization: Ideas on Board Oy In-Reply-To: <20180829113843.4v63cxf3clvbzbtd@valkosipuli.retiisi.org.uk> References: <20180824163525.12694-1-luca@lucaceresoli.net> <20180829112936.GA15244@frolo.macqel> <20180829113843.4v63cxf3clvbzbtd@valkosipuli.retiisi.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Regards, Laurent Pinchart