Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1811364rbb; Tue, 27 Feb 2024 01:43:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXbwG5DBDVSLWT2Pe1qd0iXe7TOs/f5njmYFwohJdnY+6a35jkf6vGfDpGcgcSdpdt5TQchh+BloCzthlK+LDE9FKsov7q3u6lot2bWsg== X-Google-Smtp-Source: AGHT+IH8MEX+c+KN3arPKIKvcbvvIA7UYg/vW54ESD6atXwcRWn2QFjqlko68uoKigBmRW2ZsZbI X-Received: by 2002:a17:903:2285:b0:1dc:b30c:694c with SMTP id b5-20020a170903228500b001dcb30c694cmr2878576plh.41.1709026987481; Tue, 27 Feb 2024 01:43:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709026987; cv=pass; d=google.com; s=arc-20160816; b=YUM3ok2yD69cArOJDse6nIe+FRynnjIqOUnFAwtVQ9vur5FKYRzjsRk/CcPnfosYQS jhWWdmtnuSu51249asdKiDY9ulXzCyowWGg37rTUCGACEpDBli56zB+E/tqXAU+GgI7n oc5tAMRENXaXGll/ttZxiNRiY54JxrSTLOrV4h5DgM3S/LKDxLBJ18UYcHVo7WMKrrWf cdYKZXLCdS191qYp9+SObZM6TpcZkAfg0vVOw8HbnBYe9yO4qpnv/HBrzPEGa7PWXGtz RCK0FH+PhKJCBNTUoeOULSOhMUNcdSkr1EAkMNwz6/nHwmvIIKTvnM0xG3ERkkX3AcXz hUAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date; bh=LGzbyJ/Sue2O1UFCkzxvWZwzjzd+2JTEZc+JYh+DHiY=; fh=qca6Lao8FW7Clj+3Gs90PIlM0S5qGE+Ig2lyYgPloPw=; b=jReeMU2ofJVL0tLcUrYcffGELwwqsyimfldzAHk3fE3+M0jp/x/DjVFPkSdRfLkKc9 aZhpfX/j+QR/j8oYX0dy4NrtN24W/hV9VtUdDc6kuvLl6BWq3Q4SolKKHdw3GV34ZVqz L4OMrKK4z+AcqCnjEnIh9jsTDUh10g0zYeHo6ixj/xgNtC4pgSQ6BGJOePI0VZyoSpZ1 cPDPSH1dT6sIiqqw9oMTMEWZve7jD5wcY2bOKlv+/moT5MTu0N+MYnrvYuQMhFlSz59S 0ov7z2dUqrfqrU/g7EL5EtVkXfJG2iT1dNW0wtytn2FqtBARdHNjbt3ut42V+UdRXbed nTKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-82982-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82982-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q15-20020a170902dacf00b001d95e26b2bbsi1172302plx.75.2024.02.27.01.43.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 01:43:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82982-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-82982-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82982-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F3BBE28293A for ; Tue, 27 Feb 2024 09:43:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E8BB13848B; Tue, 27 Feb 2024 09:41:37 +0000 (UTC) Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC32F136665; Tue, 27 Feb 2024 09:41:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.176.79.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709026896; cv=none; b=I40hd/m6GYA37fYKgWF0eiX0HRxsOmwJQSjfT137yEqvcaXvkEsZs4IMEd4U7tP8ZrBaNmY4YVV0F0kqmGq0+Ms+fNpVNU5StMYRL7ZzsCbIlFWnVYAXGKlj9PBRcc+6Cy1ulE1EySJ01AFSv6F2sGBcJw4+UX6D0jr7jKuTbVo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709026896; c=relaxed/simple; bh=GhoRHMmUUTvt+w0xFWRMfhOroiUsocjYqe7tLBaJ1vM=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LpxDTPahytyI6hECXP98qWXuC+KLpYukkHR1zlOODBN1LiQNxZVbFG2W/89h3UVHlqR/RoZ2/wy9zXomHFKHMlussSeJvVD0JUrZvgv/KxCEwbma5ipsU6bLWGwlV2VH2YWXKFBuUkgXNwGkGJ23s+D4BghyjjZR7ikr9kZERi4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=185.176.79.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=Huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.18.186.216]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4TkXTR5Ys3z688KN; Tue, 27 Feb 2024 17:37:47 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (unknown [7.191.163.240]) by mail.maildlp.com (Postfix) with ESMTPS id 33C471400CD; Tue, 27 Feb 2024 17:41:32 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 27 Feb 2024 09:41:31 +0000 Date: Tue, 27 Feb 2024 09:41:31 +0000 From: Jonathan Cameron To: "Rafael J. Wysocki" CC: Linux ACPI , LKML , Mika Westerberg , "Rafael J. Wysocki" , "Russell King (Oracle)" Subject: Re: [PATCH v2 5/5] ACPI: scan: Consolidate Device Check and Bus Check notification handling Message-ID: <20240227094131.0000291c@Huawei.com> In-Reply-To: <7632957.EvYhyI6sBW@kreacher> References: <6021126.lOV4Wx5bFT@kreacher> <7632957.EvYhyI6sBW@kreacher> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml100002.china.huawei.com (7.191.160.241) To lhrpeml500005.china.huawei.com (7.191.163.240) On Mon, 26 Feb 2024 17:46:41 +0100 "Rafael J. Wysocki" wrote: > From: Rafael J. Wysocki > > There is no particular reason why device object subtree rescans in > acpi_scan_device_check() and acpi_scan_device_check() should be carried > out differently, so move the rescan code into a new function called > acpi_scan_rescan_bus() and make both the functions above invoke it. > > While at it, in the Device Check case, start the device object subtree > rescan mentioned above from the target device's parent, as per the > specification. [1] > > Link: https://uefi.org/specs/ACPI/6.5/05_ACPI_Software_Programming_Model.html#device-object-notification-values # [1] > Signed-off-by: Rafael J. Wysocki Reviewed-by: Jonathan Cameron Thanks, Jonathan