Re: [PATCH v7 08/13] spi: spidev_test: allow disabling rx or tx buffers
From: Mark Brown
Date: Thu Sep 24 2026 - 16:55:31 EST
On Thu, Sep 24, 2026 at 03:43:58PM +0200, Jonas Rebmann wrote:
> From: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
>
> Allow not providing rx or tx buffers. This is useful to check if drivers
> that don't use SPI_CONTROLLER_MUST_RX (or -TX respectively) handle their
> operations correctly without a buffer.
> - _write_count += len;
> - _read_count += len;
> + if (do_tx)
> + _write_count += len;
> + if (do_rx)
> + _read_count += len;
Separate issue but this exposes the fact that show_transfer_rate()
prints these with the wrong labels, previously it made no odds since
they were incremented in sync and always had the same value.
Attachment:
signature.asc
Description: PGP signature