From patchwork Sun Jan 12 08:12:03 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chin-Ting Kuo X-Patchwork-Id: 856890 Received: from TWMBX01.aspeed.com (mail.aspeedtech.com [211.20.114.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6EF7E881E; Sun, 12 Jan 2025 08:17:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.20.114.72 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736669838; cv=none; b=RCKwdnAsTFFONVMnzC2WyAPJEUuJbDMLktfS9WiYgJ7h+YkUgT54EWyxrI7t6EXiIFY2sI0I0jlM+UPVcgDj5GctdVsXNheFce8DlD4nAXGpcawzKoUeK8wHv9ThFhblTZ8a0JeheXz5svqIaBc5hLoSPCQM3dSwmVbLPh0wF1s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736669838; c=relaxed/simple; bh=/sHXrg0+h6Df+2jtZ2vxoGoVNiXLEV7CO/4sLbBTzSA=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=m8hNRveeUre+3RP6aL3N5vB+t7EsEqhad2cOOOZuPBqB3T7yMSIY+0ZDK5BpM3kvpu9cow0pNm3n8vza0wcZ7LcMSNDCOl30ngLarHfcCAfqWcF/HyHniCO/QF+RlFXNWLi3AHgpD9uzDOZRbtMuBbaPSkJaM1NCTQFblrsZx6M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com; spf=pass smtp.mailfrom=aspeedtech.com; arc=none smtp.client-ip=211.20.114.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aspeedtech.com Received: from TWMBX01.aspeed.com (192.168.0.62) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Sun, 12 Jan 2025 16:12:04 +0800 Received: from aspeedtech.com (192.168.10.13) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Sun, 12 Jan 2025 16:12:04 +0800 From: Chin-Ting Kuo To: , , , , , , , , CC: , , , , Subject: [PATCH v6 0/1] Update ASPEED WDT bootstatus Date: Sun, 12 Jan 2025 16:12:03 +0800 Message-ID: <20250112081204.263216-1-chin-ting_kuo@aspeedtech.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This patch series inherits the patch submitted by Peter. https://patchwork.kernel.org/project/linux-watchdog/patch/20240430143114.1323686-2-peteryin.openbmc@gmail.com/ Bootstatus mechanism is reconstructed to the latest architecture and for all existing ASPEED BMC platforms. Changes in v2: - Support SW restart on AST2600 by default without adding any dts property. Changes in v3: - Get watchdog controller index by dividing register base offset by register size. Changes in v4: - Update the commit message for updating bootstatus handling patch. - Rename aspeed_wdt_config struct to aspeed_wdt_data. - Create restart callback function. Changes in v5: - Remove SW reset mechanism since there is no consensus about bootstatus for SW reset currently. - Correct the method for clearing reset event flag on AST2400 and AST2500 legacy platforms. Changes in v6: - Use resource_size() function to get WDT controller registers size. Chin-Ting Kuo (1): watchdog: aspeed: Update bootstatus handling drivers/watchdog/aspeed_wdt.c | 81 ++++++++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 2 deletions(-) Reviewed-by: Guenter Roeck