Pull i2c updates from Wolfram Sang: "I2C has the following changes for you: - new flag to mark DMA safe buffers in i2c_msg. Also, some infrastructure around it. And docs. - huge refactoring of the at24 driver led by the new maintainer Bartosz - update I2C bus recovery to send STOP after recovery - conversion from gpio to gpiod for I2C bus recovery - adding a fault-injector to the i2c-gpio driver - lots of small driver improvements, and bigger ones to i2c-sh_mobile" * 'i2c/for-4.16' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (99 commits) i2c: mv64xxx: Add myself as maintainer for this driver i2c: mv64xxx: Fix clock resource by adding an optional bus clock i2c: mv64xxx: Remove useless test before clk_disable_unprepare i2c: mxs: use true and false for boolean values i2c: meson: update doc description to fix build warnings i2c: meson: add configurable divider factors dt-bindings: i2c: update documentation for the Meson-AXG i2c: imx-lpi2c: add runtime pm support i2c: rcar: fix some trivial typos in comments i2c: davinci: fix the cpufreq transition i2c: rk3x: add proper kerneldoc header i2c: rk3x: account for const type of of_device_id.data i2c: acorn: remove outdated path from file header i2c: acorn: add MODULE_LICENSE tag i2c: rcar: implement bus recovery i2c: send STOP after successful bus recovery i2c: ensure SDA is released in recovery if SDA is controllable i2c: add 'set_sda' to bus_recovery_info i2c: add identifier in declarations for i2c_bus_recovery i2c: make kerneldoc about bus recovery more precise ...
Showing the changes to include/uapi/linux (1 of 45 files). Show all
Unified · Split
| @@ -72,6 +72,9 @@ struct i2c_msg { · 71 unmodified lines | |||
| 72 | #define I2C_M_RD 0x0001 /* read data, from slave to master */ | 72 | #define I2C_M_RD 0x0001 /* read data, from slave to master */ |
| 73 | /* I2C_M_RD is guaranteed to be 0x0001! */ | 73 | /* I2C_M_RD is guaranteed to be 0x0001! */ |
| 74 | #define I2C_M_TEN 0x0010 /* this is a ten bit chip address */ | 74 | #define I2C_M_TEN 0x0010 /* this is a ten bit chip address */ |
| 75 | #define I2C_M_DMA_SAFE 0x0200 /* the buffer of this message is DMA safe */ | ||
| 76 | /* makes only sense in kernelspace */ | ||
| 77 | /* userspace buffers are copied anyway */ | ||
| 75 | #define I2C_M_RECV_LEN 0x0400 /* length will be first received byte */ | 78 | #define I2C_M_RECV_LEN 0x0400 /* length will be first received byte */ |
| 76 | #define I2C_M_NO_RD_ACK 0x0800 /* if I2C_FUNC_PROTOCOL_MANGLING */ | 79 | #define I2C_M_NO_RD_ACK 0x0800 /* if I2C_FUNC_PROTOCOL_MANGLING */ |
| 77 | #define I2C_M_IGNORE_NAK 0x1000 /* if I2C_FUNC_PROTOCOL_MANGLING */ | 80 | #define I2C_M_IGNORE_NAK 0x1000 /* if I2C_FUNC_PROTOCOL_MANGLING */ |