Andrey Smirnov
d2ddc4505e
watchdog: ziirave_wdt: Don't try to program readonly flash
...
Bootloader code will ignore any attempts to write data to any flash
area outside of [ZIIRAVE_FIRM_FLASH_MEMORY_START;
ZIIRAVE_FIRM_FLASH_MEMORY_END]. Firmware update code already have an
appropriate check to skip those areas when validating updated
firmware. Firmware programming code, OTOH, does not and will
needlessly send no-op I2C traffic. Add an appropriate check to
__ziirave_firm_write_pkt() so as to save all of that wasted effort.
While at it, normalize all of the address handling code to use full
32-bit address in units of bytes and convert it to an appropriate
value only in places where that is necessary.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Cc: Chris Healy <cphealy@gmail.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Rick Ramstetter <rick@anteaterllc.com>
Cc: linux-watchdog@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20190812200906.31344-15-andrew.smirnov@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
2019-09-17 08:59:07 +02:00
..
2019-07-08 20:35:11 +02:00
2019-07-08 20:35:11 +02:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2019-08-12 13:05:37 +02:00
2019-05-05 21:02:14 +02:00
2019-05-21 11:28:40 +02:00
2019-07-08 15:13:02 +02:00
2019-05-06 17:46:41 +03:00
2019-05-05 21:02:12 +02:00
2018-03-24 10:19:40 +01:00
2019-07-24 20:21:39 +02:00
2019-05-30 11:29:21 -07:00
2018-03-24 10:19:40 +01:00
2019-05-06 17:46:41 +03:00
2019-07-08 16:08:32 +02:00
2019-07-08 15:13:02 +02:00
2019-07-08 20:35:10 +02:00
2019-05-05 21:02:10 +02:00
2019-05-30 11:26:32 -07:00
2019-07-08 15:13:04 +02:00
2019-05-05 21:10:33 +02:00
2019-05-24 17:36:45 +02:00
2019-09-17 08:59:02 +02:00
2019-07-08 15:13:04 +02:00
2019-05-05 21:02:16 +02:00
2019-07-08 15:13:04 +02:00
2019-05-05 21:04:57 +02:00
2019-07-08 20:35:11 +02:00
2019-09-17 08:59:01 +02:00
2019-07-15 08:49:11 +02:00
2019-05-30 11:26:32 -07:00
2019-07-08 20:35:11 +02:00
2019-05-05 21:02:19 +02:00
2019-07-08 20:35:11 +02:00
2019-05-30 11:26:35 -07:00
2019-07-08 15:13:06 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-07-08 19:39:44 +02:00
2019-07-08 16:10:10 +02:00
2019-07-08 15:13:06 +02:00
2019-07-08 20:35:11 +02:00
2019-05-06 17:46:41 +03:00
2019-07-08 20:46:48 +02:00
2019-06-19 17:09:55 +02:00
2019-09-17 08:59:02 +02:00
2019-09-17 08:59:02 +02:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:36:36 +02:00
2019-06-05 17:36:36 +02:00
2019-07-08 15:13:08 +02:00
2019-06-05 17:37:05 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:32 -07:00
2019-07-08 20:35:11 +02:00
2018-10-02 13:32:25 +02:00
2019-07-08 20:35:11 +02:00
2019-05-16 08:31:32 -07:00
2019-08-12 13:05:39 +02:00
2019-09-16 22:10:05 +02:00
2019-06-05 17:36:38 +02:00
2019-06-19 17:09:55 +02:00
2019-07-08 15:13:08 +02:00
2019-06-19 17:09:55 +02:00
2019-05-06 17:46:41 +03:00
2019-05-30 11:26:32 -07:00
2019-09-16 22:10:05 +02:00
2019-05-05 21:02:22 +02:00
2019-07-08 15:13:09 +02:00
2019-07-08 20:35:10 +02:00
2019-07-08 15:13:09 +02:00
2019-07-08 15:13:10 +02:00
2018-08-02 15:57:12 +02:00
2019-05-05 21:02:23 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-05 21:02:24 +02:00
2019-05-05 21:02:24 +02:00
2019-07-08 15:13:10 +02:00
2019-06-19 17:09:55 +02:00
2019-05-05 21:02:25 +02:00
2019-05-06 17:46:41 +03:00
2019-07-08 20:35:11 +02:00
2019-07-08 15:13:10 +02:00
2019-07-08 15:13:11 +02:00
2019-07-08 15:13:11 +02:00
2019-05-30 11:26:32 -07:00
2019-07-08 20:35:11 +02:00
2019-07-08 20:35:11 +02:00
2017-09-04 21:19:03 +02:00
2019-07-08 15:13:12 +02:00
2019-07-08 20:35:11 +02:00
2019-07-08 20:35:11 +02:00
2019-05-05 21:02:12 +02:00
2019-07-08 20:35:11 +02:00
2019-07-08 20:35:11 +02:00
2019-07-08 20:35:11 +02:00
2019-08-12 13:05:37 +02:00
2019-07-08 15:13:12 +02:00
2019-07-08 15:13:12 +02:00
2019-05-21 10:50:45 +02:00
2019-05-05 21:02:26 +02:00
2019-05-30 11:26:32 -07:00
2019-09-16 22:10:05 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-07-08 15:13:13 +02:00
2019-07-08 15:13:14 +02:00
2019-05-30 11:26:32 -07:00
2019-05-24 17:36:45 +02:00
2019-07-08 19:39:44 +02:00
2019-07-08 20:35:11 +02:00
2019-08-12 13:05:38 +02:00
2019-06-05 17:37:18 +02:00
2019-06-19 17:09:55 +02:00
2019-05-05 21:10:34 +02:00
2019-05-05 21:02:27 +02:00
2019-07-08 15:13:14 +02:00
2019-07-08 20:35:11 +02:00
2019-07-08 20:35:12 +02:00
2019-08-12 13:05:37 +02:00
2019-05-30 11:26:32 -07:00
2019-07-08 20:35:11 +02:00
2019-07-08 20:35:11 +02:00
2019-05-30 11:26:32 -07:00
2019-05-06 17:46:41 +03:00
2019-06-05 17:36:38 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-07-08 20:35:11 +02:00
2019-08-12 13:05:37 +02:00
2019-05-30 11:26:32 -07:00
2019-05-21 11:28:40 +02:00
2019-07-08 20:35:09 +02:00
2019-07-08 20:35:11 +02:00
2019-07-08 15:13:15 +02:00
2019-07-08 15:13:15 +02:00
2018-01-21 12:56:37 +01:00
2019-08-12 13:05:38 +02:00
2019-07-08 15:13:16 +02:00
2019-07-08 15:13:16 +02:00
2019-07-08 15:13:17 +02:00
2019-05-05 21:02:29 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-05 21:02:30 +02:00
2019-07-08 15:13:17 +02:00
2019-05-05 21:02:31 +02:00
2019-05-05 21:02:32 +02:00
2019-07-08 15:13:17 +02:00
2019-05-30 11:26:35 -07:00
2019-06-19 17:09:55 +02:00
2019-05-05 21:02:32 +02:00
2019-05-30 11:29:22 -07:00
2019-05-30 11:29:22 -07:00
2019-07-08 20:35:11 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-07-08 20:35:11 +02:00
2019-07-08 20:35:11 +02:00
2019-07-08 20:35:11 +02:00
2019-07-08 20:35:11 +02:00
2019-05-30 11:26:32 -07:00
2017-11-02 11:10:55 +01:00
2019-07-08 20:35:11 +02:00
2019-06-19 17:09:55 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-08-12 13:05:38 +02:00
2019-07-08 20:35:11 +02:00
2019-08-12 13:05:37 +02:00
2019-07-08 15:13:18 +02:00
2018-03-24 10:19:40 +01:00
2019-07-08 15:13:18 +02:00
2019-09-17 08:59:07 +02:00
2019-05-30 11:29:22 -07:00