rti_wdt.c (58f7553fa424fd0fd74e8b796d50c66014cebebe) | rti_wdt.c (8711071e9700b67045fe5518161d63f7a03e3c9e) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Watchdog driver for the K3 RTI module 4 * 5 * (c) Copyright 2019-2020 Texas Instruments Inc. 6 * All rights reserved. 7 */ 8 --- 213 unchanged lines hidden (view full) --- 222 * Adjust frequency down in this case so that we don't pet 223 * the watchdog too often. 224 */ 225 if (wdt->freq < 32768) 226 wdt->freq = wdt->freq * 9 / 10; 227 228 pm_runtime_enable(dev); 229 ret = pm_runtime_get_sync(dev); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Watchdog driver for the K3 RTI module 4 * 5 * (c) Copyright 2019-2020 Texas Instruments Inc. 6 * All rights reserved. 7 */ 8 --- 213 unchanged lines hidden (view full) --- 222 * Adjust frequency down in this case so that we don't pet 223 * the watchdog too often. 224 */ 225 if (wdt->freq < 32768) 226 wdt->freq = wdt->freq * 9 / 10; 227 228 pm_runtime_enable(dev); 229 ret = pm_runtime_get_sync(dev); |
230 if (ret) | 230 if (ret) { 231 pm_runtime_put_noidle(dev); |
231 return dev_err_probe(dev, ret, "runtime pm failed\n"); | 232 return dev_err_probe(dev, ret, "runtime pm failed\n"); |
233 } |
|
232 233 platform_set_drvdata(pdev, wdt); 234 235 wdd = &wdt->wdd; 236 wdd->info = &rti_wdt_info; 237 wdd->ops = &rti_wdt_ops; 238 wdd->min_timeout = 1; 239 wdd->max_hw_heartbeat_ms = (WDT_PRELOAD_MAX << WDT_PRELOAD_SHIFT) / --- 104 unchanged lines hidden --- | 234 235 platform_set_drvdata(pdev, wdt); 236 237 wdd = &wdt->wdd; 238 wdd->info = &rti_wdt_info; 239 wdd->ops = &rti_wdt_ops; 240 wdd->min_timeout = 1; 241 wdd->max_hw_heartbeat_ms = (WDT_PRELOAD_MAX << WDT_PRELOAD_SHIFT) / --- 104 unchanged lines hidden --- |