Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4213137pxb; Sat, 5 Feb 2022 06:52:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1SzjGYj71w2MSXYHk/ud4TIXI9Nuf+KvSncF2DRwWQNFynRmLX/qkgZZmVY/eoziEOpbA X-Received: by 2002:a17:902:ec8d:: with SMTP id x13mr8387288plg.9.1644072766070; Sat, 05 Feb 2022 06:52:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644072766; cv=none; d=google.com; s=arc-20160816; b=tyVGgerWXonwyBbOrQveRBntERIuZ3YKKNtbIWXOWmMXp1Y3VAb+gUE5DTeNlO/308 /fCGOv/fjLmCk/DgQFyouwtg2C9pmupHshV8lj8mTwv7lXeosU1ag6I6z4/OULjxb2FK 3R3NBL0roPsQzzuCqsBqGHe4wLpswKw7zakpxmjeATaYO4vohtuu+9iPSJC/UNx0GwW8 OSE+lAJ9Ws0dPOypcafECJn1AoGDFIQe0D0eUQ57pUYIT7G6EQw9sva+Q8GNHxq1cGWG Ok+cyxZZ/7/JX7orBl4Fxd6eFF2QsFYb4Y89AVwy4s/MeJyXqiqqDCqTiBN8k7dt0sTj xf2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=yKaUwEEAXSUaIIJDc/cCXRxXgtEyHMIoXNZZ5A+0x8c=; b=t33YCKYjVLd9SVh+hyB3n9W0BRkqIa/SSc9GowxlfmcobBDxaIZedJ7+JpyBMfNz7J /uIH237ZkJtctffDPpsj4HOcrcSt8Lmh4wcn7uHsWSxbLoF7TQ4becrINYYa25a9tpwM HKDx1jfwykNk1avd/LaFm/9gTxFy+otLAPgIuq2SQSN28CvGuwZB8gwZviHmKVTHTtVw Ol/wKutWNRqPdFw1Rd3SRALrOQZTU4g1hCYfEOy0N+5ZH9OFxZ/ruP/1icmOyo9UPhj5 0M2yLZjNDJ0fgX0h2x+reuEzUajboX3ted8jBxvizDI3AOid5z2AeWW0dQvlmWJdiGf8 435w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SyT8uvNY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w10si4536217plq.346.2022.02.05.06.52.33; Sat, 05 Feb 2022 06:52:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SyT8uvNY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379223AbiBEDbh (ORCPT + 99 others); Fri, 4 Feb 2022 22:31:37 -0500 Received: from mga06.intel.com ([134.134.136.31]:23232 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232093AbiBEDbg (ORCPT ); Fri, 4 Feb 2022 22:31:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644031896; x=1675567896; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=VhfmbidGFkvXxS9uiVajIYqkNoVhiNiwmTbCsvquo3E=; b=SyT8uvNYrh8kXu2kOGIvg7WiuWL3XhQtWDKeLSrRz1OqWuBss0ibXQVU Jhln2raaJFMdnZTybkkNi0vctYr3YG7EF+3VzcCpbd8Qd28LK5oVH2elo 3bwBBoz6CL13q/Ba8d4xZb7eYBCAUaFIQlCNpr9PBPI4RRxoldqQ8S9i0 Jq8xoLPMVA71h/3SxFyOD+0WSmzQhg6JH2145rT9tFc08jBQ0cJHRADOP 8gMOLQENiqnvgX/LWSJHw3K2NIFB0iGRTGEk3IWN/yfjwAGEXqGXJfCaE 1TE9/kDRnGe4segirdLTN5aly9J3msCy6RhqxnT+It4WQCzUyetxaHH7C g==; X-IronPort-AV: E=McAfee;i="6200,9189,10248"; a="309228677" X-IronPort-AV: E=Sophos;i="5.88,344,1635231600"; d="scan'208";a="309228677" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2022 19:31:36 -0800 X-IronPort-AV: E=Sophos;i="5.88,344,1635231600"; d="scan'208";a="699883713" Received: from blu2-mobl3.ccr.corp.intel.com (HELO [10.254.215.148]) ([10.254.215.148]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Feb 2022 19:31:34 -0800 Message-ID: <9915edbf-ccda-be71-87a0-0c74c683d3d8@linux.intel.com> Date: Sat, 5 Feb 2022 11:31:31 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Cc: baolu.lu@linux.intel.com, LKML , Linux ACPI , Joerg Roedel , Will Deacon , iommu@lists.linux-foundation.org Subject: Re: [PATCH] IOMMU: Intel: DMAR: Replace acpi_bus_get_device() Content-Language: en-US To: "Rafael J. Wysocki" , David Woodhouse References: <1807113.tdWV9SEqCh@kreacher> From: Lu Baolu In-Reply-To: <1807113.tdWV9SEqCh@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/2/2 2:11, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Replace acpi_bus_get_device() that is going to be dropped with > acpi_fetch_acpi_dev(). > > No intentional functional impact. > > Signed-off-by: Rafael J. Wysocki > --- > drivers/iommu/intel/dmar.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > Index: linux-pm/drivers/iommu/intel/dmar.c > =================================================================== > --- linux-pm.orig/drivers/iommu/intel/dmar.c > +++ linux-pm/drivers/iommu/intel/dmar.c > @@ -789,7 +789,8 @@ static int __init dmar_acpi_dev_scope_in > andd->device_name); > continue; > } > - if (acpi_bus_get_device(h, &adev)) { > + adev = acpi_fetch_acpi_dev(h); > + if (!adev) { > pr_err("Failed to get device for ACPI object %s\n", > andd->device_name); > continue; Please adjust the patch title to "iommu/vtd: Replace acpi_bus_get_device()" Reviewed-by: Lu Baolu Best regards, baolu