Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2174075rwl; Sat, 8 Apr 2023 09:08:16 -0700 (PDT) X-Google-Smtp-Source: AKy350YBRaPap7gNtHnxEJ0hivAvNF1h2OmfatLPnRUWdMtBto2m7CMuRPmYmf1kDepffyHO1Ewp X-Received: by 2002:a05:6a20:4d91:b0:d5:58df:fb7a with SMTP id gj17-20020a056a204d9100b000d558dffb7amr6559822pzb.3.1680970096325; Sat, 08 Apr 2023 09:08:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680970096; cv=none; d=google.com; s=arc-20160816; b=VbFCNlRSz0CmkTRekfFR39c9hzmjn0dnj4xkNCqcfZ1nZxiq6zqRg3kf5kEeCcGfzJ +D+Gw5o+pjK1X3QKflJLRegg8kFsxJyaYTfGZyplui74LaPVFOrfwYWtVOfUiYS+EIXA TyAi3EJ/jgHRl5GwZMv04MxidmQNvz5FKLbdC1hVxfEbxLQ48qYIuVsoR5v823DD05qO b1hQC1pU1hHzShIyTMCP/hiURjye8oZsUm76emdaSNpX+sMsIw50U2SPG7I4yJpU+Vtj B7G1GDMzDhCPEZEdBzgLfth5As5g2hqaWycw9l6QpKKrK+rbR41rEhmP8Sc0Rpskkx1h 6gXg== 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=ArIXkKFBraEvmImbqNYN5K/7xcIN1DlCmNu92L+uXf+iJvIoBOlQVWp8RM6YaXRU4b /jZgEINsH1kPTiilfxupswbQjAHkmnh7HegBCoOvfO01m/0MIneB1FYQCKaZTUuurfeF RjQuYHHTDM3Sq0tXsnHHp2gpWo1AtdLCFavLaRiVx3+0BhtYEiHyJHlQu4FKtKH8ndRE ZaxWInSs9HcXSkLT4XIn+/sNsE5Kzbkjrq6rnthAOkGrHQ5JnjUUBUgFmL8bLvBWN/57 wkOJT1rPF3TSowbeqrZrKtpT5ufH6LAYovZwsjXVaGNFg58tmauVJ4/drYXEqlh0KXX7 TVWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I7b6aS9i; 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 26-20020a63195a000000b0050bdc2e7efdsi6199736pgz.42.2023.04.08.09.08.04; Sat, 08 Apr 2023 09:08: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=I7b6aS9i; 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 S230172AbjDHPtj (ORCPT + 99 others); Sat, 8 Apr 2023 11:49:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230093AbjDHPtY (ORCPT ); Sat, 8 Apr 2023 11:49:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DB22D31B for ; Sat, 8 Apr 2023 08:49:23 -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 19ED46159D for ; Sat, 8 Apr 2023 15:49:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52194C4339E; Sat, 8 Apr 2023 15:49:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680968961; bh=ps76pyu3TDlG2IApvb70QcdiPajYqBKpLTa4tWI5Ohs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I7b6aS9iNM/B6evLHDiI7sYSh/+XCmeVoD1Lav/hmwvxFbbQecNetC7zAdT+PeBMo ia+Rrd3WJhqZE7AcSm4o8Ufuw/08swNvBNZF+qPtyoVTbjbcNoWArsv3e0Fzd62OMO DAsKi2QorKMGmjuMGQga6Z7IebgaD0LzTNLZ0X33C6vlsigbJDHLi7ULgTsUTz2qu3 abux0MGQU3i/3WGKRL0B/9xahwOCIOIMEQlWlYoWGqgJe+fc8eqy0BkJdxzndOyfSY nR2KTTAdJiPAABHTaHfFsepehuiIyHNX6KE10oKl0IIbaH1XM+JG6st4zDGSQVIc3L /Mn7ZlApa6PTA== Received: by pali.im (Postfix) id E5061213C; Sat, 8 Apr 2023 17:49:18 +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 v2 7/8] powerpc/mpc86xx: mpc86xx_hpcn: Call uli_init() instead of explicit ppc_md assignment Date: Sat, 8 Apr 2023 17:48:13 +0200 Message-Id: <20230408154814.10400-8-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230408154814.10400-1-pali@kernel.org> References: <20230408154814.10400-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