]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
firmware: arm_scmi: Make raw debugfs entries non-seekable
authorCristian Marussi <cristian.marussi@arm.com>
Fri, 15 Mar 2024 14:03:24 +0000 (14:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 09:19:27 +0000 (11:19 +0200)
commitc0781d6898dcae9f8a7387a9ee60b8a651d45c5f
tree9386f6ec0a3e4f91ed3d95257413127b083466d0
parent6f9a8a54bb8e51096eb98859d6477b6e3a7bd799
firmware: arm_scmi: Make raw debugfs entries non-seekable

[ Upstream commit b70c7996d4ffb2e02895132e8a79a37cee66504f ]

SCMI raw debugfs entries are used to inject and snoop messages out of the
SCMI core and, as such, the underlying virtual files have no reason to
support seeking.

Modify the related file_operations descriptors to be non-seekable.

Fixes: 3c3d818a9317 ("firmware: arm_scmi: Add core raw transmission support")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20240315140324.231830-1-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/arm_scmi/raw_mode.c