Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3163949rwo; Thu, 3 Aug 2023 23:47:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEKU4iCtIBjeFZGaY9hAaUH3UAN4TQJH0yKA7siib9gGKV/ydkUSZGUA4175xY7uAGjheLr X-Received: by 2002:aa7:c6d1:0:b0:522:3d36:ff26 with SMTP id b17-20020aa7c6d1000000b005223d36ff26mr764559eds.38.1691131625822; Thu, 03 Aug 2023 23:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691131625; cv=none; d=google.com; s=arc-20160816; b=kNsFZ04MHJ4UYQintzQjs+IDyta9FXLumBeaIeZo8b2UTaIhkkX/9FrxFXjxBlWbA+ vCEUSCGoe0zzs8CAl2i4RQ28YYvw+r/ZZgc3CvTQsOxCA+Xi7qktlWjLs4M2CwRMdSHE eq2xiBPz6jsg9i0B6JHxXQ72p6BSQEgqIkh0he5g3uJTAS9RagseycCed+EejaCwct6j i5jBqCz440+HjdwlWVF2uTixo3zO+LLjW39DTEyPDQODXiN27WV4vNvRV2yY2od0dbjr fp9nGVE/UOtMUAOdwbJYqNs4hevyOawc5ZxhIH79L5dirVP1dhiBobimq7IUVYdwjFqC eGew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=b/PN/MsyJWx6qQwraSGN9v5qq128EjR5+n64dELJFZ4=; fh=jdC1wo04rAzKEpN+95FmIE0HbfvRQ3ImDXr2QY6+m/8=; b=HxJkoG5Hn+BEV+eSkkyMTD69vnPx4hsyGdQYtZ3ZhaYNAmzHIALa58SzGdPXtzjQwF 7Ejp/6DiBdRt1Y5SpD1/Usgf4qadiedaRRfOuW26GS8zZEq2LeRtY4yELEK6MbCDUvET aXRshYigG+LSm9/EdC1Eu7IUotKRAx7/sQAj1opo0V7rJe6nIMs9D1OCR5U7uzmSNmYa 54+qfEcYkq7EHyK5HZ8H1I654feZDFNIHiOXrUKf5ZMeipJdUw13742cnqBod1W0qQpy W1HyWPxdMXertpHIlRdl82mRUbOtMBJRICkRhRYK5CbWTF9qGrfX6Zy7NQvILT6uu2I0 +vmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gCUEgQ+T; 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 f17-20020a056402161100b005231eac50cesi308766edv.623.2023.08.03.23.46.40; Thu, 03 Aug 2023 23:47:05 -0700 (PDT) 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=gCUEgQ+T; 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 S232238AbjHDFx3 (ORCPT + 99 others); Fri, 4 Aug 2023 01:53:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229907AbjHDFx0 (ORCPT ); Fri, 4 Aug 2023 01:53:26 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27B841AB; Thu, 3 Aug 2023 22:53:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691128405; x=1722664405; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=4GC04UQtSW++hkGap/aB0IJ6PsV2/5cD7Mz2fax7+c4=; b=gCUEgQ+T5B+QtlodNByxErn0XNwZfl2Mxn4xRJeIqxzNMp7AWV1WkZg4 pTyO518E2E4gfiK7vUrgZJK/GhHO7qF2a/drWzLOHP9P6lIQPxH6GOIfX 7A9YBknPmoT4YDmmgKki6TuZliz//EdwgBTx424DGMaZTkbqCTzxgvo9B O0RT9hEQhB2yIAyYqC4NvumkEi3TBPSshmyni4usC6zEci6jYKfcFzJMD fcjQt9A72ABOhEUAh+ic7E/7AQMjrqeYn9/ZcQw3sVbcsEaLNjS9I3738 QyCv51GCIywNs5qGD60aZ6zf3mhwpqRvHY+L3Rka9qSuxWxXWnOiYRzkq g==; X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="368977378" X-IronPort-AV: E=Sophos;i="6.01,254,1684825200"; d="scan'208";a="368977378" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2023 22:53:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="819973553" X-IronPort-AV: E=Sophos;i="6.01,254,1684825200"; d="scan'208";a="819973553" Received: from smile.fi.intel.com ([10.237.72.54]) by FMSMGA003.fm.intel.com with ESMTP; 03 Aug 2023 22:53:18 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qRnkQ-00CPJc-2v; Fri, 04 Aug 2023 08:53:14 +0300 Date: Fri, 4 Aug 2023 08:53:14 +0300 From: Andy Shevchenko To: Sunil V L Cc: linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Catalin Marinas , Will Deacon , "Rafael J . Wysocki" , Len Brown , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , Daniel Lezcano , Thomas Gleixner , Anup Patel , Marc Zyngier , Bjorn Helgaas , Robert Moore , Haibo Xu , Andrew Jones , Conor Dooley , Atish Kumar Patra Subject: Re: [RFC PATCH v1 05/21] arm64: PCI: Migrate ACPI related functions to pci-acpi.c Message-ID: References: <20230803175916.3174453-1-sunilvl@ventanamicro.com> <20230803175916.3174453-6-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230803175916.3174453-6-sunilvl@ventanamicro.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 On Thu, Aug 03, 2023 at 11:29:00PM +0530, Sunil V L wrote: > The functions defined in arm64 for ACPI support are required > for RISC-V also. To avoid duplication, copy these functions > to common location. ... > } > + Stray change. > arch_initcall(acpi_pci_init); > + > +#if defined(CONFIG_ARM64) ... > + cfg = pci_ecam_create(dev, &cfgres, bus_res, ecam_ops); > + if (IS_ERR(cfg)) { > + dev_err(dev, "%04x:%pR error %ld mapping ECAM\n", seg, bus_res, > + PTR_ERR(cfg)); > + return NULL; > + } > + > + return cfg; Can be cfg = pci_ecam_create(dev, &cfgres, bus_res, ecam_ops); ret = PTR_ERR_OR_ZERO(cfg); if (ret) { dev_err(dev, "%04x:%pR error %d mapping ECAM\n", seg, bus_res, ret); but as far as I understand this is in the original code like this, so consider as a suggestion for further cleanups. -- With Best Regards, Andy Shevchenko