mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
w1: fix occasional enumeration failure
Sometimes enumeration fails (about 1 in 50 times on my custom board). The underlying reason is probably electrical but Linux does not have the problem. Comparing the Linux / u-boot implementations shows that Linux retries the error case whereas u-boot aborts early. Removing the early abort in u-boot fixes the problem. Signed-off-by: Martin Fuzzey <martin.fuzzey@flowbird.group>
This commit is contained in:
parent
57dbc15143
commit
b95938117c
1 changed files with 0 additions and 4 deletions
|
@ -84,10 +84,6 @@ static int w1_enumerate(struct udevice *bus)
|
|||
rn |= (tmp64 << i);
|
||||
}
|
||||
|
||||
/* last device or error, aborting here */
|
||||
if ((triplet_ret & 0x03) == 0x03)
|
||||
last_device = true;
|
||||
|
||||
if ((triplet_ret & 0x03) != 0x03) {
|
||||
if (desc_bit == last_zero || last_zero < 0) {
|
||||
last_device = 1;
|
||||
|
|
Loading…
Reference in a new issue