]> Gentwo Git Trees - linux/.git/commit
firmware: arm_scmi: Calculate virtio PDU max size dynamically
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 28 Oct 2024 12:01:46 +0000 (12:01 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 28 Oct 2024 14:51:10 +0000 (14:51 +0000)
commit3229e33311f86c3cbf3b0453ce242e74a5f11133
treeda46c34ff6cc4f1f65921d10e2f32612655f077c
parent5c14f38893d0b9daefc2c53b8ccd1692c7ced07c
firmware: arm_scmi: Calculate virtio PDU max size dynamically

SCMI virtio transport maximum PDU size is currently hardcoded at build
time; this will not play well with the possibile retrieval of a different
size at run-time.

Make the virtio transport derive the maximum PDU size from the max_msg_size
provided by the SCMI core.

No functional change.

Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Message-Id: <20241028120151.1301177-3-cristian.marussi@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/transports/virtio.c