Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1834491rda; Tue, 24 Oct 2023 05:02:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF05Q2qOIx/GsRuaFTg+40APId6ezR0FIH76Pjyo+lMBxpP8Q0823+GiVk0WcHsM/w/i0oS X-Received: by 2002:a05:6a21:4841:b0:16b:74bb:e57e with SMTP id au1-20020a056a21484100b0016b74bbe57emr2340026pzc.12.1698148953209; Tue, 24 Oct 2023 05:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698148953; cv=none; d=google.com; s=arc-20160816; b=NnYX/5+Rbgk/PlV2Z5RiRY8G0LEQwRxgKzzfby4d8/UVQ/bhwKFWyP96QTj1zbPvEi y4pbZLNMKBAKJGZsH0uOXy5sw4S6p4teFcInXydL05uXfJpa7GjzBWOFfuq4a5L7LIQB z+nv2k91oTNyyL1P1t3iFmHj7pY83ZcBO1dvHWL3BXLbhIML8QqZsBu1TVO1VupMOJFW IwM4616/qMquF+EvZGLie3mbO2qJBlnnFPvATvblebu5DTCn4JQU9Yv5BHzAlD5KAIrP 1QLq58s8cH+lmi2apC7qnXr6mYOYQc9jaaJzxQk01KQKC6tzPLMBCcvN+PZG+Q1kvPw1 knZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=YG7rIIDRifoFlqGOiy8IIsgaSuTyZ0Tn/lD3QxhOZG4=; fh=0myiI5W9Ym7k9/G/JCxjexO00Bng4tlJKdMrTAxMvUg=; b=lWVgrYL1+t0cjk+teDERTmX/2/jMIw6w8xQuZxGjt99lqvUES41g9aEQV7pUAVDaxo xkaRQxZjWD6fnvlKU//FC8k+ufr3qbbHV8zSDeSSIbDTFzLAuyR2TPK5JzrKSsLK/M54 aAH97ujgtyDImPiVoMDST+mT7dKCXhQ2yugu+wKKYLwtv0PLX5HwYHZn6Be2ENueBtRK SyYDKRA2hSoOuQxGeRzZ8zGVtyye4Wtkjus5CfsRlkmd53uUeKoTnANoaNvqTld6ghpg w32Swt101tOiD2qONpzlLyBAEJCFizAs4tB4pu9qDEdR+Btu4NHPixcWwl7+Fo8xBIBH 6j8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id u21-20020a656715000000b00578a30162c8si8132822pgf.537.2023.10.24.05.02.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 05:02:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 2EF13802FA70; Tue, 24 Oct 2023 05:02:25 -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 S233496AbjJXMCU convert rfc822-to-8bit (ORCPT + 99 others); Tue, 24 Oct 2023 08:02:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233435AbjJXMCT (ORCPT ); Tue, 24 Oct 2023 08:02:19 -0400 Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC31E120; Tue, 24 Oct 2023 05:02:17 -0700 (PDT) Received: by mail-oi1-f178.google.com with SMTP id 5614622812f47-3b2d9a9c824so1006841b6e.0; Tue, 24 Oct 2023 05:02:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698148937; x=1698753737; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=q2pHDhFBV3p+9e1mZi2uGJDDYekveY6SeTMBwmaYx/4=; b=SzR3QQEYyvhYRcAV2mt9thqEo+GgfpLYPwXexHxaEJ8URGnqceLxSYECZzWRCJkKx0 rZ2QGxui+UFef4QKs9ZbZ45IEqIU4mSud3D0mKPeZe0F3PZWmONM8i3tu9n+iESja9tP RkCV0l7UwYXx8zBZP4Ubdivsxj0YFr4MuEmtuJ6izvEU/Re8WQx9H+As1Sr/pHsGfSpX qjYpgkoJZs32R7TDoasiTfEdfogF59ApFtrRbvDIILONyAKudftuwdQj4m68+fqRIth7 +nhPUHwfHQF++EJNw3bEUg+zac3MaCxcqioi26tXrteZKXIpjVQQxXYc6L3PFGEAnffp bmlw== X-Gm-Message-State: AOJu0Yys0jeFsrf8FGpN2jdKNA6LLUavTE2B2MxGPzULME9GMfwm40ZN 4p6yDIcocdahMT87J7v55JLqG99qPAk6YcQ9gmU= X-Received: by 2002:a05:6808:1513:b0:3ae:5e6a:5693 with SMTP id u19-20020a056808151300b003ae5e6a5693mr13497868oiw.0.1698148937006; Tue, 24 Oct 2023 05:02:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Rafael J. Wysocki" Date: Tue, 24 Oct 2023 14:02:05 +0200 Message-ID: Subject: Re: [PATCH] ACPI: Rename acpi_scan_device_not_present() to be about enumeration To: Russell King Cc: 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, x86@kernel.org, James Morse , Salil Mehta , Jonathan Cameron , Jean-Philippe Brucker , jianyong.wu@arm.com, justin.he@arm.com, "Rafael J. Wysocki" , Len Brown Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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]); Tue, 24 Oct 2023 05:02:25 -0700 (PDT) On Fri, Oct 20, 2023 at 8:47 PM Russell King wrote: > > From: James Morse > > 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 > Reviewed-by: Gavin Shan > Signed-off-by: Russell King (Oracle) > --- > This is another patch from James' aarch64 hotplug vcpu series. > > I asked: > > Is this another patch which ought to be submitted without waiting > > for the rest of the series? > to which Jonathan Cameron replied: > > Looks like a valid standalone change to me. > > So let's get this queued up. > > 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) > -- Applied as 6.7 material, thanks!