From patchwork Mon Dec 13 11:16:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12673735 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 6601FC433EF for ; Mon, 13 Dec 2021 11:16:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234790AbhLMLQ6 (ORCPT ); Mon, 13 Dec 2021 06:16:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234651AbhLMLQ6 (ORCPT ); Mon, 13 Dec 2021 06:16:58 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 951E0C061574; Mon, 13 Dec 2021 03:16:57 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id o19-20020a1c7513000000b0033a93202467so11322760wmc.2; Mon, 13 Dec 2021 03:16:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6tvsq9PQVOB3boi9DaPr6RuQZlSBlTyb22EILAwFlVs=; b=o2IdNvYXhNDBUeC44I0ZO8K55z3IbopsKdORLeovJhGS3UnZTVdSab8xraf6Cahvus RQ3bY1udAB2PkEDePgrf68cHmHqKK5onLdJ+fuuCigBrk3u/z8oQuWB/9ZZEK6bZXfwk bxfRsEDSIhLSpfrBHUflg2X+V+8YC/LFJMUAoxbjOqYDppB8g6uNSgcgAlwaNHc6FXCq Qf2170dEjWo7UTDnJiDphJ476BwN5En3i/SHottg1Om2agQpn5mLUwPGW4cDmd1AiDME hCHgEp/zxQfqFzYL+Or1zeQijwLiXg0c4k0IxI+/b+ujSQCsby/78PILGwa6iMKnakQR jS8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6tvsq9PQVOB3boi9DaPr6RuQZlSBlTyb22EILAwFlVs=; b=JX0imn6D759ASF7XUHYj3LnpwUj1ba8z9l0FNPxa6FHeVygjJJ4V8v5tbc/jm8O0Ve LulLuCwjC1ByQKX+PaKjWSDAfPlhRXW/pKOclIUqRIvkWTVu+k9H5CprhZUu0gcjOalu hZscYVGS60C3t5vgL7dBhHePmH+WlbIMcCO32wbmk3jC3dS22k9tErb5PnuvlgYHqxgZ zrNXY7U8PfRgk85f8H+g8WFq2g6U3YT2aVPp4WRQZxDJQJ/fyQl/iNQJY/2ZY6sgU/Fy QJVtfM/XuSc5QAj7x43dpw/jnsh2DlhZs75JK1/8xf+KeO2W2HSlCaFRMDnqh6p20fSJ TjrQ== X-Gm-Message-State: AOAM5309IfVvLvLTWitmfN4z9QthXvhpoLQoNMjMOLSfto3Fo5dwM9xR 4BvGJApgW/as7vc39ZdxLvA2oO8h/Yo= X-Google-Smtp-Source: ABdhPJyqBeB+HUzUzBpC05hE5Sxry91dWZ1bJyQl7ITT4MESCZGAtBpminw+dPvAygV03Y/9MziSgw== X-Received: by 2002:a7b:cbc3:: with SMTP id n3mr36575153wmi.90.1639394216171; Mon, 13 Dec 2021 03:16:56 -0800 (PST) Received: from DEL01603w.ebgroup.elektrobit.com (eth1-fw1-nbg6.eb.noris.de. [213.95.148.172]) by smtp.gmail.com with ESMTPSA id t17sm7255255wmq.15.2021.12.13.03.16.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 03:16:55 -0800 (PST) From: Lukas Bulwahn To: Thomas Bogendoerfer , linux-mips@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, "Maciej W . Rozycki" , Sander Vanheule , Bert Vermeulen , Alexey Malahov , Serge Semin , Paul Burton , Daniel Silsby , Paul Cercueil , Lukas Bulwahn Subject: [PATCH 1/9] mips: drop selecting the non-existing config SYS_HAS_EARLY_PRINTK_8250 Date: Mon, 13 Dec 2021 12:16:34 +0100 Message-Id: <20211213111642.11317-2-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211213111642.11317-1-lukas.bulwahn@gmail.com> References: <20211213111642.11317-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Commit 4042147a0cc6 ("MIPS: Add Realtek RTL838x/RTL839x support as generic MIPS system") introduces config MACH_REALTEK_RTL, which selects the non-existing config SYS_HAS_EARLY_PRINTK_8250. As the MACH_REALTEK_RTL config also selects SYS_HAS_EARLY_PRINTK and USE_GENERIC_EARLY_PRINTK_8250, an early printk with 8250 should be covered. Probably SYS_HAS_EARLY_PRINTK_8250 is just some left-over from an early draft version of this commit. Drop selecting the non-existing config SYS_HAS_EARLY_PRINTK_8250. Fixes: 4042147a0cc6 ("MIPS: Add Realtek RTL838x/RTL839x support as generic MIPS system") Signed-off-by: Lukas Bulwahn Acked-by: Sander Vanheule --- arch/mips/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 00951bfdbab0..c89ce68d9580 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -640,7 +640,6 @@ config MACH_REALTEK_RTL select SYS_SUPPORTS_MULTITHREADING select SYS_SUPPORTS_VPE_LOADER select SYS_HAS_EARLY_PRINTK - select SYS_HAS_EARLY_PRINTK_8250 select USE_GENERIC_EARLY_PRINTK_8250 select BOOT_RAW select PINCTRL From patchwork Mon Dec 13 11:16:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12673737 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 69FF0C433EF for ; Mon, 13 Dec 2021 11:17:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234651AbhLMLRD (ORCPT ); Mon, 13 Dec 2021 06:17:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234826AbhLMLRD (ORCPT ); Mon, 13 Dec 2021 06:17:03 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17AC7C06173F; Mon, 13 Dec 2021 03:17:03 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id m25-20020a7bcb99000000b0033aa12cdd33so10686322wmi.1; Mon, 13 Dec 2021 03:17:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dAImPKKHaAYwlUU7qMVUHA3q/9QaJM2yKtO0MluHZcY=; b=DuhiwHVXmDCroXicHe6YOt/c46mbgZtuqtk/R/pzpdfPrG/AI0ipWBI9X6pp0W4Dey GrkWw8Nn7jT7FbkXmn9Lhr4ea5/y4k/MSSZ5m3p3hpd2zxHQ28tH4O1fupk4tfpGwR4b jziMLOYSUksrcgzt35GZuUHdJVT+o/ZnnXjkK0F2zlmBZfojwuzbMenYL6gtf22VN6cG XvUNJcNbtX4wQ5VRJa1pZEamVjndXxkBGLt2BEpEixgS98f7S78Dcr41Bo3EzZ638YQr FcVCLYELT/OCIohd6YDNU3FKfRY0rrmXKjVzSwQocYKX702470uUDEbPAPrxuB3LFblM pMXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dAImPKKHaAYwlUU7qMVUHA3q/9QaJM2yKtO0MluHZcY=; b=h8H0WYhyLv41F706rFlMAXTdayUHerVai5tq46iMqInuHIdyA10MQd0mGrWajHh+oA UVCmtWsIpaBRJwYJ0z1EyJx78s1hZ3f2Qx4yfTqlLadQ8pRi7JDf6/gBwcwvDUaEen4M WFTi2GPHmn0DMkKN3UiuIKvwTWEUd1bkMyrKLAtiZGqjkCGtuO8Kiu8TgFFoIUauk5ze E1XIz38fM4oezE5XitJ4dilnZ8KQmXbZlLXx3WgK+G1C5eOZYCUCvrmApwWvxygco6Xa rscd808BTPiXON+OQJu4ou/WMkYicami/FkHi9P/m+rGK8xeU7riypj2U3MWAHzjD99F Rd6A== X-Gm-Message-State: AOAM533ror7QTHGGj8Y7ax/Kfm9coqhJk2l3pczh6SLOvkIrBBZjMD8R ExLutkNUI+RCL4zFrkVjgt0= X-Google-Smtp-Source: ABdhPJxYwbe/DhF5e5KPoK5EFW8X9bM0oJbG8/rvhDucAIHWBtCDWz0jnEJ7zTVVrPxM3rVySjSWkQ== X-Received: by 2002:a1c:4e17:: with SMTP id g23mr38568800wmh.158.1639394221607; Mon, 13 Dec 2021 03:17:01 -0800 (PST) Received: from DEL01603w.ebgroup.elektrobit.com (eth1-fw1-nbg6.eb.noris.de. [213.95.148.172]) by smtp.gmail.com with ESMTPSA id t17sm7255255wmq.15.2021.12.13.03.17.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 03:17:01 -0800 (PST) From: Lukas Bulwahn To: Thomas Bogendoerfer , linux-mips@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, "Maciej W . Rozycki" , Sander Vanheule , Bert Vermeulen , Alexey Malahov , Serge Semin , Paul Burton , Daniel Silsby , Paul Cercueil , Lukas Bulwahn Subject: [PATCH 2/9] mips: add SYS_HAS_CPU_MIPS64_R5 config for MIPS Release 5 support Date: Mon, 13 Dec 2021 12:16:35 +0100 Message-Id: <20211213111642.11317-3-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211213111642.11317-1-lukas.bulwahn@gmail.com> References: <20211213111642.11317-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Commit ab7c01fdc3cf ("mips: Add MIPS Release 5 support") adds the two configs CPU_MIPS32_R5 and CPU_MIPS64_R5, which depend on the corresponding SYS_HAS_CPU_MIPS32_R5 and SYS_HAS_CPU_MIPS64_R5, respectively. The config SYS_HAS_CPU_MIPS32_R5 was already introduced with commit c5b367835cfc ("MIPS: Add support for XPA."); the config SYS_HAS_CPU_MIPS64_R5, however, was never introduced. Hence, ./scripts/checkkconfigsymbols.py warns: SYS_HAS_CPU_MIPS64_R5 Referencing files: arch/mips/Kconfig, arch/mips/include/asm/cpu-type.h Add the definition for config SYS_HAS_CPU_MIPS64_R5 under the assumption that SYS_HAS_CPU_MIPS64_R5 follows the same pattern as the existing SYS_HAS_CPU_MIPS32_R5 and SYS_HAS_CPU_MIPS64_R6. Fixes: ab7c01fdc3cf ("mips: Add MIPS Release 5 support") Signed-off-by: Lukas Bulwahn --- arch/mips/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index c89ce68d9580..878affb643e4 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1905,6 +1905,10 @@ config SYS_HAS_CPU_MIPS64_R1 config SYS_HAS_CPU_MIPS64_R2 bool +config SYS_HAS_CPU_MIPS64_R5 + bool + select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT + config SYS_HAS_CPU_MIPS64_R6 bool select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT From patchwork Mon Dec 13 11:16:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12673739 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 EC416C433F5 for ; Mon, 13 Dec 2021 11:17:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234782AbhLMLRF (ORCPT ); Mon, 13 Dec 2021 06:17:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234867AbhLMLRE (ORCPT ); Mon, 13 Dec 2021 06:17:04 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26502C061574; Mon, 13 Dec 2021 03:17:04 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id t18so26352031wrg.11; Mon, 13 Dec 2021 03:17:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LUAYxxpwP4VzmElxPUszA36SDJfJVj0YidB6rQcDXBA=; b=mDI8lRHnPoZAkQFrvWFGba0482YL71LNhCPJMAjd22pf0utqTt7Ywk+zbe72mLM+HQ TeEKC1fTmb8pOqCsnXcapWSbjGic/WlhcTqymIQ2Itu0ee40pXUhQejbMksrl5CDclJx i0OeKK4RaLmelGQymwASn8RpANgV68X0xlhKK+9lQ7I8UvYib5czKUBgkndXjRhY272v phuJtjt0tWeaJp2zHUcMiCYyC8jc51zSLXV6+yBkvpkEHPlZnR7uPYdJhzyd6MalZMwb FGbFU2xNaC2aNbRYhDTQVDqjA8Lcxfo+9IRox4S03NevA6O3VhebQJRGpmEt/RJeEMlC QCsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LUAYxxpwP4VzmElxPUszA36SDJfJVj0YidB6rQcDXBA=; b=2/KWtINVccYeMCWxaDKz2Ov0QwRZBBvX0oMzkdAnY2ViypnLFg9DHrwEJGD0Czs9DP ZRvdMP+elE901EzGFWME66juGlznOmW11vfUUEVH/nZ/EHq7QYES5cIm8MXYvmbyZnIf fU2IR6bccU9OF/TFDPAXrL/Eye2ElDQLj2oYdXgvQaOb4r8EShrxR2JU4wA7+b2VWT/z u9TwKRhn6r0nUilJtb8GvZiJ3A5ik6Z+nye5BKlOKNbahJaYCjPFcB+C6w/mICxiT66Z UBRdpxmvnUymb5Rf8QvEXZWJcQHKm8MxTEwcrWC31TPhXjjA+QcziiekjM2OrMJRX2Tz BHuQ== X-Gm-Message-State: AOAM533adtbD0EROkiJIcbzL6j3zt4NwIFVKAk2ZfKTSL7OPbDuWWnZY 2Fv8wGugtIXetcWjk7oc3mg= X-Google-Smtp-Source: ABdhPJyC9JHDyXVeUQVDB2kJwJVKcOTb419RMzO3fzUp5Xu7rd2b/BirFVA141GWyvzUNbAejIePbw== X-Received: by 2002:a5d:648d:: with SMTP id o13mr16110909wri.637.1639394222618; Mon, 13 Dec 2021 03:17:02 -0800 (PST) Received: from DEL01603w.ebgroup.elektrobit.com (eth1-fw1-nbg6.eb.noris.de. [213.95.148.172]) by smtp.gmail.com with ESMTPSA id t17sm7255255wmq.15.2021.12.13.03.17.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 03:17:02 -0800 (PST) From: Lukas Bulwahn To: Thomas Bogendoerfer , linux-mips@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, "Maciej W . Rozycki" , Sander Vanheule , Bert Vermeulen , Alexey Malahov , Serge Semin , Paul Burton , Daniel Silsby , Paul Cercueil , Lukas Bulwahn Subject: [PATCH 3/9] mips: drop selecting non-existing config NR_CPUS_DEFAULT_2 Date: Mon, 13 Dec 2021 12:16:36 +0100 Message-Id: <20211213111642.11317-4-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211213111642.11317-1-lukas.bulwahn@gmail.com> References: <20211213111642.11317-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Commit c5eaff3e857e ("MIPS: Kconfig: Drop obsolete NR_CPUS_DEFAULT_{1,2} options") removed the config NR_CPUS_DEFAULT_2, as with this commit, the NR_CPUS default value is 2. Commit 7505576d1c1a ("MIPS: add support for SGI Octane (IP30)") introduces the config SGI_IP30, which selects the removed config NR_CPUS_DEFAULT_2, but this has actually no effect. Fortunately, NR_CPUS defaults to 2 when there is no specific NR_CPUS_DEFAULT_* config selected. So, the effect of the intended 'select NR_CPUS_DEFAULT_2' is achieved without further ado. Drop selecting the non-existing config NR_CPUS_DEFAULT_2. The issue was identified with ./scripts/checkkconfigsymbols.py. Fixes: 7505576d1c1a ("MIPS: add support for SGI Octane (IP30)") Signed-off-by: Lukas Bulwahn --- arch/mips/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 878affb643e4..e329214ac06c 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -763,7 +763,6 @@ config SGI_IP30 select HAVE_PCI select IRQ_MIPS_CPU select IRQ_DOMAIN_HIERARCHY - select NR_CPUS_DEFAULT_2 select PCI_DRIVERS_GENERIC select PCI_XTALK_BRIDGE select SYS_HAS_EARLY_PRINTK From patchwork Mon Dec 13 11:16:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12673741 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 B4EF4C433FE for ; Mon, 13 Dec 2021 11:17:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234867AbhLMLRI (ORCPT ); Mon, 13 Dec 2021 06:17:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234885AbhLMLRF (ORCPT ); Mon, 13 Dec 2021 06:17:05 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2446DC061574; Mon, 13 Dec 2021 03:17:05 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id t9so26407644wrx.7; Mon, 13 Dec 2021 03:17:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mHBBE8+l46O+iEZZyPl8/vI38kRLjbuHmhUW5ho+bYM=; b=aaDiIurDYLSXqQnGeRVGq7DDD/Tj4EVYBJbXtfOzG9Ze3wMs1ck28mHYnXXAhYb61o xnJM6xdkFx/VX+xwsYRJNbXukKzyQan7SB2LB/hUkTFCvLMGHDu+jpyPbc294uoerdDC fY/9N1QDjv5qWK4nSOUrSWfe0lduHLnHc1XMWDPdKT6dIc/91oOPjz8YcDWy9aQsNhC+ ovYQMwHHTqfRy2LhEkJk94igu76kotOPyBu43Q30WDrMlsI6svr/cYK1PgNkWnmOq16I qto/MV8WEJh+7GQRLw28ecORyYMB9uFfZ2NqMN8ZdIlNjrSDuLjn0gbLZtkIfKZTTv0i xZEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mHBBE8+l46O+iEZZyPl8/vI38kRLjbuHmhUW5ho+bYM=; b=MTdkg9hSP1wG+96vZxROOoJ02uNJ+0AtZaVW+l+Z2D6cy2etbH3hWKTxEkXNgyYSzr DpLRc2VKAdiSc3RGB+pP+IBBcG2i0J/vPD50LB1qXtx6LyYFVqGTOkRY70BotgzuZxPU y5rW5vUqs8s6kidYuNdFcFkKusEltP8b8BnhKt0h5aMbhJZ+M5F9CRwGVYinAeD03E2p 7HIYrHgrM68n4QU4N37JytA/V4F9cz3NZMkbvbPCuqROSwc4GTikjPeuIGRFoVst8j1x J+tQAf8xFek6zeK4Kv8jmnmXoFnVqz/qQNX869QtiWkCXf3FEsSfLzZi6VTEpA1rKA11 iSEA== X-Gm-Message-State: AOAM532mUaKI/UYJqXXyF+SMIsoucDp/TWAXzYlNaZh56LusGqloLdgT i8v7g1O7rkJLKlq5x9HoMS5wxDdKoIg= X-Google-Smtp-Source: ABdhPJzUY5wqFlVdodF92RCx2vdH/tYLUvLMzcixAq0aahNeJmZkKcyo9Mm1OzW0MkZ0bMbI6f4Kdg== X-Received: by 2002:a5d:4b8a:: with SMTP id b10mr31483819wrt.413.1639394223655; Mon, 13 Dec 2021 03:17:03 -0800 (PST) Received: from DEL01603w.ebgroup.elektrobit.com (eth1-fw1-nbg6.eb.noris.de. [213.95.148.172]) by smtp.gmail.com with ESMTPSA id t17sm7255255wmq.15.2021.12.13.03.17.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 03:17:03 -0800 (PST) From: Lukas Bulwahn To: Thomas Bogendoerfer , linux-mips@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, "Maciej W . Rozycki" , Sander Vanheule , Bert Vermeulen , Alexey Malahov , Serge Semin , Paul Burton , Daniel Silsby , Paul Cercueil , Lukas Bulwahn Subject: [PATCH 4/9] mips: dec: provide the correctly capitalized config CPU_R4X00 in init error message Date: Mon, 13 Dec 2021 12:16:37 +0100 Message-Id: <20211213111642.11317-5-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211213111642.11317-1-lukas.bulwahn@gmail.com> References: <20211213111642.11317-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org The config for MIPS R4000-series processors is named CPU_R4X00 with upper-case X, not CPU_R4x00 as the error message suggests. Hence, ./scripts/checkkconfigsymbols.py reports this invalid reference: CPU_R4x00 Referencing files: arch/mips/dec/prom/init.c When human users encounter this error message, they probably just deal with this minor discrepancy; so, the spelling never was a big deal here. Still, the script ./scripts/checkkconfigsymbols.py has been quite useful to identify a number of bugs with Kconfig symbols and deserves to be executed and checked regularly. So, repair the error message to reduce the reports made the script and simplify to use this script, as new issues are easier to spot when the list of reports is shorter. Signed-off-by: Lukas Bulwahn --- arch/mips/dec/prom/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/dec/prom/init.c b/arch/mips/dec/prom/init.c index cc988bbd27fc..cb12eb211a49 100644 --- a/arch/mips/dec/prom/init.c +++ b/arch/mips/dec/prom/init.c @@ -113,7 +113,7 @@ void __init prom_init(void) if ((current_cpu_type() == CPU_R4000SC) || (current_cpu_type() == CPU_R4400SC)) { static const char r4k_msg[] __initconst = - "Please recompile with \"CONFIG_CPU_R4x00 = y\".\n"; + "Please recompile with \"CONFIG_CPU_R4X00 = y\".\n"; printk(cpu_msg); printk(r4k_msg); dec_machine_halt(); From patchwork Mon Dec 13 11:16:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12673743 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 A4580C433F5 for ; Mon, 13 Dec 2021 11:17:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234967AbhLMLRJ (ORCPT ); Mon, 13 Dec 2021 06:17:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234772AbhLMLRG (ORCPT ); Mon, 13 Dec 2021 06:17:06 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21485C061574; Mon, 13 Dec 2021 03:17:06 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id i8-20020a7bc948000000b0030db7b70b6bso13769517wml.1; Mon, 13 Dec 2021 03:17:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qU1UBVrn4PcqYz3gmC7srrln/dlA5hxmpnlorvZMQn8=; b=hx49G9pOHE8U63mXCkRA+DsbcuWa3XBPY5tYcSD+Pr/UN+IoTMyONu0iJO5TwqvW2x ab8WdmNrvI4Fmm90rJdyM3VmR+wBJxXwj8nplzmKS7/hhYeoxwmmswKU/6rzQ0RjG+Zn NuCuzC7UtYjd/643MsHuYiTrzKNG8eCOULWcjs1crL1XQ/btuXIKH+ncKkLfKiBmgxjj h9z94qzpOutfC8gDs89TPQLus731OIVaS8hOm8LL1WzEF1P4ccw6mBG2pScNE/j/dMxq GhkIQ4emeij+AakhUwPXusFng5HJxmzaFEv335EoW7DkF467K2qBFglv4OpN9XM0o9S9 XJLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qU1UBVrn4PcqYz3gmC7srrln/dlA5hxmpnlorvZMQn8=; b=3gsMCUxTo4TtRpa5lO0MULhfWAXodcIXrfy7fd56fmVh4SWSMQQdkzz2Oy6EurL2ou 4md1WHWUFK1NIqiS/bYT0o+okQAF4Blkb7m96zuzeLJevJpc/Q7VgDtoJDUi4zrftcH3 U/quO6yzidAgYWnfX8v9Pr0fxDzOBEKopk6HE/nTvKxULXuD0RSvm+Lc8jenSN5Va9SI ue57OISJ7ay7w1+V3xBfmgH5m/sNtYuStjM9TlXu/s+H1ytCzpcduPfSuKG6oJr+tS+T lyEJmdq1/sliLABf10CxKozJQ+JVXzWBzBkff8lqMPdfXK3T+s2fGINr5Dn7Xx2/fGRB wUGQ== X-Gm-Message-State: AOAM5314B2gQO0As8YMN7aHGeiIvKMBBNAm/wq61ioMlCGsr48OpdzGY KEuxNd5e4ABXiR/AmERU+XA= X-Google-Smtp-Source: ABdhPJzB3IIVAx23ZARxDyIUmTdRWd4eQEsNSd0G9brti2OloW6k3iN52nCu79cq/P/jOmFPIKsPrg== X-Received: by 2002:a1c:f018:: with SMTP id a24mr37971568wmb.51.1639394224608; Mon, 13 Dec 2021 03:17:04 -0800 (PST) Received: from DEL01603w.ebgroup.elektrobit.com (eth1-fw1-nbg6.eb.noris.de. [213.95.148.172]) by smtp.gmail.com with ESMTPSA id t17sm7255255wmq.15.2021.12.13.03.17.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 03:17:04 -0800 (PST) From: Lukas Bulwahn To: Thomas Bogendoerfer , linux-mips@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, "Maciej W . Rozycki" , Sander Vanheule , Bert Vermeulen , Alexey Malahov , Serge Semin , Paul Burton , Daniel Silsby , Paul Cercueil , Lukas Bulwahn Subject: [PATCH 5/9] mips: kgdb: adjust the comment to the actual ifdef condition Date: Mon, 13 Dec 2021 12:16:38 +0100 Message-Id: <20211213111642.11317-6-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211213111642.11317-1-lukas.bulwahn@gmail.com> References: <20211213111642.11317-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org The comment refers to CONFIG_CPU_32BIT, but the ifdef uses CONFIG_32BIT. As this ifdef and comment was introduced with initial mips-kgdb commit 8854700115ec ("[MIPS] kgdb: add arch support for the kernel's kgdb core"), it is probably just a minor issue that was overlooked during the patch creation and refactoring before submission. This inconsistency was identified with ./scripts/checkkconfigsymbols.py. This script has been quite useful to identify a number of bugs with Kconfig symbols and deserves to be executed and checked regularly. So, adjust the comment to the actual ifdef condition to reduce the reports made the script and simplify to use this script, as new issues are easier to spot when the list of reports is shorter. Signed-off-by: Lukas Bulwahn --- arch/mips/include/asm/kgdb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/include/asm/kgdb.h b/arch/mips/include/asm/kgdb.h index 4f2302267deb..b4e210d633c2 100644 --- a/arch/mips/include/asm/kgdb.h +++ b/arch/mips/include/asm/kgdb.h @@ -18,7 +18,7 @@ #ifdef CONFIG_32BIT #define KGDB_GDB_REG_SIZE 32 #define GDB_SIZEOF_REG sizeof(u32) -#else /* CONFIG_CPU_32BIT */ +#else /* CONFIG_32BIT */ #define KGDB_GDB_REG_SIZE 64 #define GDB_SIZEOF_REG sizeof(u64) #endif From patchwork Mon Dec 13 11:16:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12673745 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 50196C433F5 for ; Mon, 13 Dec 2021 11:17:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235022AbhLMLRK (ORCPT ); Mon, 13 Dec 2021 06:17:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234940AbhLMLRH (ORCPT ); Mon, 13 Dec 2021 06:17:07 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 165B1C061574; Mon, 13 Dec 2021 03:17:07 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id t18so26352266wrg.11; Mon, 13 Dec 2021 03:17:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Gh9g/hVG0rI1N3VHk0OoCcX2tUyzmtEm7HZfLqJJLcw=; b=cKg6PG4deGYG1ySeSu+L6jhx+0yzcAhyzrNyzJqrEcpm34L/1CkGJTo6JPNvXGPzri Cjsrwma9kdXHUMjPLj7XXLsz5n0i0pQ1uUOLqVq5Uk+jx3+2J2l9402eLFpzXhF+qWxJ bJJwOnnj6yef5NHX5IwGyk65ff0PGzPPi05/ro+nnnT+QIcnxClHFNQ8zAbAwxxn5WmD Pg6owOaGATZTKLfenpBEsBcza6GMON2/hrfTEyIhfNp/LQB/8uz1HcP+olUOgAh5KyeZ 9r4H7VIHRlZTB46w5LVRbOVk5DZr9nl91Wcz8gUujbdGFumh3ab52z+3gqGYtRbh0wzP W0Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Gh9g/hVG0rI1N3VHk0OoCcX2tUyzmtEm7HZfLqJJLcw=; b=MoHS+IkUyUzLOKLHLZM36CJEusVaEbFJioQJu4hfgPN/6LSAsdTjrqZJl6Ymhb15wr 4qW06xBYw8HFFRWPGXZ6E63U1S3WYdRT/aVK3mJcPuhma0NeyO95lxuGmSSn7rFft+vX mDg+zz11t9E9QSWC8aJQg504d+vuz+dLojZ5vDCqGVmYSPkZDYETUuAyA+qT6VL8/cIB LWrN0aLM6i06hwOh6Xac3O9GhqgJlf8nK1YgfWfUhqRUrayQ2MEhsb8qSATZzLkm/YFx AGE9Z84zYAPO3U6pi2ZXpXAA+EqBcndJyzuHrwrWJrTrNsvFtMMGD5hxeAjXW5TCYc5N GjjQ== X-Gm-Message-State: AOAM530AuhKWQPjZTYQ+0R9Na2sFmDmPKd52dsX6oMCpddlbYxI/g8nm ws3xBn2aXQ+j+t3s5x1TtUE= X-Google-Smtp-Source: ABdhPJzm1nLrJ12FEr0D8rL1q1mdBsYPVDdt6zlyZvkfjv+fpgOZVmeD9v4TrqkzatT8SDIrKx++ew== X-Received: by 2002:a5d:4c51:: with SMTP id n17mr15572370wrt.359.1639394225704; Mon, 13 Dec 2021 03:17:05 -0800 (PST) Received: from DEL01603w.ebgroup.elektrobit.com (eth1-fw1-nbg6.eb.noris.de. [213.95.148.172]) by smtp.gmail.com with ESMTPSA id t17sm7255255wmq.15.2021.12.13.03.17.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 03:17:05 -0800 (PST) From: Lukas Bulwahn To: Thomas Bogendoerfer , linux-mips@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, "Maciej W . Rozycki" , Sander Vanheule , Bert Vermeulen , Alexey Malahov , Serge Semin , Paul Burton , Daniel Silsby , Paul Cercueil , Lukas Bulwahn Subject: [PATCH 6/9] mips: remove obsolete selection of CPU_HAS_LOAD_STORE_LR Date: Mon, 13 Dec 2021 12:16:39 +0100 Message-Id: <20211213111642.11317-7-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211213111642.11317-1-lukas.bulwahn@gmail.com> References: <20211213111642.11317-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Commit 18d84e2e55b6 ("MIPS: make CPU_HAS_LOAD_STORE_LR opt-out") replaced the config CPU_HAS_LOAD_STORE_LR by the config with an inverted semantics, making the "LOAD_STORE_LR" cpu configuration the default. The ./arch/mips/Kconfig was adjusted accordingly. Later, commit 65ce6197ed40 ("Revert "MIPS: Remove unused R4300 CPU support"") reintroduces a select CPU_HAS_LOAD_STORE_LR through its revert commit, restoring the config CPU_R4300 in ./arch/mips/Kconfig before the refactoring above. This select however now refers to a non-existing config and is further unneeded, as LOAD_STORE_LR is the default now. Remove the obsolete select for the reintroduced mips R4300 architecture. This issue is identified with ./scripts/checkkconfigsymbols.py. Signed-off-by: Lukas Bulwahn --- arch/mips/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index e329214ac06c..dafc1d62c224 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1608,7 +1608,6 @@ config CPU_R4300 depends on SYS_HAS_CPU_R4300 select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_64BIT_KERNEL - select CPU_HAS_LOAD_STORE_LR help MIPS Technologies R4300-series processors. From patchwork Mon Dec 13 11:16:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12673751 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 66F55C433F5 for ; Mon, 13 Dec 2021 11:17:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234981AbhLMLRT (ORCPT ); Mon, 13 Dec 2021 06:17:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234949AbhLMLRI (ORCPT ); Mon, 13 Dec 2021 06:17:08 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23446C061574; Mon, 13 Dec 2021 03:17:08 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id r9-20020a7bc089000000b00332f4abf43fso10708429wmh.0; Mon, 13 Dec 2021 03:17:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uMRBfgWTYGWrAoh1xYDEsd3By2T32yUhl9tQpBijeUw=; b=P8KULp4RxAz/ZT3rc5HBAu6BiRCKUwkHxSWSabJl6DUuHUToGmquWXEu0dmZjTSdEx p58Z2hLKMJI5qfFo06+WZfEidkd9apgHIGq2nugu4cqCfEh0jmhX/C79kp8Hq+fwqYOn JJS2J7BviG5r+grRwCg1xKEsS0sFHr3b6BFji/ffF0FBl3FrZ5JxxwshELUZYginOLfr 3S/5V0HsimlPq2K/tem1OcjUf2Sm6OaTqqimAjiQ4mU04BG5rweeJG3l2H+qp0oZR+uA WTQsjqA5S2i2KwJwF+XBJSwOQuIfj4n9mUMmHx/RDep16pBClT75n+1+BfVTbGj8NKcK 3Esg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uMRBfgWTYGWrAoh1xYDEsd3By2T32yUhl9tQpBijeUw=; b=2DfpJF5NunM7838wRZ1udTGDCND7vRhp8qicDQF5ieRi6Yt18Y6PL2R3+iASuFAqN0 E25v8b6GC3KDlPsgpwd9yd26KlTrSNGkp/bEEVaA1a53qlLtzkATWzQTIIbgzyu+XZeZ Ds9a1Jxw+1SBQ5HqroxBJZZWdiWkwYcH5sAxSoNyXDi7Mo+3Y+eUKo/qnCQGRAq98L2a kwP0FQ3163dC9fN+JLUIoE6h9sXZfSNznX+M+XRAL2xbm8v8TtYzN+yPz59UCjiIzRRa BCtHhiPlB+Xq7e1feB+N27k3/XZjbFgL1DAsB8TH88V0EQbAjbZGmoxmhP7a7gU/piMO OLsQ== X-Gm-Message-State: AOAM533FLma7X8IKTuZpK2TxIP7pbaAGw1/xgLMklW4Q16zarLgf6sIC 6xq7UPLdxkdeuyEjDzIXQCLP6yhtjH8= X-Google-Smtp-Source: ABdhPJxRGYfYxeyJl459scyOTisugPEc2QmERThdCAzY4wLxtONPCFT8jSjVxD+jQL3W3deInk0dcQ== X-Received: by 2002:a1c:1d04:: with SMTP id d4mr35779758wmd.103.1639394226732; Mon, 13 Dec 2021 03:17:06 -0800 (PST) Received: from DEL01603w.ebgroup.elektrobit.com (eth1-fw1-nbg6.eb.noris.de. [213.95.148.172]) by smtp.gmail.com with ESMTPSA id t17sm7255255wmq.15.2021.12.13.03.17.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 03:17:06 -0800 (PST) From: Lukas Bulwahn To: Thomas Bogendoerfer , linux-mips@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, "Maciej W . Rozycki" , Sander Vanheule , Bert Vermeulen , Alexey Malahov , Serge Semin , Paul Burton , Daniel Silsby , Paul Cercueil , Lukas Bulwahn Subject: [PATCH 7/9] mips: alchemy: remove historic comment on gpio build constraints Date: Mon, 13 Dec 2021 12:16:40 +0100 Message-Id: <20211213111642.11317-8-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211213111642.11317-1-lukas.bulwahn@gmail.com> References: <20211213111642.11317-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org In ./arch/mips/alchemy/common/gpiolib.c, the comment points out certain build constraints on CONFIG_GPIOLIB and CONFIG_ALCHEMY_GPIO_INDIRECT. The commit 832f5dacfa0b ("MIPS: Remove all the uses of custom gpio.h") makes all mips machines use the common gpio.h and removes the config ALCHEMY_GPIO_INDIRECT. So, this makes the comment in alchemy's gpiolib.c historic and obsolete, and can be removed after the commit above. The issue on the reference to a non-existing Kconfig symbol was identified with ./scripts/checkkconfigsymbols.py. This script has been quite useful to identify a number of bugs with Kconfig symbols and deserves to be executed and checked regularly. So, remove the historic comment to reduce the reports made the script and simplify to use this script, as new issues are easier to spot when the list of reports is shorter. Signed-off-by: Lukas Bulwahn --- arch/mips/alchemy/common/gpiolib.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/mips/alchemy/common/gpiolib.c b/arch/mips/alchemy/common/gpiolib.c index 7d5da5edd74d..a17d7a8909c4 100644 --- a/arch/mips/alchemy/common/gpiolib.c +++ b/arch/mips/alchemy/common/gpiolib.c @@ -23,8 +23,6 @@ * 675 Mass Ave, Cambridge, MA 02139, USA. * * Notes : - * This file must ONLY be built when CONFIG_GPIOLIB=y and - * CONFIG_ALCHEMY_GPIO_INDIRECT=n, otherwise compilation will fail! * au1000 SoC have only one GPIO block : GPIO1 * Au1100, Au15x0, Au12x0 have a second one : GPIO2 * Au1300 is totally different: 1 block with up to 128 GPIOs From patchwork Mon Dec 13 11:16:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12673749 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 F05B3C43217 for ; Mon, 13 Dec 2021 11:17:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235010AbhLMLRM (ORCPT ); Mon, 13 Dec 2021 06:17:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234981AbhLMLRJ (ORCPT ); Mon, 13 Dec 2021 06:17:09 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36273C06173F; Mon, 13 Dec 2021 03:17:09 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id q3so26392986wru.5; Mon, 13 Dec 2021 03:17:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MzHXXewWvbCPeLWsiXq0T6cQlH5SjAcTgmhcmqPDqco=; b=Jkjlf6xLPEmPRoLvcEOsCr2UlOCv+lN+fGgJQmKzdbP8ej3f+FVE/NTy37c2AdZewZ d3z047dt6Vh+s9zJV/d2QTyl+hgxwPKTntHLcj0UF6WQdhUpsvSfaqBLoh/nEATU9ws7 ztURJqD6tkSZhIDeriDF+tDAqYgPYtF3bXlCYkpmwcLmHL6wv0G3NEamR9osZ9fGwAjv 6NbxyxhfLPdO5qYZok5PT+88jqFEnmwBG27A/UhQFSadSNQdWKq8USEBjYe3v4tJxLlA tmvX98O8m+Y+Y55KE0t9ljzRysnjaLBGkvJxnfhX97AXCwyOyL8sU0OaaS6h4Z1s5Bu1 mvEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MzHXXewWvbCPeLWsiXq0T6cQlH5SjAcTgmhcmqPDqco=; b=5DYnzM23TH82LUDFCO5Eu0gN1E0U699JeA5FxeH/EvCxD0jNcl+pYsy4h8k1U5iKDa UO6QYwE2DOoNG/kB55bPNxlFSVSNny7o0rb9m6IG3Bp2PY3s/8N4tz/RMd+0KHtTSAum 3aquAbv6k+pPTwPeYwE2TBQtkodR8G6XRnd7xTrtYYbXKzMgvEITJmMMh5WsC+SvMqPs UkpxMkLuyL3QIlKnRYZWMFpPSttKQjI3jgbvr0S7jfBvZsMtC3wE27CE+uOSgzx0bA5V N042hWMzTNOgBOY9hOAj24UysZWqOKYt9i0zp88+rOQA+ujAGg+UQCy/p2FjxAsYk0k2 1tBA== X-Gm-Message-State: AOAM532LjhQWx7vsKN4H/gnrSB0pLVlkataeS5bQ9sfoqG0PaJthP7HJ V+QMEgAlzJ7lDrgx+CXJVmg= X-Google-Smtp-Source: ABdhPJyIQz7Q5rXBFJuHpiGSNTI9gL8i7nxybUm3T3OGJqkuMZCsEQVhzUOSGdn7DHHBRXLezti0cg== X-Received: by 2002:a5d:648b:: with SMTP id o11mr15776677wri.633.1639394227743; Mon, 13 Dec 2021 03:17:07 -0800 (PST) Received: from DEL01603w.ebgroup.elektrobit.com (eth1-fw1-nbg6.eb.noris.de. [213.95.148.172]) by smtp.gmail.com with ESMTPSA id t17sm7255255wmq.15.2021.12.13.03.17.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 03:17:07 -0800 (PST) From: Lukas Bulwahn To: Thomas Bogendoerfer , linux-mips@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, "Maciej W . Rozycki" , Sander Vanheule , Bert Vermeulen , Alexey Malahov , Serge Semin , Paul Burton , Daniel Silsby , Paul Cercueil , Lukas Bulwahn Subject: [PATCH 8/9] mips: txx9: remove left-over for removed TXX9_ACLC configs Date: Mon, 13 Dec 2021 12:16:41 +0100 Message-Id: <20211213111642.11317-9-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211213111642.11317-1-lukas.bulwahn@gmail.com> References: <20211213111642.11317-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org The patch series "Remove support for TX49xx" (see Link) was only partially applied: The ASoC driver was removed with commit a8644292ea46 ("ASoC: txx9: Remove driver"), which was patch 10/10 from that series. The mips architecture code to be removed with patch 1/10 from that series was not applied. This partial patch series application leaves the build config setup and code in the mips architecture in a slightly unclean, intermediate state. The configs HAS_TXX9_ACLC and SND_SOC_TXX9ACLC were removed, but are still referenced in the txx9-architecture Kconfig and generic setup. The script ./scripts/checkkconfigsymbols.py warns about this: HAS_TXX9_ACLC Referencing files: arch/mips/txx9/Kconfig SND_SOC_TXX9ACLC Referencing files: arch/mips/txx9/generic/setup.c Clean up the code for those removed references. Link: https://lore.kernel.org/all/20210105140305.141401-1-tsbogend@alpha.franken.de/ Signed-off-by: Lukas Bulwahn --- arch/mips/txx9/Kconfig | 3 --- arch/mips/txx9/generic/setup.c | 28 ---------------------------- 2 files changed, 31 deletions(-) diff --git a/arch/mips/txx9/Kconfig b/arch/mips/txx9/Kconfig index a5484c284353..d9710fddac4f 100644 --- a/arch/mips/txx9/Kconfig +++ b/arch/mips/txx9/Kconfig @@ -64,7 +64,6 @@ config SOC_TX4927 select IRQ_TXX9 select PCI_TX4927 select GPIO_TXX9 - imply HAS_TXX9_ACLC config SOC_TX4938 bool @@ -74,7 +73,6 @@ config SOC_TX4938 select IRQ_TXX9 select PCI_TX4927 select GPIO_TXX9 - imply HAS_TXX9_ACLC config SOC_TX4939 bool @@ -82,7 +80,6 @@ config SOC_TX4939 imply HAS_TXX9_SERIAL select HAVE_PCI select PCI_TX4927 - imply HAS_TXX9_ACLC config TXX9_7SEGLED bool diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index 5c42da622b8b..c7c1e30e8f3b 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c @@ -835,34 +835,6 @@ void __init txx9_aclc_init(unsigned long baseaddr, int irq, unsigned int dma_chan_out, unsigned int dma_chan_in) { -#if IS_ENABLED(CONFIG_SND_SOC_TXX9ACLC) - unsigned int dma_base = dmac_id * TXX9_DMA_MAX_NR_CHANNELS; - struct resource res[] = { - { - .start = baseaddr, - .end = baseaddr + 0x100 - 1, - .flags = IORESOURCE_MEM, - }, { - .start = irq, - .flags = IORESOURCE_IRQ, - }, { - .name = "txx9dmac-chan", - .start = dma_base + dma_chan_out, - .flags = IORESOURCE_DMA, - }, { - .name = "txx9dmac-chan", - .start = dma_base + dma_chan_in, - .flags = IORESOURCE_DMA, - } - }; - struct platform_device *pdev = - platform_device_alloc("txx9aclc-ac97", -1); - - if (!pdev || - platform_device_add_resources(pdev, res, ARRAY_SIZE(res)) || - platform_device_add(pdev)) - platform_device_put(pdev); -#endif } static struct bus_type txx9_sramc_subsys = { From patchwork Mon Dec 13 11:16:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Bulwahn X-Patchwork-Id: 12673747 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 92730C433FE for ; Mon, 13 Dec 2021 11:17:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235107AbhLMLRN (ORCPT ); Mon, 13 Dec 2021 06:17:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234954AbhLMLRK (ORCPT ); Mon, 13 Dec 2021 06:17:10 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FDC5C061751; Mon, 13 Dec 2021 03:17:10 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id a9so26381017wrr.8; Mon, 13 Dec 2021 03:17:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/wqsag2uxVnTuI/QAGHRmj3exQQebAtaq7D6d3UaUwo=; b=YOWf+5In5JEHLkyH0tZKIUsbRMR8F07CsQg25aGFCI8BJKg7vOUqNabuTQHS7uyAJt YbeT/VcxSaBXA5MEeu4EWH/XYjUEfn+b2Cd5nEFgBB9V0qrd50cyI0efdw4zJnXGNTsu bGCgKApNJo+fnpRSuMeE6yZmGWy4yv9I7Uj409+5tGkZGY12/sxq3Vw7mAGZCjd9mHOJ hjnUrpmgqB24o77uBlGrbHlScJcrPKcfzWWIKLGq/egHI4keICKJO3wqH9xBhJg+2gWG 0VicSdIIAk4dg+BsCw9wCaDetG1jgapS9RRPMHbHscIyKuwhrIN+juui/RnklaV/PU/Y Fqrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/wqsag2uxVnTuI/QAGHRmj3exQQebAtaq7D6d3UaUwo=; b=sjF0oznHsXw/q/dMSPKIaUe2sFKtUGQawo5Xbv8ekjO68iQoeUXG/5yNFFpDbt8SVg yYo832H+dePxhBzuHE60tN0bQGxeAwhcMBgW6XQJ5RClWDPp2iV4SQ4HDLGwSRX0jSuP kqfgiU5axYi1K/rgc7aHZ8lbbMPeGo5rkBGwBEP9Ye56MZ6ZNPEJllUTXxfWflLlpgb9 e80vD4cZmseUZ63jClVoTIHFfCRo0YlMHknL3pRUMI0f8ZBOzBnt/BbcvLTldavtgKiH jahGqsIVzHRqSKW9JVJ6DbJe+UfQkDPrGVlyKu98xMbwzo57viP0XFvda3rhglOqtTni Y5iA== X-Gm-Message-State: AOAM531G2bV6hqHIRlZEVv9Y9l7n4OCwwYboWDecNsQSWn1UUnwwhyiq NxdjXR0CqJbDV4DcdeB2LWk= X-Google-Smtp-Source: ABdhPJzM0MwxJtfv5lacI04lRH8UZylULPttANur9UjAL92TmaH2qyu5nQ70YKy541M+4nGfrgOK0w== X-Received: by 2002:adf:8bd2:: with SMTP id w18mr29826451wra.557.1639394228763; Mon, 13 Dec 2021 03:17:08 -0800 (PST) Received: from DEL01603w.ebgroup.elektrobit.com (eth1-fw1-nbg6.eb.noris.de. [213.95.148.172]) by smtp.gmail.com with ESMTPSA id t17sm7255255wmq.15.2021.12.13.03.17.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 03:17:08 -0800 (PST) From: Lukas Bulwahn To: Thomas Bogendoerfer , linux-mips@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, "Maciej W . Rozycki" , Sander Vanheule , Bert Vermeulen , Alexey Malahov , Serge Semin , Paul Burton , Daniel Silsby , Paul Cercueil , Lukas Bulwahn Subject: [PATCH 9/9] mips: fix Kconfig reference to PHYS_ADDR_T_64BIT Date: Mon, 13 Dec 2021 12:16:42 +0100 Message-Id: <20211213111642.11317-10-lukas.bulwahn@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211213111642.11317-1-lukas.bulwahn@gmail.com> References: <20211213111642.11317-1-lukas.bulwahn@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Commit d4a451d5fc84 ("arch: remove the ARCH_PHYS_ADDR_T_64BIT config symbol") removes config ARCH_PHYS_ADDR_T_64BIT with all instances of that config refactored appropriately. Since then, it is recommended to use the config PHYS_ADDR_T_64BIT instead. Commit 171543e75272 ("MIPS: Disallow CPU_SUPPORTS_HUGEPAGES for XPA,EVA") introduces the expression "!(32BIT && (ARCH_PHYS_ADDR_T_64BIT || EVA))" for config CPU_SUPPORTS_HUGEPAGES, which unintentionally refers to the non-existing symbol ARCH_PHYS_ADDR_T_64BIT instead of the intended PHYS_ADDR_T_64BIT. Fix this Kconfig reference to the intended PHYS_ADDR_T_64BIT. This issue was identified with the script ./scripts/checkkconfigsymbols.py. I then reported it on the mailing list and Paul confirmed the mistake in the linked email thread. Link: https://lore.kernel.org/lkml/H8IU3R.H5QVNRA077PT@crapouillou.net/ Suggested-by: Paul Cercueil Fixes: 171543e75272 ("MIPS: Disallow CPU_SUPPORTS_HUGEPAGES for XPA,EVA") Signed-off-by: Lukas Bulwahn --- arch/mips/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index dafc1d62c224..affa31d055d0 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -2065,7 +2065,7 @@ config CPU_SUPPORTS_ADDRWINCFG bool config CPU_SUPPORTS_HUGEPAGES bool - depends on !(32BIT && (ARCH_PHYS_ADDR_T_64BIT || EVA)) + depends on !(32BIT && (PHYS_ADDR_T_64BIT || EVA)) config MIPS_PGD_C0_CONTEXT bool depends on 64BIT