Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp636334imm; Wed, 4 Jul 2018 03:25:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpficM10HcVMcDPn4393lQhF/3QG7wmtP/WMwimx0rBKPQqP4AuymqpNZwemWF/nBYpffKpO X-Received: by 2002:a17:902:48c8:: with SMTP id u8-v6mr1547349plh.152.1530699907602; Wed, 04 Jul 2018 03:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530699907; cv=none; d=google.com; s=arc-20160816; b=WrG57PSBD9Ws1cUjmcyVd2LJGrNKkAqwYGvZgCG8wa1v33+AEVxBtF9n3MX5WJ7Qrw sS4WKK0YphPP/cR92cz016DERwPXcTHK6cC611rmqFC1LzBM64EYxG0TVW7rrGgyHk78 gUBlHdj2mCxNz+ruCmCZVYy5K1RR81NfqKCZn4MeXckbPYtFHJcO3D5+TL+6AMvbsIFP HhgZ3awGdqFeyAKIEtkISL7lbRFIKSaV3bbeqWRKYrKHUhaA7NErpOE/ZvLxLxrraW/l KzQQIr6v8sbmhREQtmK4mkEojJwI1r6qeUyvL2lxRzxIxuL/yuVVCdkX95UmVA//NTmD 42vA== 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=VQXQS+yyhmQSgZgLhlQ3uKR5ZzWrXmRF7yCFipTMdiA=; b=b70xEWulzYNCGUdzVws8XjQHKhyfsrqnHet+rZGhJfQcJO2g+/cg/y+6grWb0Ylyj/ x9pF8cpbqug+/+bnb3QJbtSch6trE+OLxRJFGVKNvCtRVYqEZxDa03kWzLvVfed/t6rL KyliRqYg00tnMAzfenUdWqhzFIpXqgXA2JZEHFrp7eGJd/DmJcXFk0Ut16noUd83bj4Z +/5Bsp/Vxodm5M8WlrqHAc/k3P6cbg5SRv5cXkT484UAjPZ4dO1CVasGJH+MJ7FZnnSo tjuAldjSa57bKp9P05ftvzJhwtiyFTEyApBOqJquqWz51r2qcBMPQBy5HSUp97blpc6Y Beyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Nc3ZRlWw; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u19-v6si2909423pgb.629.2018.07.04.03.24.53; Wed, 04 Jul 2018 03:25:07 -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 header.i=@gmail.com header.s=20161025 header.b=Nc3ZRlWw; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933904AbeGDKYS (ORCPT + 99 others); Wed, 4 Jul 2018 06:24:18 -0400 Received: from mail-ua0-f196.google.com ([209.85.217.196]:45024 "EHLO mail-ua0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753262AbeGDKYQ (ORCPT ); Wed, 4 Jul 2018 06:24:16 -0400 Received: by mail-ua0-f196.google.com with SMTP id v15-v6so3125250ual.11; Wed, 04 Jul 2018 03:24:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=VQXQS+yyhmQSgZgLhlQ3uKR5ZzWrXmRF7yCFipTMdiA=; b=Nc3ZRlWwDNSNCngCdWthiJGUngE7BKuiZzfs4CfKpzGNCYBkOIxVZvt//Q95ch3w7O nLHUPTx+LNWYDGvhIIkEUOs1TmWyDQ3tJcrthOLMTD5zkwIT8JddvTP8okGWet2cMmcz LoObBiTMDFlOgfWuN2npA8FMBQzx3ceiw3/0+Z3D9XoSTF8yHYDlZTg+WK9J5nJGeRyD DHP4OYlo15HbvVf1v96C9jEfC/ocV4odN0hc88Y+MOSVq3UcJ5x29ERR348JFDlBs43O eY2UxzJmTzTHIDOFBezf6qEsq5ZZ8EHv+GsU0ndbX3CCfnPA90Pxss6bsWjatB+pFHOn s8JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=VQXQS+yyhmQSgZgLhlQ3uKR5ZzWrXmRF7yCFipTMdiA=; b=Q5SZOmBeez912IJwwsD+aYIr7GmYRE/kn0xw729QPjyB/I8dKQzvuHdTD+hOIYVm7H uTOKVu5869bXEUTBf38HJuc8UCylT7yQ+pnfS1KgjqgZSPKEQc9q6Y+m7DoyD9GJRYqt EdZxyovX1wFHT+xF4YwYsPpCdL88mZB/CxWpPL7eaWB6GxODaZEsdlBH+efbTJ2TLElt YAaHPzVGBvc2ImzsS9YHpIgji47rlejKSguBR68nseNlliJn04P/adAR0eCynqhSXyTp AhXyzaRCjN++f4SzQOqHFgUXfV2OYX0yz6qTjGuzXIv2yvhxsuSRfMaooJX98x0te+ms VRLw== X-Gm-Message-State: APt69E2a4NCk8qeO8wohW+eyQdupcVS4rEZRVzWjD7ZXDJrKeoYOLAu8 mSa+o3IqcMNC3YiR936uOypNocG3TLvOyEVnfac= X-Received: by 2002:a9f:2187:: with SMTP id 7-v6mr831391uac.49.1530699855487; Wed, 04 Jul 2018 03:24:15 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:2149:0:0:0:0:0 with HTTP; Wed, 4 Jul 2018 03:24:14 -0700 (PDT) In-Reply-To: References: <1530609760-8919-1-git-send-email-srinath.mannam@broadcom.com> <8518137d-c859-657e-844f-51720f6ef8dd@arm.com> From: Andy Shevchenko Date: Wed, 4 Jul 2018 13:24:14 +0300 Message-ID: Subject: Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device To: 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 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. > Allocating an ACPI id for an already existing DT driver is redundant, isn't > it? It is not. -- With Best Regards, Andy Shevchenko