diff options
| author | Igor Skalkin <[email protected]> | 2021-08-03 14:10:19 +0100 |
|---|---|---|
| committer | Sudeep Holla <[email protected]> | 2021-08-05 10:23:23 +0100 |
| commit | c92c3e382ebd2382b26a41e312a266a40c4fb05c (patch) | |
| tree | a3bb88ac8bcecf0ad212941d7a1e806ced050fdb /drivers/net/wwan/iosm/iosm_ipc_protocol_ops.c | |
| parent | a7b1138b921dc19f859296b2eb3daa7c5e22c354 (diff) | |
firmware: arm_scmi: Add method to override max message number
The maximum number of simultaneously pending messages is a transport
specific quantity that is usually described statically in struct scmi_desc.
Some transports, though, can calculate such number only at run-time after
some initial transport specific setup and probing is completed; moreover
the resulting max message numbers could also be different between rx and
tx channels.
Add an optional get_max_msg() operation so that a transport can report more
accurate max message numbers for each channel type.
The value in scmi_desc.max_msg is still used as default when transport does
not provide any get_max_msg() method.
Link: https://lore.kernel.org/r/[email protected]
Co-developed-by: Peter Hilber <[email protected]>
Co-developed-by: Cristian Marussi <[email protected]>
Signed-off-by: Igor Skalkin <[email protected]>
[ Peter: Adapted patch for submission to upstream. ]
Signed-off-by: Peter Hilber <[email protected]>
[ Cristian: refactored how get_max_msg() is used to minimize core changes ]
Signed-off-by: Cristian Marussi <[email protected]>
Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_protocol_ops.c')
0 files changed, 0 insertions, 0 deletions