From: Marek Vasut Date: Tue, 11 Jun 2019 11:55:07 +0200 Subject: [U-Boot] [PATCH V2 2/2] watchdog: imx: Add DM support In-Reply-To: <3bf755b2-45d7-00cf-23e8-a7353fe16345@denx.de> References: <20190609014622.14067-1-marex@denx.de> <20190609014622.14067-2-marex@denx.de> <3bf755b2-45d7-00cf-23e8-a7353fe16345@denx.de> Message-ID: <02f8ad71-1b21-77fd-5d9e-22528612c474@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de On 6/11/19 7:33 AM, Heiko Schocher wrote: > Hello Marek, > > Am 09.06.2019 um 03:46 schrieb Marek Vasut: >> Add DM and DT probing support to iMX watchdog driver. This should >> allow boards to move over to this driver, enable SYSRESET_WATCHDOG >> to handle cpu_reset() if required. >> >> Signed-off-by: Marek Vasut >> Cc: Peng Fan >> Cc: Stefano Babic >> --- >> V2: No change >> --- >>   drivers/watchdog/Kconfig        |   2 +- >>   drivers/watchdog/imx_watchdog.c | 119 +++++++++++++++++++++++++++----- >>   2 files changed, 104 insertions(+), 17 deletions(-) > > just worked on similiar patch (not ready for mainline) ... patch looks > good to me, but I stumbled over a nitpick ... > > CONFIG_WATCHDOG_TIMEOUT_MSECS is defined in imx_watchdog to 128000 ms > > 37 #ifndef CONFIG_WATCHDOG_TIMEOUT_MSECS > 38 #define CONFIG_WATCHDOG_TIMEOUT_MSECS 128000 > 39 #endif > > If now using DM approach it is set to 60000 ms, see include/wdt.h > > 109 #if defined(CONFIG_WDT) > 110 #ifndef CONFIG_WATCHDOG_TIMEOUT_MSECS > 111 #define CONFIG_WATCHDOG_TIMEOUT_MSECS   (60 * 1000) > 112 #endif > 113 #define WATCHDOG_TIMEOUT_SECS   (CONFIG_WATCHDOG_TIMEOUT_MSECS / 1000) > > Can you try my patch: > https://github.com/hsdenx/u-boot-test/commit/11503dba89cade8b81ee9d93d503d0bcce868b33 > > > which moves WATCHDOG_TIMEOUT_MSECS to Kconfig ? > (Travis build just started, may not mainline ready, also patman >  notes in commit messages can now be removed.) Looks good to me :) -- Best regards, Marek Vasut