From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42072C352A9 for ; Thu, 26 Sep 2019 18:44:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 281FD217F4 for ; Thu, 26 Sep 2019 18:44:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728578AbfIZSof (ORCPT ); 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