Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp237974imi; Thu, 21 Jul 2022 20:36:05 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uIdGJ6Ur4YHXUFfHJDZ4gOG/jdN6fcwu7MDiL7E4h9+SNe99UC5CsTK28NobNfJKzVMbph X-Received: by 2002:a17:903:228b:b0:16b:ee10:b91 with SMTP id b11-20020a170903228b00b0016bee100b91mr1446734plh.27.1658460965529; Thu, 21 Jul 2022 20:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658460965; cv=none; d=google.com; s=arc-20160816; b=h7gW31vCm2Vnh1WQFn7j7vmZUevdwAmEVSmhAKnDgYgtiTAH6BwUzZmtfX/27zkllL adHSvDqkHdIzo8alyaGeVRaZDK1L4i/X3NmiHJC+PZk3jL932IHC84BHl90dIzo8sYYP k5d2oCgYWiozhhKVNKhkC2GnDjz4CUN3LRO095M0rZYTxdHFBLl2ayyYltwhpp3SRLJM 92SSVFjJ2sivrhjJUs4mwQaLJyeTNkeTrLCHdzQaGb+wx3YHqPkZ9ETuRDAZQx858Blo +UrscBHnnBwm2slghJPm/sh+6LNN1ILV3NMyV/JPgucTsCvB9RHsvTRggw6RpyRJTIQT wevQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=R6c/7YKSNKFQTdLLDmg450ywp2NOdkWRLW1ac0SOeSw=; b=d8HTVXDHBWG+bIgzomAv4eSr5aBCA+IFh9FxdkTQzS8LpaWvaHKPdHszkqEzpSQxvc gCMz8Rs3qUl5elyV3a9M9urT0jIjlYHoKHX2d6cvv0aO8oxVSaPHmoOrs1xhBLRQ422s h5INTtDi5za/dzY4TcyeaG5pretTyq99rwldXjCv8VQqu5YAFrMrVbE30G64jFYmugeh MvZWY96qviQdfmDTWiEkxAMpCPOjdS/o4i4tWQbSE5wuB9qYti11eFsqagkLm9jlyl1b Pwb/PQqDcZ/Vdnyb6+j3MDpI9oi/a7Wkz/grbZHHlM/kZYBBptkQlirB+xAmMCK0km+n FglQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="PlI8iwv/"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j8-20020a17090276c800b0016c51203bdcsi3899304plt.184.2022.07.21.20.35.47; Thu, 21 Jul 2022 20:36: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=@kernel.org header.s=k20201202 header.b="PlI8iwv/"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231182AbiGVD1Z (ORCPT + 99 others); Thu, 21 Jul 2022 23:27:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbiGVD1U (ORCPT ); Thu, 21 Jul 2022 23:27:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CEB19368C; Thu, 21 Jul 2022 20:27:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 767FB6204C; Fri, 22 Jul 2022 03:27:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D125DC341CB; Fri, 22 Jul 2022 03:27:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658460438; bh=0kud9t0bSGX6LH3lAFGBiZxJakXfvMCPDfHsTrwsWls=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=PlI8iwv/cYYK2/q9cX5I/2XLYk4OAB1eExDxVvVvPckKB1mDZK7RjhIunySGBPUPp qVKDPDTPVbh9zNn42de+IodVElf6hvytBSpNkT1Q/L0WMD1qoNCHWBP4BiQMBOYF/K SQGQZNNpjbc9NRoPyyKdy60kuPJtN4pxF2EWvpE+Sm6wxaTn2Q9Tmz5JP060Ck4i2H vPMstTrnqvl/1JHBCnXGdVAk/YQ8xVKOSre7jPjdd5mUKj/0A7GRX9wjAeVMykmbbS 07s4fJ8Q9QEMyyWUBZUTQJ3KE9XQjCipszR+lkK0p4Zyz6CGXIkb/3IYR59AE7Yyt2 MdCfI07oswkHQ== Received: by mail-lj1-f170.google.com with SMTP id r14so4033498ljp.2; Thu, 21 Jul 2022 20:27:18 -0700 (PDT) X-Gm-Message-State: AJIora8go/sowIo1Ai8ZnEFNkp9kbWh0YsIZ6omyabFAR2iUwFodLmzm 7GEsV5dQ6+cUqJ9e8K6rP+TKTC7bNkEVlucQRQs= X-Received: by 2002:a05:651c:897:b0:25d:e574:b64 with SMTP id d23-20020a05651c089700b0025de5740b64mr462817ljq.203.1658460436858; Thu, 21 Jul 2022 20:27:16 -0700 (PDT) MIME-Version: 1.0 References: <20220721134924.596152-1-shorne@gmail.com> <20220721134924.596152-4-shorne@gmail.com> In-Reply-To: <20220721134924.596152-4-shorne@gmail.com> From: Guo Ren Date: Fri, 22 Jul 2022 11:27:04 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 3/4] csky: PCI: Define ARCH_GENERIC_PCI_MMAP_RESOURCE To: Stafford Horne Cc: LKML , Arnd Bergmann , Geert Uytterhoeven , Pierre Morel , "Rafael J. Wysocki" , linux-csky@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Acked-by: Guo Ren On Thu, Jul 21, 2022 at 9:50 PM Stafford Horne wrote: > > This looks to be something that was left out on accident on the csky > port. Add the definition of ARCH_GENERIC_PCI_MMAP_RESOURCE to keep it > inline with other ports. Adding ARCH_GENERIC_PCI_MMAP_RESOURCE enables > the definition of mordern pci_mmap_resource_range functions which is > generally what new ports should be using. > > Signed-off-by: Stafford Horne > --- > Since v4: > - New patch. > > arch/csky/include/asm/pci.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/csky/include/asm/pci.h b/arch/csky/include/asm/pci.h > index 5c02454ec724..875bc028f8f6 100644 > --- a/arch/csky/include/asm/pci.h > +++ b/arch/csky/include/asm/pci.h > @@ -15,6 +15,8 @@ > /* C-SKY shim does not initialize PCI bus */ > #define pcibios_assign_all_busses() 1 > > +#define ARCH_GENERIC_PCI_MMAP_RESOURCE 1 > + > #ifdef CONFIG_PCI > static inline int pci_proc_domain(struct pci_bus *bus) > { > -- > 2.36.1 > -- Best Regards Guo Ren