Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4231194pxu; Mon, 30 Nov 2020 22:49:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuU7G7JxbC1gqxI2oLADTVTtJLA98gwb9PG10fLXkx7g5jHvD55QzkC6r3n3xjVlV/OMY6 X-Received: by 2002:a17:906:a418:: with SMTP id l24mr1594715ejz.360.1606805364334; Mon, 30 Nov 2020 22:49:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606805364; cv=none; d=google.com; s=arc-20160816; b=bKZLV7Xxv9EILKUuOI3gvOz3JYejzgeW7z0VP+rwbBdRgGf+PcwJSKhIpo/5mtU4+V e7pKwSESmQW/uXy6KnUC29DZlhtFzwodfKJ9ex9BTPztfDaUvIE2rYQTQ3JThZfAzpZr clMm+GYD1hhrCH8ClrFGeTQkP2tha2ktloPaq7y9Q9b+Ix7jTelb5HnW0CUg6JrV4cZk 6G+5GfgmtEql48wYUYS8tIc+bTVz6iVf12+BJuE5AybucGIYbbfReBEpw5T2KLZoQlkL OT8/Gy4MdahHACAZ85mZnYkxv/fHOqx7Q5dd3yGhRzLnXmfYr3hMC6TDZ9VEySavK7Vu +pEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=uCJyguR32f3/J26YU7fNrfuD5SytzBYHNf3SA0wssC0=; b=kOsNNHP4e1sPTi07onFtVrQpsi0SzNNiG3cRK3lJa40aZZhLu62k/5u9RbDSpS4Zcx Y7HjgwuuWGlTOydepbQywGI1WeQ4bsjO3HqLJ0hLHrNybwefERPoD2R3jTdJp+HAjXdo AfNLPSL/usrEcODCIbAflrPgGyxm533bYpHD/Ba8M4CHPFL8o2MwZFU1S2OAhLNQaBod y5kbnnxX6GWELImSD62eWFV3q+qqhmuJDZNUzInTD8YffRoyYjnffCzp+AlMlt2OYHuA /YgUWaLfjVfL2bthx3ontjWnpKyDo/1uQi06lBYmC3ZsPx7lMrQNeej53NzrNrqPODcl yj5A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id df12si559324edb.5.2020.11.30.22.49.01; Mon, 30 Nov 2020 22:49:24 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727154AbgLAGqw (ORCPT + 99 others); Tue, 1 Dec 2020 01:46:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbgLAGqu (ORCPT ); Tue, 1 Dec 2020 01:46:50 -0500 Received: from hillosipuli.retiisi.eu (unknown [IPv6:2a01:4f9:c010:4572::e8:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D82CC0613D3 for ; Mon, 30 Nov 2020 22:46:10 -0800 (PST) Received: from valkosipuli.localdomain (unknown [IPv6:fd35:1bc8:1a6:d3d5::80:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hillosipuli.retiisi.eu (Postfix) with ESMTPS id 3B65B634C24; Tue, 1 Dec 2020 08:44:21 +0200 (EET) Received: from sailus by valkosipuli.localdomain with local (Exim 4.92) (envelope-from ) id 1kjzOf-0002lH-Hu; Tue, 01 Dec 2020 08:44:21 +0200 Date: Tue, 1 Dec 2020 08:44:21 +0200 From: Sakari Ailus To: Dan Scally Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-media@vger.kernel.org, devel@acpica.org, rjw@rjwysocki.net, lenb@kernel.org, gregkh@linuxfoundation.org, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com, linus.walleij@linaro.org, bgolaszewski@baylibre.com, wsa@kernel.org, yong.zhi@intel.com, sakari.ailus@linux.intel.com, bingbu.cao@intel.com, tian.shu.qiu@intel.com, mchehab@kernel.org, robert.moore@intel.com, erik.kaneda@intel.com, pmladek@suse.com, rostedt@goodmis.org, sergey.senozhatsky@gmail.com, linux@rasmusvillemoes.dk, kieran.bingham+renesas@ideasonboard.com, jacopo+renesas@jmondi.org, laurent.pinchart+renesas@ideasonboard.com, jorhand@linux.microsoft.com, kitakar@gmail.com, heikki.krogerus@linux.intel.com, Laurent Pinchart Subject: Re: [PATCH 18/18] ipu3: Add driver for dummy INT3472 ACPI device Message-ID: <20201201064421.GR4351@valkosipuli.retiisi.org.uk> References: <20201130133129.1024662-1-djrscally@gmail.com> <20201130133129.1024662-19-djrscally@gmail.com> <20201130205203.GQ4351@valkosipuli.retiisi.org.uk> <3e8494a0-a2c0-59e7-46bb-9635c3c239dd@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3e8494a0-a2c0-59e7-46bb-9635c3c239dd@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dan, On Mon, Nov 30, 2020 at 11:06:03PM +0000, Dan Scally wrote: > Hi Sakari > > On 30/11/2020 20:52, Sakari Ailus wrote: > >> +static const struct acpi_device_id int3472_device_id[] = { > >> + { "INT3472", 0 }, > > The INT3472 _HID is really allocated for the tps68470 PMIC chip. It may not > > be used by other drivers; people will want to build kernels where both of > > these ACPI table layouts are functional. > > > > Instead, I propose, that you add this as an option to the tps68470 driver > > that figures out whether the ACPI device for the tps68470 device actually > > describes something else, in a similar fashion you do with the cio2-bridge > > driver. I think it may need a separate Kconfig option albeit this and > > cio2-bridge cannot be used separately. > > It actually occurs to me that that may not work (I know I called that > out as an option we considered, but that was a while ago actually). The > reason I wasn't worried about the existing tps68470 driver binding to > these devices is that it's an i2c driver, and these dummy devices don't > have an I2cSerialBusV2, so no I2C device is created by them the kernel. > > > Won't that mean the tps68470 driver won't ever be probed for these devices? Oops. I missed this indeed was not an I?C driver. So please ignore the comment. So I guess this wouldn't be an actual problem. I'd still like to test this on a system with tps68470, as the rest of the set. -- Kind regards, Sakari Ailus