Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2520261rwl; Sat, 8 Apr 2023 17:25:43 -0700 (PDT) X-Google-Smtp-Source: AKy350Ycvt33uX6VxF5gZCBSYE+TpWCW1bisS+M4+0Sv0zvxSbhAEm2C0/rDdkYqRY/uX/ZMKN+l X-Received: by 2002:a17:906:b14b:b0:932:83fa:d2fe with SMTP id bt11-20020a170906b14b00b0093283fad2femr4060120ejb.12.1680999943633; Sat, 08 Apr 2023 17:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680999943; cv=none; d=google.com; s=arc-20160816; b=z25gxZuqyIimutRmDYjOa5x+OwN9bVdV4ZQi4TzEze1ayGLlYwQ63TOim8UJVkQKH4 2Utr5K6eOLotLPukwpQ6f+PbWwAnSLwCt3sEio8SpTtnALFsCyVwsJ961TYsRCXF6OCu eEWRXlsW7VoSsuT98Zhvmcl6czbPc4f1mSesxb9axjg4Md7eRwj7IUGL4KChe4fISLSO srQqPtFeLOnQla4CfDFYuWykzUiZW7LAfqd7n7y93otoIxSl5ap4DUXNiALqGvKWA0xr DHM0fYbyJgZkzbymVadBdkQE7qbeB9N+33hwjPQaBqsU1F61JrUDLjICMrlB9oyeEXRG xnGQ== 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=OM5GgO9lP4dLjd9g5Fly2d2B7CksN8wIdcWZw40VCK9a215Ow5YS4F0dXWJC4ghBU4 OEPRSROPp9jOOgXVfXpbrH7rbaXiyOoLJQvYQKwvcgcP4cV/1g14Kl2GUqLJhk01RpJD XOBo1aq+p+LKPPI58mqBxgAwuCOIDBqa4X5XvtAtl3TcPuGH0Lg1GQIQQVKHZ9rn4+ho 5jXcLA0mOy+WWauJWNJL9mVJbhjFGEMpwU09girFWMhTGSl0Ba1AMSoPzFLFsXnNiUaH 3u57My28kLc/fgLIFztF3pPi3FpuSeHLpGdbefpuSrXX+3Hgl+8v9gQ+0t+Bb9NYk6wV RKyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tK6Zxue4; 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 vl1-20020a170907b60100b009453c587583si7031166ejc.995.2023.04.08.17.25.15; Sat, 08 Apr 2023 17:25:43 -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=tK6Zxue4; 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 S229641AbjDIAJq (ORCPT + 99 others); Sat, 8 Apr 2023 20:09:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbjDIAJZ (ORCPT ); Sat, 8 Apr 2023 20:09:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B497B83D7 for ; Sat, 8 Apr 2023 17:09:24 -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 42415616C3 for ; Sun, 9 Apr 2023 00:09:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73A17C433A8; Sun, 9 Apr 2023 00:09:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680998961; bh=ps76pyu3TDlG2IApvb70QcdiPajYqBKpLTa4tWI5Ohs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tK6Zxue4K7UPtqIlVK/fMHIZgv7oixQdk1BL5ZW14GAUjy6ZqGU9ktImZlxBMtfNv bbUiMeGuiiZ4QqYQriftxfvFRdS9o8QL+r9OUKQiBvYBQ5AfuRHEZ4SCKQpjtmou1Z pbQUDhMTbzRD4nylA/2lDqhUZCu6MXFOLyXiRfaBppk44OCJPG/kvzs6oeB7gb+TBE ASRjwIELp0sKp3YYK0XneCuLGY+FrIzj9DzOaASnKjpgMcR8ziB4hjxqKPPzNwNSjA j/AOvNZiNijwXR9tMb/f1iUowHFhqEGkH3GRMh/tcV9zbY3YQhmFbC4LnvbyLNR79L J4oMUy7jsmjPg== Received: by pali.im (Postfix) id 36D14213C; Sun, 9 Apr 2023 02:09:19 +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 v3 7/8] powerpc/86xx: mpc86xx_hpcn: Call uli_init() instead of explicit ppc_md assignment Date: Sun, 9 Apr 2023 02:08:11 +0200 Message-Id: <20230409000812.18904-8-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230409000812.18904-1-pali@kernel.org> References: <20230409000812.18904-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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