diff options
author | Andrey Smirnov <[email protected]> | 2019-08-12 13:08:48 -0700 |
---|---|---|
committer | Wim Van Sebroeck <[email protected]> | 2019-09-17 08:59:03 +0200 |
commit | 39d0387d5e5e9bbd1fd9cfaab19581939b05f1c8 (patch) | |
tree | 3d78330f9f40e8be294b68ab5576c5686a305770 /drivers/usb/cdns3/cdns3-plat.c | |
parent | b774fcef7dde27da8e8ed21571a254b1a78d200f (diff) |
watchdog: ziirave_wdt: Don't bail out on unexpected timeout value
Reprogramming bootloader on watchdog MCU will result in reported
default timeout value of "0". That in turn will be unnecessarily
rejected by the driver as invalid device (-ENODEV). Simplify probe to
read stored timeout value, set it to a sane default if it is bogus,
and then program that value unconditionally.
Signed-off-by: Andrey Smirnov <[email protected]>
Cc: Chris Healy <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Rick Ramstetter <[email protected]>
Cc: [email protected]
Cc: [email protected]
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions