Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp412204pxu; Tue, 1 Dec 2020 14:38:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrP7KmLv2CGU1D6Ubp3CjWBQbA6mF3tDavYrjqPsBofz4kAk6gi5+OO0ywxVk2Sd8nTvQY X-Received: by 2002:a05:6402:88c:: with SMTP id e12mr5410347edy.88.1606862327333; Tue, 01 Dec 2020 14:38:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606862327; cv=none; d=google.com; s=arc-20160816; b=NzRc1gJ2ftbOSyyPPb9SDVsCxrFQl+2Gi8MNFMf5Kx+8S8sZp7QioD8nutrSW/n6JC cf8wbzshzISEoFSmwsNJfPN6ZjMODXzFwew0u8Iv3qg4SjkTOb4JRDLp06ZM/wN/HW3/ rRNzkH11BhuZrpz6Tu9FBRDlkUhZ7CIA0JwL7YZO/SrHNisU03XtGh/lm+lAKeF9kdlc zmC84aiRzSgOJYcGLcO/Q1Uy+S+aJ8gyApmF7ejUtgnhJQgaxSabloILJDsLf8FY15mP YFNNBzbk63oxVhwB54ZyWVufi9afW5tHwNjYimMLB3gfaGgA1jKgVuMmLPBHRqeEuBIV 5qZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=+2x2fzmflytXII2H+nm/OAJBq3uxhhFx1u5IoRquj2U=; b=OoPNR9MC7f0Wb43VhulLjoWsuX4SpRIzDAMXU4I61NMRr3JZ3YX1Gi9PuM5A3D1GD4 U2krbw4oBS6MeY5b+FBDQAnqVQPtSGUyx3p8YFS+WJtYlSBkgwKGofWNN2KdG99oEoDf F1Pe5Rjzc82dlQHSAmz/aVnLf4T70NgipHOD5SvBwUh7K5Iet3+A02bAus8XtyHHnmc6 TvFhcbIwSdBdsCKlPPLJFPPKQzWQZCNnBzbmuZLorS1Bs3GjwSsFZfrSInNgD6509Sc7 TBa6Fi26KLRgrbFpLnoIxlNY3n/8KDTLEdqHzlC/iAG+F227wzJRLJ6oyACEdQHOvm7d AjqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Oq6aB190; 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 w17si812299ejk.9.2020.12.01.14.38.24; Tue, 01 Dec 2020 14:38:47 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Oq6aB190; 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 S2392270AbgLAShI (ORCPT + 99 others); Tue, 1 Dec 2020 13:37:08 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:45160 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392246AbgLAShH (ORCPT ); Tue, 1 Dec 2020 13:37:07 -0500 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4AE09DBD; Tue, 1 Dec 2020 19:36:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1606847784; bh=k5QyTVWA4Jc+ywHyi2x/6LgWGDBVIjOrvUWrw4fdzDE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Oq6aB190ZbolqktbLd2lQtY1IEs2kNdnSPqvEx6/o+BFEPDJGW3O1QZBl0nWS+FOm 3nkHIY29uUf9Nyew9WsjI9dNwpMWKIIkyYDb0FKoH1saZb62605kjEryMSE8nnO5SM 5/NpWYRHvvnurHE4YP70bNNFGmcQ7oTO0FNzPXD0= Date: Tue, 1 Dec 2020 20:36:16 +0200 From: Laurent Pinchart To: Andy Shevchenko Cc: Dan Scally , Jean-Michel Hautbois , 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, 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 Subject: Re: [PATCH 18/18] ipu3: Add driver for dummy INT3472 ACPI device Message-ID: <20201201183616.GD3085@pendragon.ideasonboard.com> References: <20201130133129.1024662-1-djrscally@gmail.com> <20201130133129.1024662-19-djrscally@gmail.com> <20201201183139.GH4077@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201201183139.GH4077@smile.fi.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On Tue, Dec 01, 2020 at 08:31:39PM +0200, Andy Shevchenko wrote: > On Mon, Nov 30, 2020 at 11:20:55PM +0000, Dan Scally wrote: > > On 30/11/2020 16:17, Jean-Michel Hautbois wrote: > > ... > > > but the ACPI table doesn't define an I2CSerialBusV2 for it. Instead it's > > rolled under the sensor's entry, there's a second entry in _CRS for the > > sensor that matches the address of the new device: > > > > > > Method (_CRS, 0, NotSerialized) // _CRS: Current Resource Settings > > { > > Name (SBUF, ResourceTemplate () > > { > > I2cSerialBusV2 (0x0036, ControllerInitiated, 0x00061A80, > > AddressingMode7Bit, "\\_SB.PCI0.I2C2", > > 0x00, ResourceConsumer, , Exclusive, > > ) > > I2cSerialBusV2 (0x000C, ControllerInitiated, 0x00061A80, > > AddressingMode7Bit, "\\_SB.PCI0.I2C2", > > 0x00, ResourceConsumer, , Exclusive, > > ) > > }) > > Return (SBUF) /* \_SB_.PCI0.CAM0._CRS.SBUF */ > > } > > > > So that's another thing we need to work on. At the moment it doesn't > > exist as far as the kernel is concerned. > > Maybe something along i2c-multi-instantiate can help here (maybe not). It's two different devices really. That's also one of the "annoyances" related to this platform. The INT* HID for the camera sensor actually refers to a camera module, with VCM, EEPROM, ... On Chrome OS devices, the same HID refers to the camera sensor only. *sigh* :-( > P.S. Dan, can you drop unrelated text when replying? I find a full quote actually useful, as it saves me from having to dig up original e-mails to read missing parts :-) It's a matter of preference I suppose. -- Regards, Laurent Pinchart