History

Revert "Merge branch 'mctp-i2c-driver'"

This reverts commit 71812af7234f30362b43ccff33f93890ae4c0655, reversing changes made to cc0be1ad686fb29a4d127948486f40b17fb34b50. Wolfram Sang says: Please revert. Besides the driver in net, it modifies the I2C core code. This has not been acked by the I2C maintainer (in this case me). So, please don't pull this in via the net tree. The question raised here (extending SMBus calls to 255 byte) is complicated because we need ABI backwards compatibility.

Jakub Kicinski committed 5 years ago

Commit 2f6a4701 parent 6d3b1b012 files · +25 −1209Browse files

Showing the changes to include/uapi (2 of 12 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/i2c-dev.h +0 −2
  2. include/uapi/linux/i2c.h +1 −6
include/uapi/linux/i2c-dev.h+0−2
@@ -39,14 +39,12 @@ · 38 unmodified lines
3939
4040
4141 /* This is the structure as used in the I2C_SMBUS ioctl call */
42−#ifndef __KERNEL__
4342 struct i2c_smbus_ioctl_data {
4443 __u8 read_write;
4544 __u8 command;
4645 __u32 size;
4746 union i2c_smbus_data __user *data;
4847 };
49−#endif
5048
5149 /* This is the structure as used in the I2C_RDWR ioctl call */
5250 struct i2c_rdwr_ioctl_data {
include/uapi/linux/i2c.h+1−6
@@ -108,9 +108,6 @@ struct i2c_msg { · 107 unmodified lines
108108 #define I2C_FUNC_SMBUS_READ_I2C_BLOCK 0x04000000 /* I2C-like block xfer */
109109 #define I2C_FUNC_SMBUS_WRITE_I2C_BLOCK 0x08000000 /* w/ 1-byte reg. addr. */
110110 #define I2C_FUNC_SMBUS_HOST_NOTIFY 0x10000000 /* SMBus 2.0 or later */
111−#define I2C_FUNC_SMBUS_V3_BLOCK 0x20000000 /* Device supports 255 byte block */
112− /* Note that I2C_SMBUS ioctl only */
113− /* supports a 32 byte block */
114111
115112 #define I2C_FUNC_SMBUS_BYTE (I2C_FUNC_SMBUS_READ_BYTE | \
116113 I2C_FUNC_SMBUS_WRITE_BYTE)
@@ -140,15 +137,13 @@ struct i2c_msg { · 23 unmodified lines
140137 /*
141138 * Data for SMBus Messages
142139 */
143−#define I2C_SMBUS_BLOCK_MAX 32 /* As specified in SMBus 2.0 standard */
144−#ifndef __KERNEL__
140+#define I2C_SMBUS_BLOCK_MAX 32 /* As specified in SMBus standard */
145141 union i2c_smbus_data {
146142 __u8 byte;
147143 __u16 word;
148144 __u8 block[I2C_SMBUS_BLOCK_MAX + 2]; /* block[0] is used for length */
149145 /* and one more for user-space compatibility */
150146 };
151−#endif
152147
153148 /* i2c_smbus_xfer read or write markers */
154149 #define I2C_SMBUS_READ 1