projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de82bb4
)
i2c: tegra: use core to detect 'no zero length' quirk
author
Wolfram Sang
<
[email protected]
>
Mon, 23 Jul 2018 20:26:12 +0000
(22:26 +0200)
committer
Wolfram Sang
<
[email protected]
>
Fri, 5 Oct 2018 16:05:27 +0000
(18:05 +0200)
And don't reimplement in the driver.
Signed-off-by: Wolfram Sang <
[email protected]
>
Acked-by: Jon Hunter <
[email protected]
>
Signed-off-by: Wolfram Sang <
[email protected]
>
drivers/i2c/busses/i2c-tegra.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-tegra.c
b/drivers/i2c/busses/i2c-tegra.c
index 60c8561fbe65e62d3bec217d8eb7157cd377609e..437294ea2f0ad9381035c19f00ffae82ada203c8 100644
(file)
--- a/
drivers/i2c/busses/i2c-tegra.c
+++ b/
drivers/i2c/busses/i2c-tegra.c
@@
-684,9
+684,6
@@
static int tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev,
tegra_i2c_flush_fifos(i2c_dev);
- if (msg->len == 0)
- return -EINVAL;
-
i2c_dev->msg_buf = msg->buf;
i2c_dev->msg_buf_remaining = msg->len;
i2c_dev->msg_err = I2C_ERR_NONE;
@@
-831,6
+828,7
@@
static const struct i2c_algorithm tegra_i2c_algo = {
/* payload size is only 12 bit */
static const struct i2c_adapter_quirks tegra_i2c_quirks = {
+ .flags = I2C_AQ_NO_ZERO_LEN,
.max_read_len = 4096,
.max_write_len = 4096,
};