Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp631597imm; Wed, 4 Jul 2018 03:19:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgped+bbRBld1QbDJWLCWsGNNLkKIVghKpYLQPyvuocle8/wFXO55oNGiFfccDXb+mxWJk66I X-Received: by 2002:aa7:808f:: with SMTP id v15-v6mr1573985pff.38.1530699555549; Wed, 04 Jul 2018 03:19:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530699555; cv=none; d=google.com; s=arc-20160816; b=XJIxyvITxiqLeC9OXvoH0gaMvfN2yhw1BA5xlFqZkU6eTCcT4xkO6WpxQtI9ZdhTyL 7Rq6uKRNFj58vUB+SjN0BcDC7w9CVjYk01tvBWlGhSHFMpEutCSe2nz8UU12boPaSz9O jyDa6H/RivST9fzXS/Hy081PrrOYKlhbqTMl5y5wP/SRoK+/lENrMiFSM5sY4rZ4gNKH FZKbSkQ6HtMqtPdfTMAkpx69zlou5Bowcg8RiL3JnNEvCBDcpCJUHmoiFezwrsnjdz10 OuQlTR2ryXkU6QvuyznDwmc0RlRq4wgqxhvGPQQ5QzKOT8pKQMqc5V5sarJdKfa4eeyv QFbQ== 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=YuKgFAQJOd5vVayEwRkTyYf3ULPoEshS8ssIJjfo5KY=; b=riSkQhFSjyoQRH/5HCo6Qm3/9yWytEpw95Hw4qbQHrMVEXfn+rSaeuF2iV9WRQUFdJ hS3mLUZR9IO6K0rSZdp20g9qZHt0XCNjRPFCPHAmOD1nUrffydbncaXVNfpnshg1foqf JuY34PmE/nSNyHtzuTGsh3voZaa/xAIHCTEMg5x+XEgCU1vkeR6P1VD05rRa8O7/bNLI fqmMrQj54jHaFC5t4Fi6zFYF4SldJM2Zn76si7Zkto1Ko+ZeOIFNBcYklS99a1BtGWyB 5+1DyN09vfqEWi3b62QkPnXptsgIfc0C7Z5OtTlEkikhMs6MvyhBgsTWv0DD2fYHs+x+ CNFQ== 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 v38-v6si3256947plg.283.2018.07.04.03.19.01; Wed, 04 Jul 2018 03:19:15 -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 S933982AbeGDKR0 (ORCPT + 99 others); Wed, 4 Jul 2018 06:17:26 -0400 Received: from mail.steuer-voss.de ([85.183.69.95]:42220 "EHLO mail.steuer-voss.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932576AbeGDKRZ (ORCPT ); Wed, 4 Jul 2018 06:17:25 -0400 X-Virus-Scanned: Debian amavisd-new at mail.steuer-voss.de Received: by mail.steuer-voss.de (Postfix, from userid 1000) id C144E41B95; Wed, 4 Jul 2018 12:17:20 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.steuer-voss.de (Postfix) with ESMTP id B699441B8D; Wed, 4 Jul 2018 12:17:20 +0200 (CEST) Date: Wed, 4 Jul 2018 12:17:20 +0200 (CEST) From: Nikolaus Voss X-X-Sender: nv@fox.voss.local To: Sudeep Holla cc: Andy Shevchenko , 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: <8518137d-c859-657e-844f-51720f6ef8dd@arm.com> 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, Sudeep Holla wrote: > On 04/07/18 10:32, Andy Shevchenko wrote: >> On Wed, Jul 4, 2018 at 6:37 AM, Srinath Mannam >> wrote: >>> Hi Sudeep, Andy, >>> >>> Yes, This patch is to get of_device_id and then fetch data pointer. >>> >>> To add ACPI support in multiple drivers which are device-tree based >>> and has list of of_device_ids, by using this function >>> very minimal changes and can avoid acpi_device_id list in the driver. >>> I will send driver changes where this function used to add ACPI >>> support in following patches. >>> >>> Below are the changes added to add ACPI support in sdhci iproc driver >>> using this function. >> >> So, did you get an ACPI ID for it? >> That's how proper ACPI support should be done. >> >> P.S. What you are trying to do is being discussed with Nikolaus in [1]. >> I have to NAK your approach in any case. Sorry. >> > > +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. Allocating an ACPI id for an already existing DT driver is redundant, isn't it? Niko