On Wed, Jul 31, 2019 at 10:42:50AM -0700, Andrey Smirnov wrote: > Add more error logging to ziirave_firm_upload() for diagnostics. > > Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx> > Cc: Chris Healy <cphealy@xxxxxxxxx> > Cc: Guenter Roeck <linux@xxxxxxxxxxxx> > Cc: Rick Ramstetter <rick@xxxxxxxxxxxxxxx> > Cc: linux-watchdog@xxxxxxxxxxxxxxx > Cc: linux-kernel@xxxxxxxxxxxxxxx Reviewed-by: Guenter Roeck <linux@xxxxxxxxxxxx> > --- > drivers/watchdog/ziirave_wdt.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/watchdog/ziirave_wdt.c b/drivers/watchdog/ziirave_wdt.c > index 8c71341a9c1c..89ce6982ba53 100644 > --- a/drivers/watchdog/ziirave_wdt.c > +++ b/drivers/watchdog/ziirave_wdt.c > @@ -335,14 +335,18 @@ static int ziirave_firm_upload(struct watchdog_device *wdd, > > ret = ziirave_firm_write_byte(wdd, ZIIRAVE_CMD_JUMP_TO_BOOTLOADER, 1, > false); > - if (ret) > + if (ret) { > + dev_err(&client->dev, "Failed to jump to bootloader\n"); > return ret; > + } > > msleep(500); > > ret = ziirave_firm_write_byte(wdd, ZIIRAVE_CMD_DOWNLOAD_START, 1, true); > - if (ret) > + if (ret) { > + dev_err(&client->dev, "Failed to start download\n"); > return ret; > + } > > msleep(500); > > -- > 2.21.0 >