Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3257793rwo; Fri, 4 Aug 2023 01:48:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFTuIcZ9PaJ+Fi1FcdBH4IoiiGlKqkkXRcfmwVHtuunWKO7gyyCuSZu9fBTW/jj2YihCvt5 X-Received: by 2002:a17:907:78d9:b0:974:183a:54b6 with SMTP id kv25-20020a17090778d900b00974183a54b6mr995845ejc.33.1691138926706; Fri, 04 Aug 2023 01:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691138926; cv=none; d=google.com; s=arc-20160816; b=AB6T8+f73VqkQPXH0B2RBFc3m+9vuTIa066mefW3CllP5LFyH5h3/Y++ZIStQGoC+Z N/A1kASOj0XMUDwHCjJoPW2iUBmypNF2zkmarBdOpDuEnjWC7poGRZO391x91HekW/j+ h8ZkXDFOAQcQ/ffWT5cfH5VvoEjzmcCODH8e8j+NXImlj9TKpvJknIORQ7BL2QKwMOVS jpJO21Hr90/Rep9nF+9VidOqzbm+oSKfkTVFe6H+xVE8LUEo4VsoK5ZZGv2zY1NuSabu zPW20j1thDckyJQApAevU/pYcnLBy9Akiy/gotXpdBIzc2cF72fTlPeyGUZAqyoJMYtL qKMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=U1iCEOYYU/TuYkpsVb8VVtB172iQ0uWVvB+JeREIxpo=; fh=GdWGeGpgCZxFdk5L95QTCXMU26XJG8MVLG1BM6S+0oI=; b=b4rDHXvdeFIeN0nn+LVEEfxAFTScWYlmgdf7ysPs8rDrRfQb6A4sgVEImslo/MCY+W S2AnAe4EGz/VhIi5SKalZGIfbWQl/HeCCToXz1CZDSy4FwaQwqZ9YLrHNnIuXIc1hh2B f+nMy/pEAH2YelZUoNT0ypM4YezIHCcNBpaGrRz43EDov+fV5TSdmKm1P14ObZbMjbd8 POngf+7TYNVea6/FbP4fpvuMyn1JJHG7v8ERyOm5p8cg778C6SneE3vA0zV84/Mr6FLf YKekZfVfYvdeSxHvogR+Yn1TRGX4T0Bwup8REDx+L2QhW8lb2f7nhkHVpJe/0IdcgBwm 0lng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=mNBCtcy+; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i19-20020a170906091300b00993664a9970si1346488ejd.873.2023.08.04.01.48.22; Fri, 04 Aug 2023 01:48:46 -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=@ventanamicro.com header.s=google header.b=mNBCtcy+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233985AbjHDIXr (ORCPT + 99 others); Fri, 4 Aug 2023 04:23:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234500AbjHDIXl (ORCPT ); Fri, 4 Aug 2023 04:23:41 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06F7A4693 for ; Fri, 4 Aug 2023 01:23:40 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1bbc7b2133fso12776675ad.1 for ; Fri, 04 Aug 2023 01:23:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1691137419; x=1691742219; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=U1iCEOYYU/TuYkpsVb8VVtB172iQ0uWVvB+JeREIxpo=; b=mNBCtcy+pGxfsWGwe4DsVuDy0NZiV99ZQ4y9rP1aAfOeel/kt5pokMEdhS81rp7emX 4q6NJxqkNJzQZR5RnuPibbIx0v6AbybMa3VEwgggL6fAkUhefeZhI2/Gz4Q4xac1Hu6h 8MjfYa3JyEeMVEGBK5ZP+wO1LM8UPpCmHNXVAQxffB8VxXFoW2uSKKYQk2m9NR7CScok jix7R8iUOQ9P18rXExjcm9a74uPR2ME3+6gSWvBwejujKQMYqjSyJTaUsKXd3tTT7Ktp Ua49YNuBvi/++1M98fkf1zd8ApIbK50kwdYoWSkV7oJpm/agaVJjM+EgS7/TxqGrsKvq deDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691137419; x=1691742219; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=U1iCEOYYU/TuYkpsVb8VVtB172iQ0uWVvB+JeREIxpo=; b=HgMXrEd68e9hbdAER7zKXuMnG6uiZkJD+Edgs0uVzgyPoqs8ogdR2xC9DL+XcFZm1g rZqMhbYdN9TNhDPPRXrvHb1wHidOk4FGpRdnTz9hHc+dHvcWwbmUzRuQRtjzFKhfvOJh igc9VBgzp8r8uHKVjG0PRTLAQacop/kfPZhJXDOhRykDLCzMB7UGQVw8Og4zuSQ8U0fa QkhTgaRZiFoo9gxtbUe/QX5b0HAv48/YO3OOIPOsJoZCZEGGrPKpBiOXsTdsmxKlUOb8 /k3Fh7cEylG89rrid0F5Ld2Qia2q+4t7HSSPx+NaE1g2GuwGFV6IkcGljaTx5yRqZsSn pI3A== X-Gm-Message-State: AOJu0Yxii/B0bFunIuUbpP2+ra38Ex+S2S8OdoIW15MfG1iqJF5UdvVd oydARXbEWGIV4D5qY5G8FGfGBA== X-Received: by 2002:a17:902:e5cb:b0:1bb:5b88:73da with SMTP id u11-20020a170902e5cb00b001bb5b8873damr906032plf.61.1691137419493; Fri, 04 Aug 2023 01:23:39 -0700 (PDT) Received: from sunil-laptop ([106.51.190.143]) by smtp.gmail.com with ESMTPSA id s13-20020a170902b18d00b001ac6b926621sm1138810plr.292.2023.08.04.01.23.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Aug 2023 01:23:39 -0700 (PDT) Date: Fri, 4 Aug 2023 13:53:26 +0530 From: Sunil V L To: Andy Shevchenko 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: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 Fri, Aug 04, 2023 at 08:53:14AM +0300, Andy Shevchenko wrote: > 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. > Let me remove this in next version. > > 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. > Good suggestion!. Sure, we can cleanup as a follow on patch. Thanks, Sunil