Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2020444rwl; Sat, 8 Apr 2023 06:26:17 -0700 (PDT) X-Google-Smtp-Source: AKy350ZSLzZB1J137pp2n+poBzeFaq2xVmQP5VIQ6dr+GXei2vaFrdm0Q9kZ4dsDM3kxw5BuBJR3 X-Received: by 2002:aa7:ce15:0:b0:4fe:9374:30d0 with SMTP id d21-20020aa7ce15000000b004fe937430d0mr1227554edv.39.1680960377007; Sat, 08 Apr 2023 06:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680960376; cv=none; d=google.com; s=arc-20160816; b=vbPlyV+fBMd6BWsE7REc+ScxfUAyrYqQQqcMzlf1TuJVjoMRAG87VHgNloRow6pd2g Kb+j5vsV9sqAkdSjPNueDHDKZ74Nks6iUpi/fs9o4ljyU1yxbIQ/LnKjmCoeDuC5bZ3M 4X78cvhm0r8Imts/nt7JIq4t/vYH5G72LPKmWBmooYu5ME3S53HJbl/rpoSaNtq4pjcY 3A/BSiEVKtJvP+RwnZITONUelacsl2Jx0+0PS+k7idOlIGqPKJR3JaSZRaAn2ebc35WE WKPoN3EZFiaQ1aadTCWIV/aZxepE2VZR2T5Q1VyTmyvc8DQ6eamF3uS3rH4bt7Y12AWZ ZjLQ== 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=bFR1F9klYQ4KqG6ez4UJSCi45dcCLKa28RGliG130Yg=; b=SVIookjik1cILhCZ6a5nw/lNF/BqpP4Pf0geKf9beRlf1Px5DKYyms2HGfklDFDx9f CAHiEk0TmL75VHsoA+KpKn0vyOirhxJxTVkJWts6JkImnsyXuQAmOEfzBJLIRS5lTV6/ auKdScPvKqoQjluOmeagcnP3kGbCkvdudzA4kO1JrlbkcZjpfXmjX4J6cFGKGAevtcvZ wjuD+pJClVak4LhbVfHgr5AKwC0Hi/wOku/4tXR/2VvnPhJAt0UQjmAvWpGA2O/Jb0G3 u3eWvnCX8BAR9UirK8wPAkiqBQZsc4w/Dbew6kfaz/O3xLe9ZpnuUJqup2FqJ9do7jTQ k8Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B5DDK8GI; 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 e2-20020aa7d7c2000000b0050480da034asi2463635eds.27.2023.04.08.06.25.52; Sat, 08 Apr 2023 06:26:16 -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=B5DDK8GI; 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 S230341AbjDHNYd (ORCPT + 99 others); Sat, 8 Apr 2023 09:24:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230041AbjDHNYM (ORCPT ); Sat, 8 Apr 2023 09:24:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA132D520 for ; Sat, 8 Apr 2023 06:24:11 -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 774036143F for ; Sat, 8 Apr 2023 13:24:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA873C433D2; Sat, 8 Apr 2023 13:24:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680960250; bh=ps76pyu3TDlG2IApvb70QcdiPajYqBKpLTa4tWI5Ohs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B5DDK8GI+rwvjJPfZEVp80zJfVVp8JpL4yQrVaExPzOfnPcYpewHbcb5OA0jfC1rR FHldYjZtQ3UtLbQmXxZYby67EG6pS3EDZw4FZwfF5wdVDOq+CCE1sYgVfmtd9ay2v5 zVWKDlIBpuKD1K3Twseu/S0T8Ou5vkSc0od8dPDrr827ViP++aIiHuocJImOSlfdWr uS7nRFH5WeDt3n83/E0Z/APHg5ni6LV8Un316/6feLD/cHnLGcqps/Q2vp5iEDnwjR qamRvrC64lD4ebM4jH81mls0fVgHqsp08bLb0QrpJvGCvgYe5X+OSYbrOacGvxpc1n SNxbneZmpBL9w== Received: by pali.im (Postfix) id 6F567213C; Sat, 8 Apr 2023 15:24:06 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Michael Ellerman , Christophe Leroy , Nicholas Piggin Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] powerpc/mpc86xx: mpc86xx_hpcn: Call uli_init() instead of explicit ppc_md assignment Date: Sat, 8 Apr 2023 15:21:50 +0200 Message-Id: <20230408132151.8902-8-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230408132151.8902-1-pali@kernel.org> References: <20230408132151.8902-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 After calling fsl_pci_assign_primary(), it is possible to use uli_init() to conditionally initialize ppc_md.pci_exclude_device callback based on the uli1575 detection. Signed-off-by: Pali Rohár --- arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c index 645125cc8420..812110673d88 100644 --- a/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c +++ b/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c @@ -46,10 +46,6 @@ mpc86xx_hpcn_setup_arch(void) if (ppc_md.progress) ppc_md.progress("mpc86xx_hpcn_setup_arch()", 0); -#ifdef CONFIG_PCI - ppc_md.pci_exclude_device = uli_exclude_device; -#endif - printk("MPC86xx HPCN board from Freescale Semiconductor\n"); #ifdef CONFIG_SMP @@ -57,6 +53,7 @@ mpc86xx_hpcn_setup_arch(void) #endif fsl_pci_assign_primary(); + uli_init(); swiotlb_detect_4g(); } -- 2.20.1