Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2480091ybn; Thu, 26 Sep 2019 12:31:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMhOpLaFvmHUyVtG/gGZ5cCUb4E1f0yFAAj8Kle+Pd0e3J2LET9IUPCCDMpnaDWGlF1EIw X-Received: by 2002:a17:907:388:: with SMTP id ss8mr4709583ejb.26.1569526306652; Thu, 26 Sep 2019 12:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569526306; cv=none; d=google.com; s=arc-20160816; b=RHrAhB4lIXYMmB1+TvIwH5reJ5JWA0xgdH4Di8uedPGI8WOJDXqX6vjvD/Me+AZQ47 suEwVTXK2PdSke0+iMPWCguCuGWftWW3GPhe+0y2mJRBGu2QYjMMFo8gAC3T5hz3es54 9aeYaRXy/64uzbpXfKwr7oRtXCRMs0juE5idquZp20xjsoHXOgaf90VuxuzHOoeIAaFn S8qmAkqsEGxFFTkKlv0dvSpaFI+7iXpH1K1YLSSuJfwmApThYsZq/T0EhaRqeOlmefIl fcOXTbO4ehCrA3kHMBSDn1cc+zi1+44lVHeoimBa0kB9UHeZHZacuwsOVoiP6hbYTFN0 hDtQ== 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 :in-reply-to:references:mime-version; bh=FWSNDGi3jKauQ9dQ/11vDbIdImhGLJ9T350jR54cptU=; b=jLRn3PnqkQUHXJBvqWJpMML7+qmpADUkb/yYNRalSgd2TkXDOUAM3fwS00bGquTpEF ysshlGFimfZ5aLUf2VdhJAQtw1DfGa/76iZmONrLeWQkwwo//hdXWmQaIQw0080KLaPn VyViYf+hrcrW5NsPJ0Jveo0lnimteQIwkFV7Q0iPw+gN0X+JTVMwEmjFrtA0ICZGB40c GJqojOqrkRBxuuCXlA6jvvpUZAumVXGMG4YhHJWXu81fRp8Gz9ypM189EQjcJz2nD88y Lm4I2dVgijz5uskkxvz7UPdy6pfEawWBz38fVHKDdhSIrw+KUHas9L9UfubD+nJUt9Lb VP5w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9si1667310ejr.29.2019.09.26.12.31.22; Thu, 26 Sep 2019 12:31:46 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728671AbfIZT0b (ORCPT + 99 others); Thu, 26 Sep 2019 15:26:31 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:40168 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727707AbfIZT0a (ORCPT ); Thu, 26 Sep 2019 15:26:30 -0400 Received: by mail-ot1-f68.google.com with SMTP id y39so151367ota.7; Thu, 26 Sep 2019 12:26:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FWSNDGi3jKauQ9dQ/11vDbIdImhGLJ9T350jR54cptU=; b=Ch3ANC7uT8h8GDEBihiCRnJ9aHuarO0AyAWMnGJeZoCFvqEipeoMFsmg34n9/ahLWt 60oLpK6lVu/cQYRUNolJj62FnESDN4upJ8Mlbmh9FfOS+c8McXSCS0Fc1gWZtu+MIOXj Z65r6JPrcAewlqK/wTtU9snIXuImyd04ySYA5ThiIXpPsFhoCeeiG9HEAsDj90aRgZdA Rr1AKzld5BVpxIqoeGeybinAtez2YGAErxRidKEgoRhd/d/zWoXzeOX9Av60kEQbAAdE GmrsRMJ3sMkTq+ZSzqFjzK44TxoVVnuStE0thcy/0I8ZZfa3pYoXDTuzxNdGAuSeIcQZ P5Kw== X-Gm-Message-State: APjAAAU8PpL7CZSr6FslgKORdVrBblWICAPINVtsKW/yo5SAtoz7/vwk azipwwy3malggSe1VEyjtGX7ldZG+kxFR5uJpPs= X-Received: by 2002:a9d:6a16:: with SMTP id g22mr260324otn.118.1569525989675; Thu, 26 Sep 2019 12:26:29 -0700 (PDT) MIME-Version: 1.0 References: <20190906174605.GY2680@smile.fi.intel.com> <20190912080742.24642-1-nikolaus.voss@loewensteinmedical.de> <20190926163528.GH32742@smile.fi.intel.com> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 26 Sep 2019 21:26:18 +0200 Message-ID: Subject: Re: [PATCH] ACPICA: make acpi_load_table() return table index To: Nikolaus Voss Cc: "Schmauss, Erik" , "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" 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 Thu, Sep 26, 2019 at 8:44 PM Nikolaus Voss wrote: > > 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? I don't think so. I'm expecting to get a proper fix from the upstream through the normal process. Thanks, Rafael