[7/8] powerpc/mpc86xx: mpc86xx_hpcn: Call uli_init() instead of explicit ppc_md assignment
Message ID | 20230408132151.8902-8-pali@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp878101vqo; Sat, 8 Apr 2023 06:34:51 -0700 (PDT) X-Google-Smtp-Source: AKy350Y0YezyINjsjinbau3goxKLQsbq91b4INl2psq86bQfiOQ+09kGXu2IgexlCERB7D1fTJfs X-Received: by 2002:a05:6a20:3aa1:b0:de:ad43:3966 with SMTP id d33-20020a056a203aa100b000dead433966mr5848142pzh.4.1680960891097; Sat, 08 Apr 2023 06:34:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680960891; cv=none; d=google.com; s=arc-20160816; b=soq1QVefSYpW0GGBVzHEjfy1e+Eb4QBw9LUJORtwLy9wKSRJIGatDLXam/iU83Ho4X 8qodnTS5CXYp/zOb2cyoEhFskQEnXeMb9BbjGe3B5yEq2nQZzwL1XZV9aaWojdtXW+pV 2GE4DZ6u6wY04k6o+5oW/AKmk2wc2/M+AcZaYKcr1GcTuWUMoTZWAFC+QPoGUCeu443L XsKNkcJ7vWLNYIkc77yiQkD68LMqVMGqEsytC+aKf/ykwJHo12TUW06swm6LtnSizlUC YhsU8HjX1IsAg10SQHkTAC/VETf7HTWqG8bW376ZAfDBJCNRuUB2uq0b1rVdaxpzn/aK E+gw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g16-20020aa796b0000000b006256e67028dsi6175102pfk.122.2023.04.08.06.34.38; Sat, 08 Apr 2023 06:34:51 -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 S230160AbjDHNYe (ORCPT <rfc822;a1648639935@gmail.com> + 99 others); Sat, 8 Apr 2023 09:24:34 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <linux-kernel@vger.kernel.org>; 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_Roh=C3=A1r?= <pali@kernel.org> To: Michael Ellerman <mpe@ellerman.id.au>, Christophe Leroy <christophe.leroy@csgroup.eu>, Nicholas Piggin <npiggin@gmail.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762615247159871733?= X-GMAIL-MSGID: =?utf-8?q?1762615247159871733?= |
Series |
powerpc/fsl_uli1575: Cleanups
|
|
Commit Message
Pali Rohár
April 8, 2023, 1:21 p.m. UTC
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 <pali@kernel.org>
---
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(); }