Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp149894ybb; Tue, 14 Apr 2020 21:30:33 -0700 (PDT) X-Google-Smtp-Source: APiQypKzI/+GfYAwQ4aBd7U32U4JplsLQbXeVFDiD3mvp3ncG45ijgI7KtISVvm5y6aOvtyh0rOr X-Received: by 2002:aa7:d513:: with SMTP id y19mr4931399edq.367.1586925033806; Tue, 14 Apr 2020 21:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586925033; cv=none; d=google.com; s=arc-20160816; b=ZZhfom4c428kuryyUDFr9AytE+9LEyW8yBIQ1/ndce+BD64YHHX75g+AnGqoocGLHO JwpgA/Av7uPFYKLYqkIorStmM1P2nYJ/wx8MD50cXxGNj3c4wsmHS/3SXT5YdFg1mBZs bvbXden8wh3Y8rpqHi3KUGTdT+Yva8dbMR6lVDnMoz02Wq5OriCa7Un62LV+1XzWWQVB ggQkBAdkWoAQUhhgJRj3pQwMfCVwolZuBPm+qgFE8Zd83D+91M8Ak2rOlCLd0x2UycMg IX/jP7OXNpHs7/20TEXdTXwzPpT/JBYl/WHUJ4agnwaiDMDg6fAEfLvBC0ZJeVbSz07G O82w== 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=yRFeWFWwCCqcI7eucZBwMTgLizIVM/dXU/cAgTGHHJU=; b=nOhzPPx6Cl1vZ8fVaNZtoaTLvaSukCXATh9xHxbY4d6KN3Nd1z9CwfJJsBuK1yHSf1 yuJInZBKIdjRlwPiGqTTUjfjsywXmlMLTrRry0Us56E0H7ihzS4KoEBA0Ybw8MzWCfVw r3gWkR5bZ9GIHCpKABXYtla/9ghgqg03Iwq1FecHmseMtHP7+rJATiBWeRScXaVMzhs6 1p6M1FqNPJeUR/O9Ywsvm8lwiXQ9nM/17uoAkdKuCADaeNtiUgxKU7deDA+5OMRdCnWV gm3BSBJJdV3BiC7vJwm7EVyTZMWqcLZ7YUGV+/ZB4ReiV/hC2fqqm88u2ZgG2O/oUmx/ JizA== 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 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id l10si8415589ejh.469.2020.04.14.21.30.07; Tue, 14 Apr 2020 21:30:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2388490AbgDMUmF (ORCPT + 99 others); Mon, 13 Apr 2020 16:42:05 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:43196 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388484AbgDMUmE (ORCPT ); Mon, 13 Apr 2020 16:42:04 -0400 Received: by mail-ot1-f67.google.com with SMTP id g14so2307237otg.10; Mon, 13 Apr 2020 13:42:04 -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=yRFeWFWwCCqcI7eucZBwMTgLizIVM/dXU/cAgTGHHJU=; b=o6GIIBMi34TbSemOhYMpQ7ieZPJyfbq9RuEPJiR5KzHnGtNdci/m7it+3uxA17tHnW WGsR2xkz4FuqKXpYfzw6zmZdqO6VN5Gn6BXsfkxbVt3H3GakeF6NELRb/7V9j9VA0173 GDCdIY1mDuJzifEyLAMmiq3kHVx2/fgeHuO70GVmlfgFIgQQTd9bAq+JMNjGwsfAOkFe dsks9IF3c4rKFUgNJIAJ9sShirBe3ISylUyZVj+wvEnThuC3iDIVNvk2uf7KqSpwT/GM 8Y5iqm5krVwD6y2gd7eh8Zt0wY8qBawWfCnD1iKVLvLarj4Itu3jjfmMcDy5eSCvR/O/ cZqg== X-Gm-Message-State: AGi0PuYAT1QyJ56L8HD0nbSUzfC7XVQQLFZk4+raIdYHcpJAiChCKt+U ODVCGvNAk4BcudclkXSxIdlYCyagRcIXctUGRnE= X-Received: by 2002:a05:6830:215a:: with SMTP id r26mr15152484otd.118.1586810523587; Mon, 13 Apr 2020 13:42:03 -0700 (PDT) MIME-Version: 1.0 References: <20200413134611.478441-1-enric.balletbo@collabora.com> In-Reply-To: <20200413134611.478441-1-enric.balletbo@collabora.com> From: "Rafael J. Wysocki" Date: Mon, 13 Apr 2020 22:41:51 +0200 Message-ID: Subject: Re: [PATCH v4] platform: x86: Add ACPI driver for ChromeOS To: Enric Balletbo i Serra Cc: Linux Kernel Mailing List , ACPI Devel Maling List , "Rafael J . Wysocki" , Len Brown , Collabora Kernel ML , Guenter Roeck , Benson Leung , Dmitry Torokhov , Gwendal Grignou , vbendeb@chromium.org, Andy Shevchenko , Ayman Bagabas , Benjamin Tissoires , =?UTF-8?Q?Bla=C5=BE_Hrastnik?= , Darren Hart , Dmitry Torokhov , Greg Kroah-Hartman , Hans de Goede , Jeremy Soller , Mattias Jacobsson <2pi@mok.nu>, Mauro Carvalho Chehab , Rajat Jain , Srinivas Pandruvada , Platform Driver 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 Mon, Apr 13, 2020 at 3:46 PM Enric Balletbo i Serra wrote: > > This driver attaches to the ChromeOS ACPI device and then exports the values > reported by the ACPI in a sysfs directory. These values are not exported > via the standard ACPI tables, hence a specific driver is needed to do > it. So how exactly are they exported? > The ACPI values are presented in the string form (numbers as decimal > values) or binary blobs, and can be accessed as the contents of the > appropriate read only files in the standard ACPI devices sysfs directory tree. My understanding based on a cursory look at the patch is that there is an ACPI device with _HID equal to "GGL0001" and one or more special methods under it that return values which you want to export over sysfs as binary attributes. They appear to be read-only. I guess that these data are to be consubed by user space?