All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Francesco Valla" <francesco@valla.it>
Cc: virtualization@lists.linux.dev,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Eugenio Perez" <eperezma@redhat.com>
Subject: Re: [PATCH] spi: virtio: fix mode bits propagation from device to driver
Date: Sun, 29 Nov 2026 20:36:13 +0000	[thread overview]
Message-ID: <sashiko-outbox-240017@kernel.org> (raw)
In-Reply-To: <20261129-spi-virtio-modebits-fix-v1-1-0a406aff25f7@valla.it>

> The initial value of the device's mode_bits is set with an incorrect
> mask, because VIRTIO_SPI_CS_HIGH and VIRTIO_SPI_MODE_LSB_FIRST are not
> meant for the propagation of device capabilities but for transfers.
> This has the effect of:
> 
>   - setting SPI_CS_HIGH when the device advertises support for CPOL=0;
>   - setting SPI_LSB_FIRST when the device advertises support for CPOL=1;
>   - completely ignoring the CS_HIGH support advertised by the device.
> 
> Use the correct VIRTIO_SPI_MF_ macros instead.
> 
> While at it, use the correct macros also for the mode_bits assignments
> that follow, selecting the ones from the spi namespace (no functional
> change there, since their value is the same as the corresponding ones
> from the virtio namespace).
> 
> Fixes: f98cabe3f6cf ("SPI: Add virtio SPI driver")
> Cc: stable@vger.kernel.org
> Signed-off-by: Francesco Valla <francesco@valla.it>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261129-spi-virtio-modebits-fix-v1-1-0a406aff25f7@valla.it?part=1

  reply	other threads:[~2026-11-29 20:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 20:32 [PATCH] spi: virtio: fix mode bits propagation from device to driver Francesco Valla
2026-11-29 20:36 ` sashiko-bot [this message]
2026-11-30 19:20 ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-240017@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=eperezma@redhat.com \
    --cc=francesco@valla.it \
    --cc=mst@redhat.com \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=virtualization@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.