Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMaes authored Aug 23, 2016
1 parent 65e80e1 commit f59ffb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-bcm2708.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static inline int bcm2708_bsc_setup(struct bcm2708_i2c *bi)
bcm2708_wr(bi, BSC_C, BSC_C_CLEAR_1);

/* Fill FIFO with entire write message (16 byte FIFO) */
while ((bi->pos < bi->msg->len) && (bcm2708_rd(bi, BSC_S) & BSC_S_TXD))
while ((bi->pos < bi->msg->len) && (bcm2708_rd(bi, BSC_S) & BSC_S_TXD)) {
bcm2708_wr(bi, BSC_FIFO, bi->msg->buf[bi->pos++]);
}
/* Start write transfer (no interrupts, don't clear FIFO) */
Expand Down

0 comments on commit f59ffb3

Please sign in to comment.