Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190111
b: refs/heads/master
c: 28ad332
h: refs/heads/master
i:
  190109: e77dadf
  190107: 6d2d0a4
  190103: 08e902e
  190095: bdb5bca
  190079: 4414ed3
v: v3
  • Loading branch information
Kevin Wells authored and Ben Dooks committed Apr 20, 2010
1 parent 176b7c2 commit f79e7cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: be80dbaa3ed64337693be58fb2f3808e78911ba6
refs/heads/master: 28ad3321a1ac732c7fe37d5be85f67fe40ef18a9
6 changes: 6 additions & 0 deletions trunk/drivers/i2c/busses/i2c-pnx.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ static int i2c_pnx_master_xmit(struct i2c_pnx_algo_data *alg_data)
/* We still have something to talk about... */
val = *alg_data->mif.buf++;

if (alg_data->mif.len == 1)
val |= stop_bit;

alg_data->mif.len--;
iowrite32(val, I2C_REG_TX(alg_data));

Expand Down Expand Up @@ -246,6 +249,9 @@ static int i2c_pnx_master_rcv(struct i2c_pnx_algo_data *alg_data)
__func__);

if (alg_data->mif.len == 1) {
/* Last byte, do not acknowledge next rcv. */
val |= stop_bit;

/*
* Enable interrupt RFDAIE (data in Rx fifo),
* and disable DRMIE (need data for Tx)
Expand Down

0 comments on commit f79e7cc

Please sign in to comment.