From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15437C433F5 for ; Wed, 2 Feb 2022 11:43:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343983AbiBBLnV (ORCPT ); Wed, 2 Feb 2022 06:43:21 -0500 Received: from foss.arm.com ([217.140.110.172]:53300 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343974AbiBBLnT (ORCPT ); Wed, 2 Feb 2022 06:43:19 -0500 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 3865F1FB; Wed, 2 Feb 2022 03:43:19 -0800 (PST) Received: from [10.57.89.81] (unknown [10.57.89.81]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1CC113F40C; Wed, 2 Feb 2022 03:43:17 -0800 (PST) Message-ID: Date: Wed, 2 Feb 2022 11:43:16 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH] hwtracing: coresight: Replace acpi_bus_get_device() To: "Rafael J. Wysocki" , Alexander Shishkin Cc: Mathieu Poirier , Mike Leach , Leo Yan , LKML , Linux ACPI References: <5790600.lOV4Wx5bFT@kreacher> From: Suzuki K Poulose In-Reply-To: <5790600.lOV4Wx5bFT@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 Hi Rafael On 01/02/2022 17:58, 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/hwtracing/coresight/coresight-platform.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > Index: linux-pm/drivers/hwtracing/coresight/coresight-platform.c > =================================================================== > --- linux-pm.orig/drivers/hwtracing/coresight/coresight-platform.c > +++ linux-pm/drivers/hwtracing/coresight/coresight-platform.c > @@ -626,7 +626,7 @@ static int acpi_coresight_parse_link(str > const union acpi_object *link, > struct coresight_connection *conn) > { > - int rc, dir; > + int dir; > const union acpi_object *fields; > struct acpi_device *r_adev; > struct device *rdev; > @@ -643,9 +643,9 @@ static int acpi_coresight_parse_link(str > fields[3].type != ACPI_TYPE_INTEGER) > return -EINVAL; > > - rc = acpi_bus_get_device(fields[2].reference.handle, &r_adev); > - if (rc) > - return rc; > + r_adev = acpi_fetch_acpi_dev(fields[2].reference.handle); > + if (!r_adev) > + return -ENODEV; > Is this patch part of a series ? I don't see acpi_fetch_acpi_dev() in v5.17-rc1, which our tree is based on at the moment. Please could you point us to the changes ? Also do you expect to pull this via your tree ? Cheers Suzuki > dir = fields[3].integer.value; > if (dir == ACPI_CORESIGHT_LINK_MASTER) { > > >