Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3367705rdb; Wed, 13 Sep 2023 09:51:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFCJcrmbh+z7cFXhYRTuXUKalsamPMABjyIo9tIWjppyvOUKDxKBSeSdfSVMMYcnFyxzD2x X-Received: by 2002:a17:903:451:b0:1c3:8031:1d9e with SMTP id iw17-20020a170903045100b001c380311d9emr2584238plb.15.1694623895709; Wed, 13 Sep 2023 09:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694623895; cv=none; d=google.com; s=arc-20160816; b=Kqs6X33qxqrT2YMZBENXHQ2NkFdGcIWiv0DgEYy6fIsXMfjO3qAwFAu7+FmGEpohKB gYxSXd8/dLzTe92fnRWLzfGm/T7nSI6pNBh9o7qglCDDTByRNVHW/bSMkPJigDryDJH5 XQPNpyQ92+wD7t+jvyd5O1xVGwZxnmenkdoGD3zunw5H4OlUCTddxDFUVXn0Mrsy62rC Hd+SgiQlkLgeBcIMiEI5vp/UI3YibxUyyV37hPyDRNCEYaLn42ZBHzISA6RBKCeYNgbQ Pcf5CSq1vbadrBFLjtla/yabcbknY7Z+iz2udpd9ddXGeTPgqGcNpIsXTJwLoT7/1wzd IQxg== 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; bh=joyA2RRgDbhuge5sGDyMojCf87Sw8Bpxtzby5XkXThk=; fh=2nhVWB0fZ+8YH0lLFpnF/Mo8eq+n1VMLe+b+IpvS0g0=; b=Q/b2+3z31C+RcDFH+4RZ6obzWga8C9vd4BFs9z/fQweHAKPkSSHZQHlOERVifXsnPj ahCx+7Ex6PQWwVjjl5M/MhES2/RxnnIWMCrLCyF/PPN/6KJM2Olo96et7E03olFIzkdH Dwgo4IPVki4UilD0d05HiGHimdgPf7xNl8v3YeZTJHlHQRGc9YBmF3mW6LENXccxv9at FdZh3sJlmGeaBuA2QkdsOIsVeW22ev2L+D/ulEQpmy9eRtvTNw/Fx2Y7choRc/Ck5IX/ vCHmqe0DVQAB3BmWoX53qhgIzhT1N0v32XqIvR3WaqGLMzF3loK8WAR5fR9qLziorSEm Kqhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id la13-20020a170902fa0d00b001b8b4371af8si10102066plb.648.2023.09.13.09.51.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 09:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id F0C43801B391; Wed, 13 Sep 2023 09:40:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231292AbjIMQkI (ORCPT + 99 others); Wed, 13 Sep 2023 12:40:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231136AbjIMQjk (ORCPT ); Wed, 13 Sep 2023 12:39:40 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3B1432106; Wed, 13 Sep 2023 09:39:19 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3A2C21FB; Wed, 13 Sep 2023 09:39:56 -0700 (PDT) Received: from merodach.members.linode.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3F3BD3F5A1; Wed, 13 Sep 2023 09:39:17 -0700 (PDT) From: James Morse To: linux-pm@vger.kernel.org, loongarch@lists.linux.dev, linux-acpi@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, kvmarm@lists.linux.dev Cc: x86@kernel.org, Salil Mehta , Russell King , Jean-Philippe Brucker , jianyong.wu@arm.com, justin.he@arm.com Subject: [RFC PATCH v2 13/35] ACPI: Rename acpi_scan_device_not_present() to be about enumeration Date: Wed, 13 Sep 2023 16:38:01 +0000 Message-Id: <20230913163823.7880-14-james.morse@arm.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230913163823.7880-1-james.morse@arm.com> References: <20230913163823.7880-1-james.morse@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 (groat.vger.email [0.0.0.0]); Wed, 13 Sep 2023 09:40:12 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email acpi_scan_device_not_present() is called when a device in the hierarchy is not available for enumeration. Historically enumeration was only based on whether the device was present. To add support for only enumerating devices that are both present and enabled, this helper should be renamed. It was only ever about enumeration, rename it acpi_scan_device_not_enumerated(). No change in behaviour is intended. Signed-off-by: James Morse --- drivers/acpi/scan.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index ed01e19514ef..17ab875a7d4e 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -289,10 +289,10 @@ static int acpi_scan_hot_remove(struct acpi_device *device) return 0; } -static int acpi_scan_device_not_present(struct acpi_device *adev) +static int acpi_scan_device_not_enumerated(struct acpi_device *adev) { if (!acpi_device_enumerated(adev)) { - dev_warn(&adev->dev, "Still not present\n"); + dev_warn(&adev->dev, "Still not enumerated\n"); return -EALREADY; } acpi_bus_trim(adev); @@ -327,7 +327,7 @@ static int acpi_scan_device_check(struct acpi_device *adev) error = -ENODEV; } } else { - error = acpi_scan_device_not_present(adev); + error = acpi_scan_device_not_enumerated(adev); } return error; } @@ -339,7 +339,7 @@ static int acpi_scan_bus_check(struct acpi_device *adev, void *not_used) acpi_bus_get_status(adev); if (!acpi_device_is_present(adev)) { - acpi_scan_device_not_present(adev); + acpi_scan_device_not_enumerated(adev); return 0; } if (handler && handler->hotplug.scan_dependent) -- 2.39.2