From 2c31bcfb671c1fbb98874908b41f633b83bbab14 Mon Sep 17 00:00:00 2001 From: Oleksandr Shulzhenko Date: Thu, 28 Apr 2022 10:09:07 +0200 Subject: i3c: device: Add SETMWL/GETMWL and SETMRL/GETMRL support Add the GETMRL/SETMRL and GETMWL/SETMWL CCC commands functions. The functions are needed to configure maximum read/write length for the specific I3C device. Signed-off-by: Oleksandr Shulzhenko --- include/linux/i3c/device.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/linux/i3c/device.h b/include/linux/i3c/device.h index 1bc9f65dbb6a..dad3829be66c 100644 --- a/include/linux/i3c/device.h +++ b/include/linux/i3c/device.h @@ -342,6 +342,11 @@ int i3c_device_enable_ibi(struct i3c_device *dev); int i3c_device_disable_ibi(struct i3c_device *dev); int i3c_device_getstatus_ccc(struct i3c_device *dev, struct i3c_device_info *info); +int i3c_device_setmrl_ccc(struct i3c_device *dev, struct i3c_device_info *info, __be16 read_len, + u8 ibi_len); +int i3c_device_setmwl_ccc(struct i3c_device *dev, struct i3c_device_info *info, __be16 write_len); +int i3c_device_getmrl_ccc(struct i3c_device *dev, struct i3c_device_info *info); +int i3c_device_getmwl_ccc(struct i3c_device *dev, struct i3c_device_info *info); struct i3c_target_read_setup { void (*handler)(struct i3c_device *dev, const u8 *data, size_t len); -- cgit v1.2.3