Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp640099imm; Wed, 4 Jul 2018 03:29:25 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdSfr9DdnLZvCtcEWuJ3g95GqZv0zh9SOAeSTTd9xTlPBDaO11j2/uA9IkMdRQWfr1MdnZh X-Received: by 2002:a17:902:7295:: with SMTP id d21-v6mr1508318pll.221.1530700165175; Wed, 04 Jul 2018 03:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530700165; cv=none; d=google.com; s=arc-20160816; b=EiXAyYmbpjffd2HflP0s5qQp82Tk0DKItB/nzPtWJ9EOGourYT7/YelwOJw5ZPG4LQ IpPVAYC/I7tnBrBKDbuKlzQpADgt7ytG0mjL4Nz8lXfnQWBRRacmZBuGlWX2h63Lqd8Q XBczgkwTQK9+UnVhvMFx7bBxbuQGcnD49NazM1r6A9N0JbubJruAplEwe/tanUgNIRs7 Bu7P/DQRNwpVlhWuFUegJfXjeiPaPOpdc3W4RnM5+r9mS78JlXPHd8Z/fnP471xYoWK1 QbZI1jRFH+c2iJAxtGQKX/OR2Bkm0HJl8vaRWwRspcarokO/4lwChhg2SY19MX+0PRII /zRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=GgnLvvZQGRT52S3podpSwchRYSD56gHdAX5KhpKT2Hg=; b=H5TltU6XXQuy4jemM5cTt8zPi4qlBIQY0u8N+seM2KzafHLX1SR9nE2ww8u+Ia90+3 xPb+AM8rcHLBBsMrp3+gNasBnzHbARslD4a9tDgKIzZIbwyfeXTx+lMwh6YWcVHK96Bg L8kuMEWz1oKO7lxJ6YMAZp2/l51PLq0cN8cLTMXq5fgPJWPg7XZ6+JnSDG9w3iqWCMbJ MvWwgcdGwkENoa00bl1MpluEtV1POjVIF6ndyEbNz54jroDSDcpUWb/3tVx4oUDYGT9S NorKvW854xIfTk43N+vny0/AQVuWE+PLFD3nUTe/fwMS2Su0wAFkwEoCyiB/gipiVgY1 UkOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=pvWTh8bw; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 97-v6si3298991pla.155.2018.07.04.03.29.09; Wed, 04 Jul 2018 03:29:25 -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=fail header.i=@gmail.com header.s=20161025 header.b=pvWTh8bw; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933628AbeGDK2a (ORCPT + 99 others); Wed, 4 Jul 2018 06:28:30 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:35351 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933113AbeGDK22 (ORCPT ); Wed, 4 Jul 2018 06:28:28 -0400 Received: by mail-oi0-f66.google.com with SMTP id i12-v6so9806371oik.2; Wed, 04 Jul 2018 03:28:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=GgnLvvZQGRT52S3podpSwchRYSD56gHdAX5KhpKT2Hg=; b=pvWTh8bwxbpDdJKkQRiW3C+bNO6ZuPFu6Nuq2pz+p/U9qjerRWeRWXRSzW5VXpmBfh W/PlauoN6pnaURpl6HNyakz8pEELjPynecOLViXQpK93dLzjw+Le61EzBVc6UuVcovC7 ttYG/5bd4FX5RSxBhwQGNJHUZrJNX0p6AMB+Mmgg9/8706xm9FM16ZCr9P+izbu+ZO+d N8IXqLkD/jJ8sMYPxjHW2Hnz+/+6aYz3sQr0hU19d0NiMsofAUR4V3b03rq9tTkpwUEF yRIgASax/pZvXr/v05hiD5xrNAxT3j4iwnqlUEvxuVSHrUQZAR2JMpS9vC4eyp9jLWb6 VNaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=GgnLvvZQGRT52S3podpSwchRYSD56gHdAX5KhpKT2Hg=; b=a9F0bGRHdXjqtBIeLCr/teFEt7edKOtwt/B/cOWDsug5gWiOHe1Q2e8DnC4usuafa4 HDCYkb1R+xQzO1j8O4sYlltq3S5Qm4JO++lcNitZHy0AAFaxJIDJaYq9oDrCT708KWfS LT+Fn8PF537Dc9DCcEI4syD0Ae6oKEZIg5PUKI0NDBNuD5IRtgkP67b+plXQJQ0vtpst vauvH/QC27RXyD5XwKHe/hAd1bRCAGc2MO6ILkUIPgusRf6fF7+aDf+AHvTJHE1CaGng GWVsOJemmlQ3qxjybzKhMdRA2H1oZsq298HhHGoRgc43om6mnGB2nIPEZcHWNjVRgDZU hp0A== X-Gm-Message-State: APt69E3Hq9hX6PUXhCjf6zQ/WAUnnZf/qs5vXtvg6uNVuHr5V9nanMJe KhUaMh4pk3g2HE27WCtCN3a8L00QbWSOzCf/W8g= X-Received: by 2002:aca:ad4f:: with SMTP id w76-v6mr1585420oie.233.1530700107790; Wed, 04 Jul 2018 03:28:27 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:63d2:0:0:0:0:0 with HTTP; Wed, 4 Jul 2018 03:28:27 -0700 (PDT) In-Reply-To: References: <1530609760-8919-1-git-send-email-srinath.mannam@broadcom.com> <8518137d-c859-657e-844f-51720f6ef8dd@arm.com> From: "Rafael J. Wysocki" Date: Wed, 4 Jul 2018 12:28:27 +0200 X-Google-Sender-Auth: yeBg6glKyVAKoKMFTPqD3KlgKZs Message-ID: Subject: Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device To: Andy Shevchenko , Nikolaus Voss Cc: Sudeep Holla , Srinath Mannam , "Voss, Dr. Nikolaus" , "Rafael J. Wysocki" , Len Brown , Ray Jui , Vladimir Olovyannikov , Vikram Prakash , Scott Branden , ACPI Devel Maling List , Linux Kernel Mailing List , nv@vosn.de Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 4, 2018 at 12:24 PM, Andy Shevchenko wrote: > On Wed, Jul 4, 2018 at 1:17 PM, Nikolaus Voss > wrote: >> On Wed, 4 Jul 2018, Sudeep Holla wrote: >>> On 04/07/18 10:32, Andy Shevchenko wrote: >>>> On Wed, Jul 4, 2018 at 6:37 AM, Srinath Mannam >>>> wrote: > >>> +1 on NACK for this and anything else that abuse PRP0001 as a short cut >>> approach. >> This is no abuse but exactly what PRP0001 is meant for. The basic idea of >> PRP0001 is to reuse DT "compatible" strings in ACPI namespace, see >> Documentation/acpi/enumeration.txt. Reusing also means getting access to the >> of_device_id. > > The idea was for almost DIY and / or manufacturer to develop a > prototype without modifying match code and faking ACPI IDs. > That's why the target of PRP0001 is almost sensors connected to I2C and SPI. > > That's why I agreed on your patch to help with this. But! The proper > solution for the devices (device manufacturer) is to allocate an ACPI > ID and provide a corresponding table to the driver. > > This is my understanding of that exercise. Rafael can correct me. You are right. >> Allocating an ACPI id for an already existing DT driver is redundant, isn't >> it? > > It is not. Again, right. Thanks, Rafael