Alexey Brodkin
52bc7c7e2b
eeprom: fix eeprom write procedure
...
This fixes commit 1a37889b0a
:
----------------------->8--------------------
eeprom: Pull out the RW loop
Unify the code for doing read/write into single function, since the
code for both the read and write is almost identical. This again
trims down the code duplication.
----------------------->8--------------------
where the same one routine is utilized for both EEPROM writing and
reading. The only difference was supposed to be a "read" flag which
in both cases was set with 1 somehow.
That lead to a missing delay in case of writing which lead to write
failure (in my case no data was written).
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com >
Acked-by: Marek Vasut <marex@denx.de >
Cc: Simon Glass <sjg@chromium.org >
Cc: Tom Rini <trini@konsulko.com >
Cc: Heiko Schocher <hs@denx.de >
2015-12-16 10:31:31 -05:00
..
2015-11-12 20:34:07 -05:00
2015-12-14 13:42:50 -05:00
2015-11-19 20:27:50 -07:00
2015-12-15 08:57:33 +08:00
2015-08-13 07:19:36 -04:00
2015-12-07 08:35:23 -05:00
2015-12-12 15:56:08 -05:00
2015-10-11 17:12:10 -04:00
2015-12-12 15:56:10 -05:00
2015-08-12 20:47:13 -04:00
2015-11-19 20:27:50 -07:00
2015-11-19 20:27:50 -07:00
2015-11-13 10:23:33 +02:00
2015-11-19 20:27:50 -07:00
2015-12-15 08:57:32 +08:00
2015-11-19 20:27:50 -07:00
2015-12-15 08:57:35 +08:00
2015-06-10 19:26:54 -06:00
2015-05-28 08:18:21 -04:00
2015-11-05 08:22:21 +01:00
2015-07-14 18:03:15 -06:00
2015-07-14 18:03:16 -06:00
2015-11-19 20:27:50 -07:00
2015-11-19 20:27:50 -07:00
2015-12-16 10:31:31 -05:00
2015-08-05 08:44:07 -06:00
2015-10-21 07:46:26 -06:00
2015-09-21 08:29:48 -07:00
2015-11-19 20:27:50 -07:00
2015-07-20 07:21:47 -06:00
2015-09-07 13:41:05 +02:00
2015-11-19 20:27:50 -07:00
2015-11-19 20:27:50 -07:00
2015-11-23 11:01:52 -05:00
2015-12-07 10:14:30 +01:00
2015-06-04 02:39:39 -06:00
2015-11-18 15:29:00 -05:00
2015-11-19 20:27:50 -07:00
2015-11-19 20:27:50 -07:00
2015-11-19 14:03:05 +01:00
2015-11-19 20:27:50 -07:00
2015-12-05 18:22:24 -05:00
2015-07-28 11:56:29 +02:00
2015-11-19 20:27:50 -07:00
2015-11-19 20:27:50 -07:00
2015-06-30 00:40:11 +05:30
2015-11-19 20:27:50 -07:00
2015-12-13 20:22:01 -05:00
2015-12-01 06:26:38 -07:00
2015-07-27 15:53:48 -07:00
2015-08-05 21:06:13 -06:00
2015-10-22 14:18:38 -04:00
2015-07-11 08:01:54 -04:00
2015-11-05 16:47:06 -05:00
2015-08-12 20:47:56 -04:00
2015-06-30 00:40:11 +05:30
2015-08-31 07:57:29 -06:00
2015-10-23 09:42:28 -06:00
2015-07-21 17:39:38 -06:00
2015-10-26 09:22:36 +01:00
2015-10-24 13:50:31 -04:00
2015-11-19 20:27:50 -07:00
2015-11-19 20:27:51 -07:00
2015-10-24 13:50:31 -04:00
2015-11-19 20:27:50 -07:00
2015-11-23 10:56:07 -05:00
2015-05-21 09:13:19 -04:00
2015-05-21 09:13:19 -04:00
2015-11-21 21:50:26 -05:00
2015-09-11 17:15:20 -04:00
2015-09-21 08:29:47 -07:00
2015-09-11 17:15:20 -04:00
2015-09-11 17:15:20 -04:00
2015-08-17 23:29:14 +05:30
2015-11-19 07:32:49 +01:00
2015-07-20 11:44:37 -07:00
2015-11-12 15:58:59 -05:00
2015-11-12 13:18:59 -05:00
2015-12-09 17:44:36 +08:00
2015-06-08 17:32:40 -04:00
2015-10-11 17:12:10 -04:00
2015-12-05 18:22:15 -05:00
2015-10-19 17:06:16 -04:00
2015-11-12 13:18:59 -05:00
2015-11-19 13:09:21 +01:00
2015-11-19 20:27:50 -07:00
2015-11-19 20:27:50 -07:00
2015-07-23 18:10:58 +02:00
2015-12-02 15:46:58 +01:00
2015-11-19 20:27:50 -07:00
2015-12-05 18:22:27 -05:00
2015-10-21 20:47:40 -04:00
2015-05-27 13:35:54 -04:00
2015-12-05 18:22:24 -05:00
2015-11-16 12:01:35 +01:00
2015-11-19 20:13:40 -07:00
2015-09-07 13:41:05 +02:00
2015-11-19 20:27:50 -07:00
2015-11-19 20:27:52 -07:00
2015-11-03 17:29:33 +01:00
2015-09-11 17:15:20 -04:00