diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-08-11 15:10:47 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-08-11 15:10:47 -0400 |
| commit | 9e6bdaaaa53efb9ab03bdd0229fb09180ef65825 (patch) | |
| tree | 2c87799c615a7059f97f81a3b9a09e1557f9119c | |
| parent | d92581fcad188d38a5c82c01ace43623bcafea48 (diff) | |
| parent | f480adaf1b7130ad43760f627b762f771fcfc5f5 (diff) | |
Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
Pull i2c fixes from Wolfram Sang:
"Some driver bugfixes for the I2C subsystem"
* 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
i2c: mv64xxx: Document the newly introduced allwinner compatible
i2c: Fix Kontron PLD prescaler calculation
i2c: i2c-mxs: Use DMA mode even for small transfers
| -rw-r--r-- | Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt | 2 | ||||
| -rw-r--r-- | drivers/i2c/busses/i2c-kempld.c | 4 | ||||
| -rw-r--r-- | drivers/i2c/busses/i2c-mxs.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt b/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt index a1ee681942cc..6113f9275f42 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-mv64xxx.txt | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | Required properties : | 4 | Required properties : |
| 5 | 5 | ||
| 6 | - reg : Offset and length of the register set for the device | 6 | - reg : Offset and length of the register set for the device |
| 7 | - compatible : Should be "marvell,mv64xxx-i2c" | 7 | - compatible : Should be "marvell,mv64xxx-i2c" or "allwinner,sun4i-i2c" |
| 8 | - interrupts : The interrupt number | 8 | - interrupts : The interrupt number |
| 9 | 9 | ||
| 10 | Optional properties : | 10 | Optional properties : |
diff --git a/drivers/i2c/busses/i2c-kempld.c b/drivers/i2c/busses/i2c-kempld.c index ccec916bc3eb..af8f65fb1c05 100644 --- a/drivers/i2c/busses/i2c-kempld.c +++ b/drivers/i2c/busses/i2c-kempld.c | |||
| @@ -246,9 +246,9 @@ static void kempld_i2c_device_init(struct kempld_i2c_data *i2c) | |||
| 246 | bus_frequency = KEMPLD_I2C_FREQ_MAX; | 246 | bus_frequency = KEMPLD_I2C_FREQ_MAX; |
| 247 | 247 | ||
| 248 | if (pld->info.spec_major == 1) | 248 | if (pld->info.spec_major == 1) |
| 249 | prescale = pld->pld_clock / bus_frequency * 5 - 1000; | 249 | prescale = pld->pld_clock / (bus_frequency * 5) - 1000; |
| 250 | else | 250 | else |
| 251 | prescale = pld->pld_clock / bus_frequency * 4 - 3000; | 251 | prescale = pld->pld_clock / (bus_frequency * 4) - 3000; |
| 252 | 252 | ||
| 253 | if (prescale < 0) | 253 | if (prescale < 0) |
| 254 | prescale = 0; | 254 | prescale = 0; |
diff --git a/drivers/i2c/busses/i2c-mxs.c b/drivers/i2c/busses/i2c-mxs.c index df8ff5aea5b5..e2e9a0dade96 100644 --- a/drivers/i2c/busses/i2c-mxs.c +++ b/drivers/i2c/busses/i2c-mxs.c | |||
| @@ -493,7 +493,7 @@ static int mxs_i2c_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg, | |||
| 493 | * based on this empirical measurement and a lot of previous frobbing. | 493 | * based on this empirical measurement and a lot of previous frobbing. |
| 494 | */ | 494 | */ |
| 495 | i2c->cmd_err = 0; | 495 | i2c->cmd_err = 0; |
| 496 | if (msg->len < 8) { | 496 | if (0) { /* disable PIO mode until a proper fix is made */ |
| 497 | ret = mxs_i2c_pio_setup_xfer(adap, msg, flags); | 497 | ret = mxs_i2c_pio_setup_xfer(adap, msg, flags); |
| 498 | if (ret) | 498 | if (ret) |
| 499 | mxs_i2c_reset(i2c); | 499 | mxs_i2c_reset(i2c); |
