Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
6eeacee1
Commit
6eeacee1
authored
Jan 06, 2015
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sdb-eeprom: bugfix, store entrypoint, otherwise it does not work when magic is not at 0
parent
59978129
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
sdb-eeprom.c
dev/sdb-eeprom.c
+4
-1
No files found.
dev/sdb-eeprom.c
View file @
6eeacee1
...
@@ -180,8 +180,10 @@ void eeprom_init(int chosen_i2cif, int chosen_i2c_addr)
...
@@ -180,8 +180,10 @@ void eeprom_init(int chosen_i2cif, int chosen_i2c_addr)
sdb_i2c_read
(
&
wrc_sdb
,
entry_points
[
i
],
(
void
*
)
&
magic
,
sdb_i2c_read
(
&
wrc_sdb
,
entry_points
[
i
],
(
void
*
)
&
magic
,
sizeof
(
magic
));
sizeof
(
magic
));
if
(
magic
==
SDB_MAGIC
)
if
(
magic
==
SDB_MAGIC
)
{
pp_printf
(
"sdbfs: found at %i in I2C
\n
"
,
entry_points
[
i
]);
break
;
break
;
}
}
}
if
(
i
==
ARRAY_SIZE
(
entry_points
))
{
if
(
i
==
ARRAY_SIZE
(
entry_points
))
{
pp_printf
(
"No SDB filesystem in i2c eeprom
\n
"
);
pp_printf
(
"No SDB filesystem in i2c eeprom
\n
"
);
...
@@ -191,6 +193,7 @@ void eeprom_init(int chosen_i2cif, int chosen_i2c_addr)
...
@@ -191,6 +193,7 @@ void eeprom_init(int chosen_i2cif, int chosen_i2c_addr)
found_exit:
found_exit:
/* found: register the filesystem */
/* found: register the filesystem */
has_eeprom
=
1
;
has_eeprom
=
1
;
wrc_sdb
.
entrypoint
=
entry_points
[
i
];
sdbfs_dev_create
(
&
wrc_sdb
);
sdbfs_dev_create
(
&
wrc_sdb
);
eeprom_sdb_list
(
&
wrc_sdb
);
eeprom_sdb_list
(
&
wrc_sdb
);
return
;
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment