All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] spi: virtio: fix max frequency setting plus minor cleanup
@ 2026-09-15 20:24 Francesco Valla
  2026-09-15 20:24 ` [PATCH 1/2] spi: virtio: fix max frequency setting Francesco Valla
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Francesco Valla @ 2026-09-15 20:24 UTC (permalink / raw)
  To: Haixu Cui, Mark Brown
  Cc: virtualization, linux-spi, linux-kernel, Francesco Valla

Hello,

while developing a virtio-spi device, I noticed that the spi-virtio
driver in not honoring the indication on the maximum transfer frequency
supported by the device that this one indicates using the config space.
Patch 1 contains a fix for that.

While at it, I did a minor cleanup inside the function parsing the
config space, where a value was stored into the driver's private data
without a further usage, wasting (a very tiny amount of) memory.

This was tested against a (still unreleased) virtio device running on
a Cortex-M33, with remoteproc as virtio transport.

Regards,
Francesco

Signed-off-by: Francesco Valla <francesco@valla.it>
---
Francesco Valla (2):
      spi: virtio: fix max frequency setting
      spi: virtio: drop unused field from private data

 drivers/spi/spi-virtio.c | 20 ++++++++------------
 1 file changed, 8 insertions(+), 12 deletions(-)
---
base-commit: 9b87fdc9af2fbfcdb5c24a64139685ef80f6573f
change-id: 20260915-virtio-spi-fix2-ed832a0c069e

Best regards,
--  
Francesco Valla <francesco@valla.it>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-09-18  9:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-15 20:24 [PATCH 0/2] spi: virtio: fix max frequency setting plus minor cleanup Francesco Valla
2026-09-15 20:24 ` [PATCH 1/2] spi: virtio: fix max frequency setting Francesco Valla
2026-09-15 20:51   ` sashiko-bot
2026-09-15 20:24 ` [PATCH 2/2] spi: virtio: drop unused field from private data Francesco Valla
2026-09-15 20:52   ` sashiko-bot
2026-09-17 14:54 ` [PATCH 0/2] spi: virtio: fix max frequency setting plus minor cleanup Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.