Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1031386imi; Fri, 22 Jul 2022 15:34:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t7xkZYhLTFRjA1Al5TrfIBjsZhYTgAWxBVU8uMeBbab20VPlyQnscCQM3P7LkDpM0FqsLL X-Received: by 2002:a17:907:868f:b0:72b:859e:8fe4 with SMTP id qa15-20020a170907868f00b0072b859e8fe4mr1516795ejc.98.1658529251243; Fri, 22 Jul 2022 15:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658529251; cv=none; d=google.com; s=arc-20160816; b=0cEQI51CbYqx5xjDQkSJq0wSUdywKfLttTnFMmnxXTiMpmocIzpJVY8VFmR44tnRk3 rlAxRoFTwyd8Vm0mUaFdr073y8N5TTaPqaXX6RkuN2Wi+yComQ4OAjOmalimwHQFo5UZ pGDdtvUoCtoOJ8+e7hWhDQEyHGt10gZHHBAOCh4QijnPWwlE83atAUH7fh9sg+4VcRLE C6+8OGLDHS2LNsFThTScUScj3RaZ7rkcKbg3OUof+etDpFobco++mTn9UHDSo2lI7ID+ i++a52hwRC3W/zP9tSgL6r46t/WU7gNPg3HYrytZqEL7Q5TrtgkpqdYH8UZwzcWIZA3K JItw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=i0dVPpSvAwJP2BMIET+fnHbE/tEy93/PQneHIgbhVWc=; b=MlHvF1I3r8ThncTuPsllxZzzz9bqw+HOm1ndxiQA6095axztDh0hzaE8k8D15n1du2 6Sp/0oqqTkode5dkVCORjf1C3azxduYSqcz2kYXeS3Tmt+YOjglkKCxx4/Sfad+jI5B+ /WTG2yLe0p1LBbGNSsAYRuxdB44DtHwEs9Gw5v9LeD69WsW53IA5ksun3WHo65Noaiht eUjKkNhBeRIYQ29w2K/48/mUd0KtLlot4oQZjJbm1sgRjo9MGxvS0gB0AmbBo7sJVM6W x9j19/vX+8q7CQ9Ed4AKnYpFysT4vPV9GMCil/4BIdQ5fIDtzCbiATuURusEQCYMVbI6 Gkuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IjlZU3xQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hg3-20020a1709072cc300b006fe8fdac65dsi7188120ejc.745.2022.07.22.15.33.46; Fri, 22 Jul 2022 15:34:11 -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=@gmail.com header.s=20210112 header.b=IjlZU3xQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236444AbiGVVvD (ORCPT + 99 others); Fri, 22 Jul 2022 17:51:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236374AbiGVVuw (ORCPT ); Fri, 22 Jul 2022 17:50:52 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A18BB8791; Fri, 22 Jul 2022 14:50:36 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id c3so5476238pfb.13; Fri, 22 Jul 2022 14:50:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=i0dVPpSvAwJP2BMIET+fnHbE/tEy93/PQneHIgbhVWc=; b=IjlZU3xQuaKjM3/QyW1QCXqa/XRwTmoe649cVoWeVrnPkwG8k4lmlwbaOJp/UBWWMw Cqoja3ELRXsL95rDnHIuFpJ6wUjeR9j8XCG+hx4IcT7IjqziSgw714sc68Zac8yzMgE2 /I1UwM+x7x9ZifIpIxhu6uaua0sk58QyZgpudb2Bm/NV4rTt7BtogIaO6mbBWeFkRXeo 7bHc9CRp/aNJzVhahRqUVxsow4DhpHiCl0sRvmvnhz6s9HVCbtZY4gHEIrWbtyuhwR5U CMndihQBt3eVmLCkPN7DX1ohqcfwKElcBDLLcWSz7d/QNCAIlgqBFPkt4AnM18L1C7tC UcDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=i0dVPpSvAwJP2BMIET+fnHbE/tEy93/PQneHIgbhVWc=; b=Tf8Mql/tk1/VREn2CpU7xIPOX1BeVRQNm0pcXbPWGTI+C+KiB3yCGwmXQlw9tXvOXZ 5PPX6dgKbEfLOr2aUyfIU581VG8LahJM5wYbmhbhSRZKxS2fbPtYf6i3m0lqkh2r+GJE MQIaii11Yy7JNA9RwLVvhL4jz5GPn6Gkog+qFgtFmMtMVvia+q1r4jEFjtzawJWyT2im sCYOsowm0uSyzNMC2D3kVN1w+hgT9kKssqw6op/TA5CJiI8VpcylcGX6TYB8n0Uq1BJX bymXtGVlWc7uefgkhp38BlOmJVxsvn5si/3MkJV2pUmE/yJ3pGupd2+JcAJ8xdpwgBnT rM1w== X-Gm-Message-State: AJIora8TiH6/ai5YrZva9rmqr4Rs5QXAjW65SUnH/AJFo1oXCKSrBYDr 0fZ51eIDcjfbDtg05pA38JwAayhttDgzKQ== X-Received: by 2002:a05:6a00:2347:b0:52a:cf39:59a6 with SMTP id j7-20020a056a00234700b0052acf3959a6mr1956435pfj.34.1658526635660; Fri, 22 Jul 2022 14:50:35 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id w67-20020a626246000000b0052ac5e304ccsm4368142pfb.194.2022.07.22.14.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 14:50:35 -0700 (PDT) From: Stafford Horne To: LKML Cc: Arnd Bergmann , Stafford Horne , Guo Ren , Geert Uytterhoeven , Pierre Morel , linux-csky@vger.kernel.org Subject: [PATCH v6 3/4] csky: PCI: Define ARCH_GENERIC_PCI_MMAP_RESOURCE Date: Sat, 23 Jul 2022 06:49:43 +0900 Message-Id: <20220722214944.831438-4-shorne@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220722214944.831438-1-shorne@gmail.com> References: <20220722214944.831438-1-shorne@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 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. Acked-by: Guo Ren Signed-off-by: Stafford Horne --- 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