From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f67.google.com (mail-dl1-f67.google.com [74.125.82.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B2F929898F for ; Sun, 17 May 2026 04:58:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.67 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778993934; cv=none; b=B5UYbzRCi4fgUs81PVrTKXeHmgeI6Fnt2ns76XrpAMcP26cr+QhdXqNsOHIWm6dSVvYKkfb23aUOs25S9z+ZYlK1H205xgFCOGqGZ0vnnTOY7u0gDSdo9z3Afs5+zewCVSsOioz/CoAcEE1vUeqcnGxHh0geY6G7Lufs0yXbDVE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778993934; c=relaxed/simple; bh=3Y/ExQHmpM874sXJzRTs7GT3T+TDmiYeO3BxiHRitrM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NYI1gqYIkVT4NnWUysYpPORVHpJVahnK8pOWJAjByTu2sXnhY3vMs7JuHi3d+9ofuwv/wbWgBgXKwPRzsebDeiStM1jexS0D3BfWeVYeAqFhgc0NGnZE3x1me2VsZK8Exi5/OrJMDxIVa9gEc1PhgX6XCQV6on7UT2GEQ83PySM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Og1+yK8Z; arc=none smtp.client-ip=74.125.82.67 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Og1+yK8Z" Received: by mail-dl1-f67.google.com with SMTP id a92af1059eb24-132c338a537so1445486c88.0 for ; Sat, 16 May 2026 21:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778993932; x=1779598732; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=68fzEAsJ3Cm+QlWLkcdWbs0tKgQSxg21Abj5S1Q5CD4=; b=Og1+yK8ZkxOWWF00ctxFNMpCThS3KEBKsNV22iCVuBZH02Sb8R2Zqyxi4Bj8L0s8OJ 5sXkJ6gRYfYYet/ljJcmY9839/Sosi0FIjW7ZTlnef62wofdAxeuVXQqwh7x9QQL3bgJ /T6axN5SRWh9pkylTJeN+TI+uqzd+iyx4pPFmPv0lleSTzZIFrFJeRE7GQDm44P+OZX0 kjkI1OXkLVB1pySGNw6WfSy7f6/Yc1FLM+aEbTU75svEqGtQFNCY21KjVW56djqpn+ep Et2J9pQbQGMD/zYw2AO/1cjeTahyQ1oEkBDhdpUCglGxXMilFKlitH52qtXPRHYxH9+O W/Zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778993932; x=1779598732; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=68fzEAsJ3Cm+QlWLkcdWbs0tKgQSxg21Abj5S1Q5CD4=; b=o5I3kCEkr4uwESNoPQHhB0LLD6bvk6NPWkBU82xsLnGc5GUL54AD2m1wZXJQ0FuPt5 N3cY1qxtIyXn8z9V3nKWfwaD9h7GCE0QTGKahRWsY5Z+E/aiPm+f+U5MUt/0o1/fMUYo 5JtrHB86U4m9jPtbjxJ8zwh56l0pXRANPYd+PW9TP/s/OjGXgTPy6z0eghoPXANjFOzh GP8wJLRAYSbc0B3zhAorOrzTWXFBZiv7dId5kX/lh5OO9cU/ytx0EsolRj980ggyglrl /klrF8jYaidUxsKTL+fqAYth245h+1AdrJGVng7bsnaR/mdGzRQAHAueYGQ2uOj0G2k2 2jGw== X-Forwarded-Encrypted: i=1; AFNElJ/SSxZKzC6ToLqlwztbjk/PNSaGDdsbUPAdxtmaGcRMyFSXo13xj9PgfDKPIPaWwsSjmQXpkw9NVdo7duU=@vger.kernel.org X-Gm-Message-State: AOJu0YzLDMvM9eQN6fHVzhSO4xpaY2j0kFY/KJFj7TlfV4SwMhUdcphl oJn+M9OtAbrR43hycRhRG6th6R1KzeKbU5NiUpSGKesBQbuiOjypaGes X-Gm-Gg: Acq92OFStu59zsNWvHv1mXDW4T2wm4I+pMrOIBhs4zLd0AAm377ftIh48YgrcG8XE5N C7hfHVvBKaXb4WW2nz1MLGCacq5QGDfzUUgTg/fa7g5IPH3v37TFlPeHGI44Er9X2jIx41NqWu8 agUeUbPNjhQpMmFi4lbQNy5CeBjwCgTHGTeR9gnkXoxNPBCTHlUhTKCCFV45WeKsVdrC7U4Jewb gea8uB4dWG7VzkUKlqvPKuhnoNvPyi0QSVkp7OPtVq4U+2YMoSwKAgrDkPC8vCOry1LruAw1HUH 4LQVgjooedu51SXMMRDknISZopeGDxhboBi9Fou2pLn3e3xeb/7SI/zAWyafMxuaMAy7GPeKJ+l S8nKkvGIXXqUW3tqSdqKTLQw2QFGyte4niYpkuDx0dkC4SpC7i7mhis/vB+gnNhLhS9LJeZu3go oIik8PZuj30o0mlQ5aSIYBNkShpNjIOaLYsPTnffShEfjSFE0Oh4YF1yPQHo7kx1ClW19pFkBVF EiCcL3JTtBPEZD3Bt2C0qfytW7kmhIwn3xoGT0W/w1eT5zJq7FFjNly3IWKERVEa12ZnQi0uAz6 EKk5jvEpWfqUTqrDrss1VNyqK0NE X-Received: by 2002:a05:7300:a888:b0:2f0:ee2:f6c6 with SMTP id 5a478bee46e88-30262b43a2bmr5609138eec.19.1778993931514; Sat, 16 May 2026 21:58:51 -0700 (PDT) Received: from ethan-latitude5420.. (host-127-24.cafrjco.fresno.ca.us.clients.pavlovmedia.net. [68.180.127.24]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-30293e2e6a9sm10931848eec.2.2026.05.16.21.58.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 May 2026 21:58:51 -0700 (PDT) From: Ethan Nelson-Moore To: linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Ethan Nelson-Moore , Russell King , Arnd Bergmann , Greg Kroah-Hartman , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Jiri Slaby , Wim Van Sebroeck , Guenter Roeck Subject: [PATCH] ARM: Move Footbridge-specific header into mach-footbridge Date: Sat, 16 May 2026 21:57:39 -0700 Message-ID: <20260517045804.345657-1-enelsonmoore@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit arch/arm/include/asm/hardware/dec21285.h is specific to the DC21285 Footbridge chip and should not be in the global ARM include directory. Move it into mach-footbridge where it belongs. It was included twice in arch/arm/mach-footbridge/common.c; remove one of the includes. Also remove the file path from the header (it is bad style and would become outdated) and add missing include guards. Tested by compiling footbridge_defconfig and netwinder_defconfig, modified to additionally enable CONFIG_MTD_DC21285 and CONFIG_DEBUG_FOOTBRIDGE_COM1 or CONFIG_DEBUG_DC21285_PORT, respectively (these are the only Footbridge-related options not enabled by the defconfigs). Signed-off-by: Ethan Nelson-Moore --- This patch depends on my previous patch "ARM: clean up machine-specific PCI code and move it into mach-footbridge" because it touches the same area of arch/arm/mach-footbridge/dc21285.c. MAINTAINERS | 1 - arch/arm/include/debug/dc21285.S | 2 +- arch/arm/mach-footbridge/common.c | 3 +-- arch/arm/mach-footbridge/dc21285-timer.c | 2 +- arch/arm/mach-footbridge/dc21285.c | 2 +- arch/arm/mach-footbridge/dma-isa.c | 2 +- arch/arm/mach-footbridge/ebsa285.c | 2 +- .../hardware => mach-footbridge/include/mach}/dec21285.h | 8 +++++--- arch/arm/mach-footbridge/isa-irq.c | 2 +- arch/arm/mach-footbridge/isa.c | 2 +- arch/arm/mach-footbridge/netwinder-hw.c | 2 +- drivers/char/nwflash.c | 2 +- drivers/mtd/maps/dc21285.c | 2 +- drivers/tty/serial/21285.c | 2 +- drivers/watchdog/wdt285.c | 2 +- 15 files changed, 18 insertions(+), 18 deletions(-) rename arch/arm/{include/asm/hardware => mach-footbridge/include/mach}/dec21285.h (98%) diff --git a/MAINTAINERS b/MAINTAINERS index c2c6d79275c6..37ecfe4bc4e4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2811,7 +2811,6 @@ M: Russell King L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained W: http://www.armlinux.org.uk/ -F: arch/arm/include/asm/hardware/dec21285.h F: arch/arm/mach-footbridge/ ARM/FREESCALE IMX / MXC ARM ARCHITECTURE diff --git a/arch/arm/include/debug/dc21285.S b/arch/arm/include/debug/dc21285.S index 4ec0e5e31704..c0eb58ba7d7e 100644 --- a/arch/arm/include/debug/dc21285.S +++ b/arch/arm/include/debug/dc21285.S @@ -7,7 +7,7 @@ * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks */ -#include +#include #include /* For EBSA285 debugging */ diff --git a/arch/arm/mach-footbridge/common.c b/arch/arm/mach-footbridge/common.c index 85c598708c10..d3076bf03875 100644 --- a/arch/arm/mach-footbridge/common.c +++ b/arch/arm/mach-footbridge/common.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include @@ -30,7 +29,7 @@ #include #include -#include +#include static int dc21285_get_irq(void) { diff --git a/arch/arm/mach-footbridge/dc21285-timer.c b/arch/arm/mach-footbridge/dc21285-timer.c index 2908c9ef3c9b..f5d0024783e3 100644 --- a/arch/arm/mach-footbridge/dc21285-timer.c +++ b/arch/arm/mach-footbridge/dc21285-timer.c @@ -14,7 +14,7 @@ #include -#include +#include #include #include diff --git a/arch/arm/mach-footbridge/dc21285.c b/arch/arm/mach-footbridge/dc21285.c index 5a68b6739ecf..923c808e8ba1 100644 --- a/arch/arm/mach-footbridge/dc21285.c +++ b/arch/arm/mach-footbridge/dc21285.c @@ -19,7 +19,7 @@ #include #include -#include +#include #include "pci.h" diff --git a/arch/arm/mach-footbridge/dma-isa.c b/arch/arm/mach-footbridge/dma-isa.c index 937f5376d5e7..300cdf6ef223 100644 --- a/arch/arm/mach-footbridge/dma-isa.c +++ b/arch/arm/mach-footbridge/dma-isa.c @@ -19,7 +19,7 @@ #include #include -#include +#include #define ISA_DMA_MASK 0 #define ISA_DMA_MODE 1 diff --git a/arch/arm/mach-footbridge/ebsa285.c b/arch/arm/mach-footbridge/ebsa285.c index 1cb7d674bc81..93ab333e3027 100644 --- a/arch/arm/mach-footbridge/ebsa285.c +++ b/arch/arm/mach-footbridge/ebsa285.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include #include diff --git a/arch/arm/include/asm/hardware/dec21285.h b/arch/arm/mach-footbridge/include/mach/dec21285.h similarity index 98% rename from arch/arm/include/asm/hardware/dec21285.h rename to arch/arm/mach-footbridge/include/mach/dec21285.h index 894f2a635cbb..35d10e2dcade 100644 --- a/arch/arm/include/asm/hardware/dec21285.h +++ b/arch/arm/mach-footbridge/include/mach/dec21285.h @@ -1,11 +1,13 @@ /* SPDX-License-Identifier: GPL-2.0-only */ /* - * arch/arm/include/asm/hardware/dec21285.h - * * Copyright (C) 1998 Russell King * * DC21285 registers */ + +#ifndef __MACH_DEC21285_H +#define __MACH_DEC21285_H + #define DC21285_PCI_IACK 0x79000000 #define DC21285_ARMCSR_BASE 0x42000000 #define DC21285_PCI_TYPE_0_CONFIG 0x7b000000 @@ -135,4 +137,4 @@ #define TIMER_CNTL_DIV256 (2 << 2) #define TIMER_CNTL_CNTEXT (3 << 2) - +#endif /* __MACH_DEC21285_H */ diff --git a/arch/arm/mach-footbridge/isa-irq.c b/arch/arm/mach-footbridge/isa-irq.c index 842ddb4121ef..f9231e84028d 100644 --- a/arch/arm/mach-footbridge/isa-irq.c +++ b/arch/arm/mach-footbridge/isa-irq.c @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include diff --git a/arch/arm/mach-footbridge/isa.c b/arch/arm/mach-footbridge/isa.c index 84caccddce44..a028920e8f12 100644 --- a/arch/arm/mach-footbridge/isa.c +++ b/arch/arm/mach-footbridge/isa.c @@ -8,7 +8,7 @@ #include #include -#include +#include #include "common.h" diff --git a/arch/arm/mach-footbridge/netwinder-hw.c b/arch/arm/mach-footbridge/netwinder-hw.c index c024eefd4978..bd21c455a495 100644 --- a/arch/arm/mach-footbridge/netwinder-hw.c +++ b/arch/arm/mach-footbridge/netwinder-hw.c @@ -16,7 +16,7 @@ #include #include -#include +#include #include #include #include diff --git a/drivers/char/nwflash.c b/drivers/char/nwflash.c index 9f52f0306ef7..21ac9b2df42e 100644 --- a/drivers/char/nwflash.c +++ b/drivers/char/nwflash.c @@ -29,7 +29,7 @@ #include #include -#include +#include #include #include #include diff --git a/drivers/mtd/maps/dc21285.c b/drivers/mtd/maps/dc21285.c index 70a3db3ab856..8bcb40489f4f 100644 --- a/drivers/mtd/maps/dc21285.c +++ b/drivers/mtd/maps/dc21285.c @@ -17,7 +17,7 @@ #include #include -#include +#include #include diff --git a/drivers/tty/serial/21285.c b/drivers/tty/serial/21285.c index 4de0c975ebdc..f20c2092e4a5 100644 --- a/drivers/tty/serial/21285.c +++ b/drivers/tty/serial/21285.c @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #define BAUD_BASE (mem_fclk_21285/64) diff --git a/drivers/watchdog/wdt285.c b/drivers/watchdog/wdt285.c index 78681d9f7d53..347cb2892833 100644 --- a/drivers/watchdog/wdt285.c +++ b/drivers/watchdog/wdt285.c @@ -30,7 +30,7 @@ #include #include -#include +#include /* * Define this to stop the watchdog actually rebooting the machine. -- 2.43.0