Skip to content

Commit

Permalink
w1: mxc_w1: Fix mxc_w1_ds2_reset_bus() return value
Browse files Browse the repository at this point in the history
This patch fix mxc_w1_ds2_reset_bus() return value.
According to i.MX reference manual, "presence status" reflected
in the bit 6 of control register.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Alexander Shiyan authored and Greg Kroah-Hartman committed Feb 28, 2014
1 parent adffe4a commit aea476b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/w1/masters/mxc_w1.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static u8 mxc_w1_ds2_reset_bus(void *data)

udelay(100);
}
return (reg_val >> 7) & 0x1;
return (reg_val >> 6) & 0x1;
}

/*
Expand Down

0 comments on commit aea476b

Please sign in to comment.