From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756336AbaISGco (ORCPT ); Fri, 19 Sep 2014 02:32:44 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:24195 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751458AbaISGcl (ORCPT ); Fri, 19 Sep 2014 02:32:41 -0400 From: Jisheng Zhang To: , CC: , , , Jisheng Zhang Subject: [PATCH 0/2] watchdog: dw_wdt: one bug fix and restart handler support Date: Fri, 19 Sep 2014 14:29:57 +0800 Message-ID: <1411108199-1280-1-git-send-email-jszhang@marvell.com> X-Mailer: git-send-email 2.1.0 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.28,0.0.0000 definitions=2014-09-19_04:2014-09-18,2014-09-19,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1409190062 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches are intend to improve dw_wdt in the following two aspects: Firstly, the TOP_INIT may be zero at reset on some HW, so the timeout period may be very short, thus we will see immediate system reset after openning the watchdog. Fix this problem by restarting the counter immediately after WDT enabling. Secondly, the WDT can also be used to reboot the system with the help of recently introduced restart handler. Tested on Marvell BG2Q DMP board. Jisheng Zhang (2): watchdog: dw_wdt: restart the counter immediately after enabling WDT watchdog: dw_wdt: add restart handler support drivers/watchdog/dw_wdt.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) -- 2.1.0