Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp659999imm; Wed, 4 Jul 2018 03:52:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd5YnRbBYlPZ2IBLt4D4tHgY0O43gxfwJqg2pGQFxjki4qw+n3yo2TSLnxa18Uk7cKmHbL+ X-Received: by 2002:a63:b74a:: with SMTP id w10-v6mr1435888pgt.266.1530701524821; Wed, 04 Jul 2018 03:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530701524; cv=none; d=google.com; s=arc-20160816; b=s1QeEEhvJljt4kinUw2Xao4LJjg+lqUvysl+PK58EYGUIAMYoQgE+xpfIYUJinli8l J/W/QpDX+NlboRoNEyhEEjyAjZK6ydFbE1sh4FaVCNTiZRHwL6b6xJ3laSm3J8q433LO xzH+nMGaRlEIkR4q5LBmO6Q23LgQwTFMcHJFAm86vUfqcUiUAv/3qex61sXO82hf5ATI iBZ9q6dY+ngsyaFsMjzTGXq42/kaGkDpEKyCuPCc5u/QdLaYgoaykKaEKRjg/HvM9uBD xvWIRc8qFa95V5NohUQTwxkfbh1KKjsWOw4wRsV02Z55JaXZaP3lCPOM9okUw91WyNYm khYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=wfy1qxmkmPZ46Y6xxGNKG0wyx3iP1JJot+EweEKVQDw=; b=ItQyoPx1CEt9ckWTrLADTqo0OaLgsd83cEoVimhSo7pvL0CNjxUzTYVM74/nth0Wyu gbdeqSQTNSgGRBqqcYifEQsnhpxqRqYyGaJkS/HYsvMWyOShC9HXodr9MS/ume7Hzngs 9zzuM8j/2ie/5cGBYMlIOH9pxjrLoyKroadBJZC4Jvq0kMM+T8WYY06M/4DEmvIGedCH unhjiqDVzNm0NUx5xfh5krOBbaXbiOUXl7BNEw98/AsjetgzJlbfvNF1yHExb0qAQKlX dy6JtRFeDhcAzA4XRdr+8GmGUxkzQ2p/UBSe4IuhYxZANhzpMOF15b5cSbcbH7iVascX 5cMg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i14-v6si3419000pfj.190.2018.07.04.03.51.50; Wed, 04 Jul 2018 03:52:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933465AbeGDKuW (ORCPT + 99 others); Wed, 4 Jul 2018 06:50:22 -0400 Received: from mail.steuer-voss.de ([85.183.69.95]:42934 "EHLO mail.steuer-voss.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932594AbeGDKuU (ORCPT ); Wed, 4 Jul 2018 06:50:20 -0400 X-Virus-Scanned: Debian amavisd-new at mail.steuer-voss.de Received: by mail.steuer-voss.de (Postfix, from userid 1000) id CEF4041C99; Wed, 4 Jul 2018 12:50:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.steuer-voss.de (Postfix) with ESMTP id C643841C98; Wed, 4 Jul 2018 12:50:16 +0200 (CEST) Date: Wed, 4 Jul 2018 12:50:16 +0200 (CEST) From: Nikolaus Voss X-X-Sender: nv@fox.voss.local To: Andy Shevchenko 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 Subject: Re: [RFC PATCH] ACPI: bus: match of_device_id using acpi device In-Reply-To: Message-ID: References: <1530609760-8919-1-git-send-email-srinath.mannam@broadcom.com> <8518137d-c859-657e-844f-51720f6ef8dd@arm.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 4 Jul 2018, 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. This is not meant as a short cut for device manufacturers. The patch is meant to make PRP0001 work when access to specific driver_data is needed. I see nothing bad with it. >> Allocating an ACPI id for an already existing DT driver is redundant, isn't >> it? > > It is not. The driver won't work any better with it. The driver code gets another table as big as of_device_id table. Can you give me a hint what the added value is? Niko