From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23AD5C64E7B for ; Tue, 1 Dec 2020 19:22:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C883921741 for ; Tue, 1 Dec 2020 19:22:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392360AbgLATW3 (ORCPT ); Tue, 1 Dec 2020 14:22:29 -0500 Received: from mga06.intel.com ([134.134.136.31]:54492 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731231AbgLATW2 (ORCPT ); Tue, 1 Dec 2020 14:22:28 -0500 IronPort-SDR: Byd/Fp3LTByDdL50My0qVkuqFrwAVGd1p6IEq/UR6GRFbOwsP/zlGWAk0wNJaRrhaEIf0BJmiV 5TCHSADf4XQA== X-IronPort-AV: E=McAfee;i="6000,8403,9822"; a="234497038" X-IronPort-AV: E=Sophos;i="5.78,385,1599548400"; d="scan'208";a="234497038" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2020 11:20:44 -0800 IronPort-SDR: Zm8Kl+jzbuItT6F1q2rxHt8FGqhQtFcHiy+6Dl5YFGqOzkgxZv4m+LQ3jzf0IZHI4ipPYRU4p5 WHQ30Ls9dIhA== X-IronPort-AV: E=Sophos;i="5.78,385,1599548400"; d="scan'208";a="372879285" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2020 11:20:37 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kkBDV-00BLWG-Ar; Tue, 01 Dec 2020 21:21:37 +0200 Date: Tue, 1 Dec 2020 21:21:37 +0200 From: Andy Shevchenko To: Laurent Pinchart Cc: Dan Scally , 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, Hans de Goede Subject: Re: [PATCH 18/18] ipu3: Add driver for dummy INT3472 ACPI device Message-ID: <20201201192137.GR4077@smile.fi.intel.com> References: <20201130133129.1024662-1-djrscally@gmail.com> <20201130133129.1024662-19-djrscally@gmail.com> <20201130200719.GB4077@smile.fi.intel.com> <8a1b0f5b-1289-256b-b25d-cf8af43bdc84@gmail.com> <20201201185417.GL4077@smile.fi.intel.com> <20201201185548.GV4569@pendragon.ideasonboard.com> <20201201190523.GO4077@smile.fi.intel.com> <20201201190638.GZ4569@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201201190638.GZ4569@pendragon.ideasonboard.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 01, 2020 at 09:06:38PM +0200, Laurent Pinchart wrote: > On Tue, Dec 01, 2020 at 09:05:23PM +0200, Andy Shevchenko wrote: > > On Tue, Dec 01, 2020 at 08:55:48PM +0200, Laurent Pinchart wrote: > > > On Tue, Dec 01, 2020 at 08:54:17PM +0200, Andy Shevchenko wrote: > > > > On Tue, Dec 01, 2020 at 08:30:03AM +0000, Dan Scally wrote: > > > > > On 30/11/2020 20:07, Andy Shevchenko wrote: > > > > ... > > > > > > > >> +static struct int3472_sensor_regulator_map int3472_sensor_regulator_maps[] = { > > > > > >> + { "GNDF140809R", 2, miix_510_ov2680 }, > > > > > >> + { "YHCU", 2, surface_go2_ov5693 }, > > > > > >> + { "MSHW0070", 2, surface_book_ov5693 }, > > > > > >> +}; > > > > > > > > > > > > Hmm... Usual way is to use DMI for that. I'm not sure above will not give us > > > > > > false positive matches. > > > > > > > > > > I considered DMI too, no problem to switch to that if it's a better choice. > > > > > > > > I prefer DMI as it's a standard way to describe platform quirks in x86 world. > > > > > > Do you think the Windows driver would use DMI ? > > > > Linux is using DMI for quirks. > > > > > That seems quite > > > unlikely to me, given how they would have to release a new driver binary > > > for every machine. I'm pretty sure that a different mechanism is used to > > > identify camera integration, and I think it would make sense to follow > > > the same approach. That would allow us to avoid large tables of DMI > > > identifiers that would need to be constently updated, potentially making > > > user experience better. > > > > All Surface family can be matched in a way as Apple machines [1]. > > > > [1]: https://lkml.org/lkml/2020/4/15/1198 > > But not all Surface machines necessarily have the same camera > architecture. My point is that there seems to be identifiers reported in > ACPI for the exact purpose of identifying the camera architecture. If we > used DMI instead, we would have to handle each machine individually. With help of DMI we may narrow down the search. But again, we are talking about uncertainity. It may be your way (a lot of platforms that have different settings), or mine (only a few with more or less standard sets of settings). DMI is simply standard in Linux (people usually easier can grep for quirks for a specific platform). I would rather ask Hans' opinion since he has quite an expertise with DMI for good and bad. -- With Best Regards, Andy Shevchenko