virtualization/linux-yocto: Backport virtio SCMI driver.
[AGL/meta-agl-devel.git] / meta-egvirt / recipes-kernel / linux / linux-yocto / virtio-scmi / 0002-firmware-arm_scmi-Document-that-max_msg-is-a-per-cha.patch
1 From 30de0a5e1fec42589469e5ec8951d15d364df63a Mon Sep 17 00:00:00 2001
2 From: Igor Skalkin <igor.skalkin@opensynergy.com>
3 Date: Thu, 5 Nov 2020 22:21:08 +0100
4 Subject: [PATCH] firmware: arm_scmi: Document that max_msg is a per channel
5  type limit
6
7 struct scmi_desc.max_msg specifies a limit for the pending messages.
8 This limit is a per SCMI channel type (tx, rx) limit. State that
9 explicitly in the inline documentation. The following patch will add an
10 op to override the limit per channel type.
11
12 Co-developed-by: Peter Hilber <peter.hilber@opensynergy.com>
13 Signed-off-by: Peter Hilber <peter.hilber@opensynergy.com>
14 Signed-off-by: Igor Skalkin <igor.skalkin@opensynergy.com>
15 Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
16 ---
17  drivers/firmware/arm_scmi/common.h | 4 ++--
18  1 file changed, 2 insertions(+), 2 deletions(-)
19
20 diff --git a/drivers/firmware/arm_scmi/common.h b/drivers/firmware/arm_scmi/common.h
21 index aed192238177..38e6aabbe3dd 100644
22 --- a/drivers/firmware/arm_scmi/common.h
23 +++ b/drivers/firmware/arm_scmi/common.h
24 @@ -231,8 +231,8 @@ struct scmi_transport_ops {
25   *
26   * @ops: Pointer to the transport specific ops structure
27   * @max_rx_timeout_ms: Timeout for communication with SoC (in Milliseconds)
28 - * @max_msg: Maximum number of messages that can be pending
29 - *     simultaneously in the system
30 + * @max_msg: Maximum number of messages for a channel type (tx or rx) that can
31 + *     be pending simultaneously in the system
32   * @max_msg_size: Maximum size of data per message that can be handled.
33   */
34  struct scmi_desc {