diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/busses/i2c-pnx.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/i2c/busses/i2c-pnx.c b/drivers/i2c/busses/i2c-pnx.c index 2b0bd0b042d6..9532dee6b580 100644 --- a/drivers/i2c/busses/i2c-pnx.c +++ b/drivers/i2c/busses/i2c-pnx.c | |||
@@ -172,12 +172,6 @@ static int i2c_pnx_master_xmit(struct i2c_pnx_algo_data *alg_data) | |||
172 | /* We still have something to talk about... */ | 172 | /* We still have something to talk about... */ |
173 | val = *alg_data->mif.buf++; | 173 | val = *alg_data->mif.buf++; |
174 | 174 | ||
175 | if (alg_data->mif.len == 1) { | ||
176 | val |= stop_bit; | ||
177 | if (!alg_data->last) | ||
178 | val |= start_bit; | ||
179 | } | ||
180 | |||
181 | alg_data->mif.len--; | 175 | alg_data->mif.len--; |
182 | iowrite32(val, I2C_REG_TX(alg_data)); | 176 | iowrite32(val, I2C_REG_TX(alg_data)); |
183 | 177 | ||
@@ -251,11 +245,6 @@ static int i2c_pnx_master_rcv(struct i2c_pnx_algo_data *alg_data) | |||
251 | __func__); | 245 | __func__); |
252 | 246 | ||
253 | if (alg_data->mif.len == 1) { | 247 | if (alg_data->mif.len == 1) { |
254 | /* Last byte, do not acknowledge next rcv. */ | ||
255 | val |= stop_bit; | ||
256 | if (!alg_data->last) | ||
257 | val |= start_bit; | ||
258 | |||
259 | /* | 248 | /* |
260 | * Enable interrupt RFDAIE (data in Rx fifo), | 249 | * Enable interrupt RFDAIE (data in Rx fifo), |
261 | * and disable DRMIE (need data for Tx) | 250 | * and disable DRMIE (need data for Tx) |