diff options
Diffstat (limited to 'drivers/w1/masters/ds2490.c')
-rw-r--r-- | drivers/w1/masters/ds2490.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/w1/masters/ds2490.c b/drivers/w1/masters/ds2490.c index 6b188e8008e4..6fabf584395f 100644 --- a/drivers/w1/masters/ds2490.c +++ b/drivers/w1/masters/ds2490.c | |||
@@ -525,7 +525,12 @@ static int ds_write_bit(struct ds_device *dev, u8 bit) | |||
525 | int err; | 525 | int err; |
526 | struct ds_status st; | 526 | struct ds_status st; |
527 | 527 | ||
528 | err = ds_send_control(dev, COMM_BIT_IO | COMM_IM | (bit) ? COMM_D : 0, 0); | 528 | /* Set COMM_ICP to write without a readback. Note, this will |
529 | * produce one time slot, a down followed by an up with COMM_D | ||
530 | * only determing the timing. | ||
531 | */ | ||
532 | err = ds_send_control(dev, COMM_BIT_IO | COMM_IM | COMM_ICP | | ||
533 | (bit ? COMM_D : 0), 0); | ||
529 | if (err) | 534 | if (err) |
530 | return err; | 535 | return err; |
531 | 536 | ||