From 36e4e3fa141e0975347104573a024f1160377808 Mon Sep 17 00:00:00 2001 From: Oleksandr Shulzhenko Date: Thu, 27 Jan 2022 11:24:40 +0100 Subject: i3c: master: Implement CCC GETSTATUS function Get Device Status (GETSTATUS) is a Direct CCC that is sent by I3C controller to I3C Target device to read I3C Target status. Signed-off-by: Oleksandr Shulzhenko --- include/linux/i3c/device.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/linux') diff --git a/include/linux/i3c/device.h b/include/linux/i3c/device.h index 8242e13e7b0b..c31624535fbf 100644 --- a/include/linux/i3c/device.h +++ b/include/linux/i3c/device.h @@ -128,6 +128,7 @@ struct i3c_device_info { u32 max_read_turnaround; u16 max_read_len; u16 max_write_len; + __be16 status; }; /* @@ -332,4 +333,6 @@ void i3c_device_free_ibi(struct i3c_device *dev); 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); + #endif /* I3C_DEV_H */ -- cgit v1.2.3