mei: documentation fixes
Subsystems (2)
cover mei: documentation fixes
Fix spelling errors and kdoc issues.
Tomas Winkler (3):
mei: docs: use correct structures name in kdoc
mei: docs: add missing entries to kdoc in struct mei_cfg_idx
mei: docs: fix spelling errors
drivers/misc/mei/bus.c | 4 ++-- drivers/misc/mei/dma-ring.c | 2 +- drivers/misc/mei/hbm.c | 4 ++-- drivers/misc/mei/hw-me.h | 4 ++++ drivers/misc/mei/hw.h | 4 ++-- drivers/misc/mei/interrupt.c | 2 +- drivers/misc/mei/mei_dev.h | 4 ++-- include/linux/mei_cl_bus.h | 4 ++-- 8 files changed, 16 insertions(+), 12 deletions(-)
Signature · 1 line
2.41.0
PATCH 1/3 mei: docs: use correct structures name in kdoc
Fix misalignment between structures names and their kdoc in hw.h
--- drivers/misc/mei/hw.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/misc/mei/hw.h +2 -2
@@ -429,7 +429,7 @@ struct mei_bus_message { } __packed;/** -* struct hbm_cl_cmd - client specific host bus command +* struct mei_hbm_cl_cmd - client specific host bus command * CONNECT, DISCONNECT, and FlOW CONTROL * * @hbm_cmd: bus message command header
@@ -733,7 +733,7 @@ struct hbm_dma_setup_response { } __packed;/** -* struct mei_dma_ring_ctrl - dma ring control block +* struct hbm_dma_ring_ctrl - dma ring control block * * @hbuf_wr_idx: host circular buffer write index in slots * @reserved1: reserved for alignment
Signature · 1 line
2.41.0
Re: [char-misc-next 1/3] mei: docs: use correct structures name in kdoc
Quoted 3 lines · Tomas Winkler
Fix misalignment between structures names and their kdoc in
hw.hSigned-off-by Tomas Winkler <[email protected]>
Thanks.
Quoted 26 lines
--- drivers/misc/mei/hw.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/misc/mei/hw.h +2
-2@@ -429,7 +429,7 @@ struct mei_bus_message { } __packed;/** -* struct hbm_cl_cmd - client specific host bus command +* struct mei_hbm_cl_cmd - client specific host bus command * CONNECT, DISCONNECT, and FlOW CONTROL * * @hbm_cmd: bus message command header @@ -733,7 +733,7 @@ struct hbm_dma_setup_response { } __packed;/** -* struct mei_dma_ring_ctrl - dma ring control block +* struct hbm_dma_ring_ctrl - dma ring control block * * @hbuf_wr_idx: host circular buffer write index in slots * @reserved1: reserved for alignment
Signature · 1 line
~Randy
PATCH 2/3 mei: docs: add missing entries to kdoc in struct mei_cfg_idx
In reply to Tomas WinklerDocument all entries in struct mei_cfg_idx.
--- drivers/misc/mei/hw-me.h | 4 ++++ 1 file changed, 4 insertions(+)
drivers/misc/mei/hw-me.h +4 -0
@@ -102,10 +102,14 @@ static inline bool mei_me_hw_use_polling(const struct mei_me_hw *hw)* @MEI_ME_PCH12_SPS_CFG: Platform Controller Hub Gen12 5.0 and newer * servers platforms with quirk for * SPS firmware exclusion. +* @MEI_ME_PCH12_SPS_ITOUCH_CFG: Platform Controller Hub Gen12 +* client platforms (iTouch) * @MEI_ME_PCH15_CFG: Platform Controller Hub Gen15 and newer * @MEI_ME_PCH15_SPS_CFG: Platform Controller Hub Gen15 and newer * servers platforms with quirk for * SPS firmware exclusion. +* @MEI_ME_GSC_CFG: Graphics System Controller +* @MEI_ME_GSCFI_CFG: Graphics System Controller Firmware Interface * @MEI_ME_NUM_CFG: Upper Sentinel. */ enum mei_cfg_idx {
Signature · 1 line
2.41.0
Re: [char-misc-next 2/3] mei: docs: add missing entries to kdoc in struct mei_cfg_idx
Quoted 3 lines · Tomas Winkler
Document all entries in struct
mei_cfg_idx.Signed-off-by Tomas Winkler <[email protected]>
Thanks.
Quoted 23 lines
--- drivers/misc/mei/hw-me.h | 4 ++++ 1 file changed, 4 insertions(+)drivers/misc/mei/hw-me.h +4
-0@@ -102,10 +102,14 @@ static inline bool mei_me_hw_use_polling(const struct mei_me_hw *hw)* @MEI_ME_PCH12_SPS_CFG: Platform Controller Hub Gen12 5.0 and newer * servers platforms with quirk for * SPS firmware exclusion. +* @MEI_ME_PCH12_SPS_ITOUCH_CFG: Platform Controller Hub Gen12 +* client platforms (iTouch) * @MEI_ME_PCH15_CFG: Platform Controller Hub Gen15 and newer * @MEI_ME_PCH15_SPS_CFG: Platform Controller Hub Gen15 and newer * servers platforms with quirk for * SPS firmware exclusion. +* @MEI_ME_GSC_CFG: Graphics System Controller +* @MEI_ME_GSCFI_CFG: Graphics System Controller Firmware Interface * @MEI_ME_NUM_CFG: Upper Sentinel. */ enum mei_cfg_idx {
Signature · 1 line
~Randy
PATCH 3/3 mei: docs: fix spelling errors
In reply to Tomas WinklerFix spelling errors in the mei code base.
--- drivers/misc/mei/bus.c | 4 ++-- drivers/misc/mei/dma-ring.c | 2 +- drivers/misc/mei/hbm.c | 4 ++-- drivers/misc/mei/interrupt.c | 2 +- drivers/misc/mei/mei_dev.h | 4 ++-- include/linux/mei_cl_bus.h | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-)
drivers/misc/mei/bus.c +2 -2
@@ -1301,7 +1301,7 @@ static inline void mei_cl_bus_set_name(struct mei_cl_device *cldev)* @bus: mei device * @me_cl: me client * -* Return: allocated device structur or NULL on allocation failure +* Return: allocated device structure or NULL on allocation failure */ static struct mei_cl_device *mei_cl_bus_dev_alloc (struct mei_device *bus,struct mei_me_client *me_cl)
@@ -1361,7 +1361,7 @@ static bool mei_cl_bus_dev_setup(struct mei_device *bus,* * @cldev: me client device * -* Return: 0 on success; < 0 on failre +* Return: 0 on success; < 0 on failure */ static int mei_cl_bus_dev_add (struct mei_cl_device *cldev) {
drivers/misc/mei/dma-ring.c +1 -1
@@ -161,7 +161,7 @@ static size_t mei_dma_copy_to(struct mei_device *dev, unsigned char *buf,/** * mei_dma_ring_read() - read data from the ring * @dev: mei device -* @buf: buffer to read into: may be NULL in case of droping the data. +* @buf: buffer to read into: may be NULL in case of dropping the data. * @len: length to read. */ void mei_dma_ring_read (struct mei_device *dev,unsigned char *buf,u32 len)
drivers/misc/mei/hbm.c +2 -2
@@ -111,7 +111,7 @@ void mei_hbm_idle(struct mei_device *dev) }/** -* mei_hbm_reset - reset hbm counters and book keeping data structurs +* mei_hbm_reset - reset hbm counters and book keeping data structures * * @dev: the device structure */
@@ -907,7 +907,7 @@ int mei_hbm_cl_disconnect_req(struct mei_device *dev, struct mei_cl *cl) }/** -* mei_hbm_cl_disconnect_rsp - sends disconnect respose to the FW +* mei_hbm_cl_disconnect_rsp - sends disconnect response to the FW * * @dev: the device structure * @cl: a client to disconnect from
drivers/misc/mei/interrupt.c +1 -1
@@ -72,7 +72,7 @@ static void mei_irq_discard_msg(struct mei_device *dev, struct mei_msg_hdr *hdr, discard_len =0 ; }/* -* no need to check for size as it is guarantied +* no need to check for size as it is guaranteed * that length fits into rd_msg_buf */ mei_read_slots (dev, dev->rd_msg_buf, discard_len);
drivers/misc/mei/mei_dev.h +2 -2
@@ -70,9 +70,9 @@ enum mei_dev_state {/** * enum mei_dev_pxp_mode - MEI PXP mode state * -* @MEI_DEV_PXP_DEFAULT: PCH based device, no initailization required +* @MEI_DEV_PXP_DEFAULT: PCH based device, no initialization required * @MEI_DEV_PXP_INIT: device requires initialization, send setup message to firmware -* @MEI_DEV_PXP_SETUP: device is in setup stage, waiting for firmware repsonse +* @MEI_DEV_PXP_SETUP: device is in setup stage, waiting for firmware response * @MEI_DEV_PXP_READY: device initialized */ enum mei_dev_pxp_mode {
include/linux/mei_cl_bus.h +2 -2
@@ -31,11 +31,11 @@ typedef void (*mei_cldev_cb_t)(struct mei_cl_device *cldev);* @rx_work: async work to execute Rx event callback * @rx_cb: Drivers register this callback to get asynchronous ME * Rx buffer pending notifications. -* @notif_work: async work to execute FW notif event callback +* @notif_work: async work to execute FW notify event callback * @notif_cb: Drivers register this callback to get asynchronous ME * FW notification pending notifications. * -* @do_match: wheather device can be matched with a driver +* @do_match: whether the device can be matched with a driver * @is_added: device is already scanned * @priv_data: client private data */
Signature · 1 line
2.41.0
Re: [char-misc-next 3/3] mei: docs: fix spelling errors
Quoted 52 lines · Tomas Winkler
Fix spelling errors in the mei code base.
Signed-off-by Tomas Winkler <[email protected]>--- drivers/misc/mei/bus.c | 4 ++-- drivers/misc/mei/dma-ring.c | 2 +- drivers/misc/mei/hbm.c | 4 ++-- drivers/misc/mei/interrupt.c | 2 +- drivers/misc/mei/mei_dev.h | 4 ++-- include/linux/mei_cl_bus.h | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-)drivers/misc/mei/bus.c +2
-2@@ -1301,7 +1301,7 @@ static inline void mei_cl_bus_set_name(struct mei_cl_device *cldev)* @bus: mei device * @me_cl: me client * -* Return: allocated device structur or NULL on allocation failure +* Return: allocated device structure or NULL on allocation failure */ static struct mei_cl_device *mei_cl_bus_dev_alloc (struct mei_device *bus,struct mei_me_client *me_cl)@@ -1361,7 +1361,7 @@ static bool mei_cl_bus_dev_setup(struct mei_device *bus,* * @cldev: me client device * -* Return: 0 on success; < 0 on failre +* Return: 0 on success; < 0 on failure */ static int mei_cl_bus_dev_add (struct mei_cl_device *cldev) {drivers/misc/mei/dma-ring.c +1
-1@@ -161,7 +161,7 @@ static size_t mei_dma_copy_to(struct mei_device *dev, unsigned char *buf,/** * mei_dma_ring_read() - read data from the ring * @dev: mei device -* @buf: buffer to read into: may be NULL in case of droping the data. +* @buf: buffer to read into: may be NULL in case of dropping the data. * @len: length to read. */ void mei_dma_ring_read (struct mei_device *dev,unsigned char *buf,u32 len)drivers/misc/mei/hbm.c +0
-0
drivers/misc/mei/hbm.c void mei_hbm_idle(struct mei_device *dev) · line 114
Quoted 5 lines
drivers/misc/mei/hbm.c +1
-1@@ -111,7 +111,7 @@ void mei_hbm_idle(struct mei_device *dev) }/** -* mei_hbm_reset - reset hbm counters and book keeping data structurs +* mei_hbm_reset - reset hbm counters and book keeping data structures
s/book keeping/bookkeeping/
Thanks.
Quoted 59 lines
drivers/misc/mei/hbm.c +1
-1* * @dev: the device structure */ @@ -907,7 +907,7 @@ int mei_hbm_cl_disconnect_req(struct mei_device *dev, struct mei_cl *cl) }/** -* mei_hbm_cl_disconnect_rsp - sends disconnect respose to the FW +* mei_hbm_cl_disconnect_rsp - sends disconnect response to the FW * * @dev: the device structure * @cl: a client to disconnect from drivers/misc/mei/interrupt.c +1
-1@@ -72,7 +72,7 @@ static void mei_irq_discard_msg(struct mei_device *dev, struct mei_msg_hdr *hdr, discard_len =0 ; }/* -* no need to check for size as it is guarantied +* no need to check for size as it is guaranteed * that length fits into rd_msg_buf */ mei_read_slots (dev, dev->rd_msg_buf, discard_len);drivers/misc/mei/mei_dev.h +2
-2@@ -70,9 +70,9 @@ enum mei_dev_state {/** * enum mei_dev_pxp_mode - MEI PXP mode state * -* @MEI_DEV_PXP_DEFAULT: PCH based device, no initailization required +* @MEI_DEV_PXP_DEFAULT: PCH based device, no initialization required * @MEI_DEV_PXP_INIT: device requires initialization, send setup message to firmware -* @MEI_DEV_PXP_SETUP: device is in setup stage, waiting for firmware repsonse +* @MEI_DEV_PXP_SETUP: device is in setup stage, waiting for firmware response * @MEI_DEV_PXP_READY: device initialized */ enum mei_dev_pxp_mode {include/linux/mei_cl_bus.h +2
-2@@ -31,11 +31,11 @@ typedef void (*mei_cldev_cb_t)(struct mei_cl_device *cldev);* @rx_work: async work to execute Rx event callback * @rx_cb: Drivers register this callback to get asynchronous ME * Rx buffer pending notifications. -* @notif_work: async work to execute FW notif event callback +* @notif_work: async work to execute FW notify event callback * @notif_cb: Drivers register this callback to get asynchronous ME * FW notification pending notifications. * -* @do_match: wheather device can be matched with a driver +* @do_match: whether the device can be matched with a driver * @is_added: device is already scanned * @priv_data: client private data */
Signature · 1 line
~Randy