Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D98D5C636D6 for ; Wed, 22 Feb 2023 18:22:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231926AbjBVSWk (ORCPT ); Wed, 22 Feb 2023 13:22:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230511AbjBVSWj (ORCPT ); Wed, 22 Feb 2023 13:22:39 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B940B3C78B for ; Wed, 22 Feb 2023 10:22:37 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 6C2D3B81649 for ; Wed, 22 Feb 2023 18:22:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B57A0C433D2; Wed, 22 Feb 2023 18:22:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1677090155; bh=CzIR8pGHHiNEiEpf6Yh2H8j5zj5EVQGwTE29uy1k9eg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=okC9wkxZB+0MdfKesGUBqtFLaECvBpkOWvsCxp2//TFTiQ16yo+mukiMxWlnkSbDL HUiJ4OtDUo7R3zc1OrkS+K/uroN3BSrxCzefijQTNcCo0x/pr+cnQHU/EeIwBssz3+ sPVBsxK5Esl/1m/x7rXE1J/fBu4NiquwLuNSDz3DfR/A+aivKEGK08DHDWeQA18qku aVmsK+KdGBgk6eFR2qfgx5K+46v31/97+rRFCDu/0dhJJXuej1ArcFP/exU5a9ZxSm UA9LTI3DWavrfd+Jl8VsVsGK3LNH47f3wu5OQrw3U0V26x6k9LsqZ9Hu3nKOk2jkTR XZb+lby9aS5mA== Received: by pali.im (Postfix) id 1CD0172C; Wed, 22 Feb 2023 19:22:32 +0100 (CET) Date: Wed, 22 Feb 2023 19:22:32 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Christophe Leroy Cc: Michael Ellerman , Nicholas Piggin , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v4 00/17] powerpc/85xx: p2020: Create one unified machine description Message-ID: <20230222182232.uiiwy5pd5n5xc5kl@pali> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 22 February 2023 15:42:47 Christophe Leroy wrote: > This patch series unifies all P2020 boards and machine descriptions into > one generic unified P2020 machine description. With this generic machine > description, kernel can boot on any P2020-based board with correct DTS > file. > > Tested on CZ.NIC Turris 1.1 board with has Freescale P2020 processor. > Kernel during booting correctly detects P2020 and prints: > [ 0.000000] Using Freescale P2020 machine description > > Changes in v4: > * Added several preparatory cleanup patchs > * Minimised churn by not duplicating helpers at the first place > * Split main patch in two > * Dropped patchs 1 and 2 > * Untested beyond basic build test Changes looks good. I'm happy with them. You can add my: Reviewed-by: Pali Rohár > Changes in v3: > * Use 'if (IS_ENABLED(CONFIG_PPC_I8259))' instead of '#ifdef CONFIG_PPC_I8259' > * Simplify p2020_probe() > * Patches generated by -M and -C git options > > Link to v2: https://lore.kernel.org/linuxppc-dev/20221224211425.14983-1-pali@kernel.org/ > > Changes in v2: > * Added patch "p2020: Move i8259 code into own function" (separated from the next one) > * Renamed CONFIG_P2020 to CONFIG_PPC_P2020 > * Fixed descriptions > > Link to v1: https://lore.kernel.org/linuxppc-dev/20220819191557.28116-1-pali@kernel.org/ > > Christophe Leroy (9): > powerpc/fsl_uli1575: Misc cleanup > powerpc/85xx: Rename setup_arch and pic_init on p1023 > powerpc/85xx: Remove DBG() macro > powerpc/85xx: Remove #ifdefs CONFIG_PCI in mpc85xx_ds > powerpc/85xx: mpc85xx_{ds/rdb} compact the call to mpic_alloc() > powerpc/85xx: mpc85xx_{ds/rdb} replace BUG_ON() by WARN_ON() > powerpc/85xx: mpc85xx_{ds/rdb} replace prink by pr_xxx macro > powerpc/85xx: Remove #ifdefs CONFIG_PPC_I8259 in mpc85xx_ds > powerpc/85xx: Remove #ifdef CONFIG_QUICC_ENGINE in mpc85xx_rdb > > Pali Rohár (8): > powerpc/85xx: p2020: Move all P2020 DS machine descriptions to p2020.c > powerpc/85xx: p2020: Move all P2020 RDB machine descriptions to > p2020.c > powerpc/85xx: p2020: Move i8259 code into own function > powerpc/85xx: mpc85xx_ds: Move PCI code into own file > powerpc/85xx: p2020: Unify .setup_arch and .init_IRQ callbacks > powerpc/85xx: p2020: Define just one machine description > powerpc/85xx: p2020: Enable boards by new config option > CONFIG_PPC_P2020 > powerpc: dts: turris1x.dts: Remove "fsl,P2020RDB-PC" compatible string > > arch/powerpc/boot/dts/turris1x.dts | 2 +- > arch/powerpc/include/asm/ppc-pci.h | 2 + > arch/powerpc/platforms/85xx/Kconfig | 22 +++- > arch/powerpc/platforms/85xx/Makefile | 5 +- > arch/powerpc/platforms/85xx/mpc85xx.h | 12 ++ > arch/powerpc/platforms/85xx/mpc85xx_8259.c | 78 ++++++++++++ > arch/powerpc/platforms/85xx/mpc85xx_ds.c | 133 ++------------------- > arch/powerpc/platforms/85xx/mpc85xx_mds.c | 7 -- > arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 79 ++---------- > arch/powerpc/platforms/85xx/mpc85xx_uli.c | 64 ++++++++++ > arch/powerpc/platforms/85xx/p1023_rdb.c | 8 +- > arch/powerpc/platforms/85xx/p2020.c | 95 +++++++++++++++ > arch/powerpc/platforms/fsl_uli1575.c | 6 +- > 13 files changed, 301 insertions(+), 212 deletions(-) > create mode 100644 arch/powerpc/platforms/85xx/mpc85xx_8259.c > create mode 100644 arch/powerpc/platforms/85xx/mpc85xx_uli.c > create mode 100644 arch/powerpc/platforms/85xx/p2020.c > > -- > 2.39.1 >