[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230210065621.598120-1-sergio.paracuellos@gmail.com>
Date: Fri, 10 Feb 2023 07:56:18 +0100
From: Sergio Paracuellos <sergio.paracuellos@...il.com>
To: linux-watchdog@...r.kernel.org
Cc: wim@...ux-watchdog.org, linux@...ck-us.net, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, matthias.bgg@...il.com,
arinc.unal@...nc9.com, tsbogend@...ha.franken.de,
p.zabel@...gutronix.de, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-mips@...r.kernel.org
Subject: [PATCH 0/3] watchdog: mt7621-wdt: avoid globals and arch dependencies
Hi all,
This series make an update in the MT7621 SoC's watchdog driver code. This
SoC already provides a system controller node to access reset status
register needed for the watchdog. Instead of using MIPS architecture
dependent operations in header 'asm/mach-ralink/ralink_regs.h' use
a phandle to the system controller node and use it through regmap APIs
from the code. Driver is also using some globals that are not needed at
all if a driver data structure is used along the code. Hence, add all
new needed stuff inside a new driver data structure. With this changes
driver can be properly compile tested.
Thanks in advance for reviewing this!
Best regards,
Sergio Paracuellos
Sergio Paracuellos (3):
dt-bindings: watchdog: mt7621-wdt: add phandle to access system
controller registers
mips: dts: ralink: mt7621: add phandle to system controller node for
watchdog
watchdog: mt7621-wdt: avoid globals and arch dependencies
.../watchdog/mediatek,mt7621-wdt.yaml | 12 +-
arch/mips/boot/dts/ralink/mt7621.dtsi | 3 +-
drivers/watchdog/Kconfig | 4 +-
drivers/watchdog/mt7621_wdt.c | 121 ++++++++++++------
4 files changed, 95 insertions(+), 45 deletions(-)
--
2.25.1
Powered by blists - more mailing lists