Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2434678ybn; Thu, 26 Sep 2019 11:49:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzH+aEqurs5VRUHJ/Vhn44V+/64OZCXiFirpPmtfIdkIm0JMr8x6gliChkFd5ZjCa9jqek5 X-Received: by 2002:a50:b501:: with SMTP id y1mr257679edd.167.1569523751173; Thu, 26 Sep 2019 11:49:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569523751; cv=none; d=google.com; s=arc-20160816; b=JzNSPtBdNEcFgOlfeumQ+vrNNxN9EQEN6IupjonbGcYkV5ykZk3zD0UZj5UVjhqLrk IbJktSbEGSwR1pueIESlyci98u78ZeXeW2OpnXOwdwUwcwquSOcUP2liwA2/oTUsUrgO krMDJHf477ZshTX89tB06wOLtT9JT3v4qCzR4OJTu9HC0Aj7iRufjauuIEgbO6Nvi4jR XYoW+w3tknyNO0lLqStveM6xnYesmWxiV/51vKRuXSiIgWlM4wnA+oXUB6cop9+PE3mf 9Y9v3hHd/g6/diSTLAwFKCKnzwkOwHMbKR6G5pObPGHk0GOIxsN044BJVJtCqyo46fZS 9Twg== 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; bh=XSWLEwl5VaN3EZZziBzqT0msKrlWhpaMn4ZDycZU7t8=; b=HDcHUIWf0tb1AETf7HijX0UcKv7AiHQ5Jd4eQeXxrMa2IJ6UlHl28UbLJ2nt6/XLkO dsP+cqlXZY5aHM0g2AHSK4EihCNVxrlGbTxnjHbW4LRW+vJeDamx8BUD9cUlduPGHUw3 4U8bXp1ViIO1NXn9/IqkNVy4uk1BDqfUd8Sxt/IW9ns2hZmOUWE2/2IumlxyNHbiY2UX MW8Fl+2HAngk5ZrOwZoGe8Z2nM5hHMc4M/4Zn75sXdSCmm/o8Gy0RKfoXahT9d5dCuvK 8f2e/0MMfyjijKwVsx285PzIjAk+DrNOeiUBCUlc2mbr/H8o01lumUd8yGgA9SPbx7Ed rLMw== 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 b30si89125eda.200.2019.09.26.11.48.47; Thu, 26 Sep 2019 11:49:11 -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 S1728574AbfIZSof (ORCPT + 99 others); Thu, 26 Sep 2019 14:44:35 -0400 Received: from mail.steuer-voss.de ([85.183.69.95]:33348 "EHLO mail.steuer-voss.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728492AbfIZSof (ORCPT ); Thu, 26 Sep 2019 14:44:35 -0400 X-Virus-Scanned: Debian amavisd-new at mail.steuer-voss.de Received: by mail.steuer-voss.de (Postfix, from userid 1000) id 979AE4D586; Thu, 26 Sep 2019 20:44:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.steuer-voss.de (Postfix) with ESMTP id 95F9D4D574; Thu, 26 Sep 2019 20:44:33 +0200 (CEST) Date: Thu, 26 Sep 2019 20:44:33 +0200 (CEST) From: Nikolaus Voss X-X-Sender: nv@fox.voss.local To: "Schmauss, Erik" cc: "Shevchenko, Andriy" , "Rafael J. Wysocki" , "Moore, Robert" , Len Brown , Jacek Anaszewski , Pavel Machek , Dan Murphy , "linux-acpi@vger.kernel.org" , "devel@acpica.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH] ACPICA: make acpi_load_table() return table index In-Reply-To: Message-ID: References: <20190906174605.GY2680@smile.fi.intel.com> <20190912080742.24642-1-nikolaus.voss@loewensteinmedical.de> <20190926163528.GH32742@smile.fi.intel.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 Thu, 26 Sep 2019, Schmauss, Erik wrote: >> -----Original Message----- >> From: linux-acpi-owner@vger.kernel.org >> On Behalf Of Shevchenko, Andriy >> Sent: Thursday, September 26, 2019 9:35 AM >> To: Schmauss, Erik >> Cc: Nikolaus Voss ; Rafael J. Wysocki >> ; Moore, Robert ; Len Brown >> ; Jacek Anaszewski ; Pavel >> Machek ; Dan Murphy ; linux- >> acpi@vger.kernel.org; devel@acpica.org; linux-kernel@vger.kernel.org; >> nv@vosn.de >> Subject: Re: [PATCH] ACPICA: make acpi_load_table() return table index >> >> On Thu, Sep 26, 2019 at 07:09:05PM +0300, Schmauss, Erik wrote: >>>> -----Original Message----- >>>> From: Nikolaus Voss >>>> Sent: Thursday, September 12, 2019 1:08 AM >>>> To: Shevchenko, Andriy ; Schmauss, Erik >>>> ; Rafael J. Wysocki ; >>>> Moore, Robert >>>> Cc: Len Brown ; Jacek Anaszewski >>>> ; Pavel Machek ; Dan >>>> Murphy ; linux-acpi@vger.kernel.org; >>>> devel@acpica.org; linux- kernel@vger.kernel.org; nv@vosn.de; >>>> Nikolaus Voss >>>> Subject: [PATCH] ACPICA: make acpi_load_table() return table index >>>> >>> Hi Nikolaus, >>> >>>> For unloading an ACPI table, it is necessary to provide the index of the table. >>>> The method intended for dynamically loading or hotplug addition of >>>> tables, acpi_load_table(), should provide this information via an >>>> optional pointer to the loaded table index. >>> >>> We'll take this patch for ACPICA upstream >> >> Erik, >> > Hi Andy, > >> how about to have also counterpart to acpi_load_table() which will do what it's >> done now in acpi_configfs.c via acpi_tb_*() API? > > I should have given more details. We decided to add this extra parameter > in AcpiLoadTable and we're going to create an AcpiUnloadTable function > that will take table index to unload the table (basically the > acpi_tb_unload..). Once we do this, you can use table indices with > AcpiUnloadTable and AcpiLoadTable. that's even better news. Rafael, shall I prepare anything? Niko > > Erik >> >> Because it's kinda strange to call acpi_load_table*() and acpi_tb_*() in the >> same module. >> >> -- >> With Best Regards, >> Andy Shevchenko >> > -- Nikolaus Voss - Aastwiete 4 - 22880 Wedel