Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1819531rdh; Tue, 26 Sep 2023 04:47:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8vcuxzaYvp80eohr5LNhPUhZspCHLrtPq4Sj0bUnSWzznlig5+ADnQg9W+DizN1MceHw8 X-Received: by 2002:a17:903:60d:b0:1c0:d7a8:a43e with SMTP id kg13-20020a170903060d00b001c0d7a8a43emr5961031plb.53.1695728828599; Tue, 26 Sep 2023 04:47:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695728828; cv=none; d=google.com; s=arc-20160816; b=eH3rY/+hBV8HI1u5Zs5y0QDJlmRCKm6XPb6AxRgczjmFgPyq6edT4d3RqN6BvY8CYN +VuTucFsXsa3xkRnbnkVw4NlweU4arYT0SaMhspXktP63niDzxc8Y4PWUKa83k2JLkpa 6+v4Ei74ZojJeU4/6Xm7mQYEb2gz5/S5GLm3MQeutgWFTEqI+VuKkwQI/RPsrqT+2zUn gRdl9R/ar9OsFKJg/SMpv0pLgadzWiXuIkLsMrSrCBQqTHj9BT/lF6rgozpkmB0VD7sm aBJn2XyczqSchJw3S73bEjy1zuHOi5ypwzcA1Qn2gzguxuMtHFdCDAEGyaoywKqtiuxn okuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=N4UFg51NUfHsh/PAL8V4sxYWrMlHvgHyA6o7tx2HlJY=; fh=9ry4UZW9KrG3ITyQogfSKGFwYtlG/MwYg1DwDYLUtSE=; b=J+Xv94An02HN07jaWa2jZPI+JgTe7npvmtONXOhrySr9B7BjzeNretBAhQuMOu+aCV NWmW87UvKtMBZxGGteCJMRTIxCoOJJ5pE1eFSuFY4LOOXpHtWBOzD+YaOjw6AsHIi8Nw rkhGVbIuOTZpVOGYBJAxAfYa1+TIdZ0JLGdwrEypJalNZtDnbwwvGcyKTKrWdNYmCjNl XIiKSVs0M28Z9TwKRh88RASSiT7JKfdTFS9bF4+fD2aPVwdWnN69FtnkrdCEUdSPTZEW nUNW48UUI5I/cUqhMXPA1J3wMPRGOrt+wl1Z3dpqVwy/J8sOLZbQ+XsebuaNQ6jnP9rr V8jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KU7oTXe5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ld12-20020a170902facc00b001b8946f3f95si11825344plb.312.2023.09.26.04.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 04:47:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KU7oTXe5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id F1C608131AB7; Mon, 25 Sep 2023 07:49:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232391AbjIYOtd (ORCPT + 99 others); Mon, 25 Sep 2023 10:49:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232203AbjIYOt1 (ORCPT ); Mon, 25 Sep 2023 10:49:27 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9DE410D; Mon, 25 Sep 2023 07:49:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695653360; x=1727189360; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kKM0C1N1K+zAFPffptjtDRXafSmi9wPq9IOl4rSEZ+w=; b=KU7oTXe589HSPT7zJQNqxkMYszEiWVPVwB3Ob9lQJeP2teERWklZmlKK BbpTAIA8nQPi3RMDrja5G3Y53A41uLYcfL35dqkfr2aSMmN9AFYtxfedX YORFQpdbhlw6Rm8bYgf1iyNST45NOgTM/FBNyb6l/fqXbiiIyQP1rkJs3 22YFkdUIanBMjGGSAxEcrSo6RAAoNRE6v+jPCUTglXIw83Vpd3SFKQasG pbLV4I71ZlpsZFFvDYI09CygX7Bat/LHJT5mXHEMnwsP6TeRICVLGZx4j 9ffGpeOooFxyVVpLhbcyDbtbvFuF35k8+ngqThQzctUWH2/SzAs2w6a7S g==; X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="378547987" X-IronPort-AV: E=Sophos;i="6.03,175,1694761200"; d="scan'208";a="378547987" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2023 07:49:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="995409451" X-IronPort-AV: E=Sophos;i="6.03,175,1694761200"; d="scan'208";a="995409451" Received: from powerlab.fi.intel.com ([10.237.71.25]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2023 07:49:17 -0700 From: Michal Wilczynski To: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev Cc: rafael.j.wysocki@intel.com, andriy.shevchenko@intel.com, lenb@kernel.org, dan.j.williams@intel.com, vishal.l.verma@intel.com, ira.weiny@intel.com, rui.zhang@intel.com, Michal Wilczynski , Elena Reshetova Subject: [PATCH v1 2/9] docs: firmware-guide: ACPI: Clarify ACPI bus concepts Date: Mon, 25 Sep 2023 17:48:35 +0300 Message-ID: <20230925144842.586829-3-michal.wilczynski@intel.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230925144842.586829-1-michal.wilczynski@intel.com> References: <20230925144842.586829-1-michal.wilczynski@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 25 Sep 2023 07:49:33 -0700 (PDT) Some devices implement ACPI driver as a way to manage devices enumerated by the ACPI. This might be confusing as a preferred way to implement a driver for devices not connected to any bus is a platform driver, as stated in the documentation. Clarify relationships between ACPI device, platform device and ACPI entries. Suggested-by: Elena Reshetova Signed-off-by: Michal Wilczynski --- Documentation/firmware-guide/acpi/enumeration.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Documentation/firmware-guide/acpi/enumeration.rst b/Documentation/firmware-guide/acpi/enumeration.rst index 56d9913a3370..f56cc79a9e83 100644 --- a/Documentation/firmware-guide/acpi/enumeration.rst +++ b/Documentation/firmware-guide/acpi/enumeration.rst @@ -64,6 +64,19 @@ If the driver needs to perform more complex initialization like getting and configuring GPIOs it can get its ACPI handle and extract this information from ACPI tables. +ACPI bus +==================== + +Historically some devices not connected to any bus were represented as ACPI +devices, and had to implement ACPI driver. This is not a preferred way for new +drivers. As explained above devices not connected to any bus should implement +platform driver. ACPI device would be created during enumeration nonetheless, +and would be accessible through ACPI_COMPANION() macro, and the ACPI handle would +be accessible through ACPI_HANDLE() macro. ACPI device is meant to describe +information related to ACPI entry e.g. handle of the ACPI entry. Think - +ACPI device interfaces with the FW, and the platform device with the rest of +the system. + DMA support =========== -- 2.41.0