Skip to content

Commit 18cc0ad

Browse files
baruchsiachbroonie
authored andcommitted
spi: document the transfer_one spi_master callback
Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Mark Brown <broonie@linaro.org>
1 parent 6e5f526 commit 18cc0ad

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

‎Documentation/spi/spi-summary‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,21 @@ SPI MASTER METHODS
545545
spi_finalize_current_message() so the subsystem can issue the next
546546
transfer. This may sleep.
547547

548+
master->transfer_one(struct spi_master *master, struct spi_device *spi,
549+
struct spi_transfer *transfer)
550+
The subsystem calls the driver to transfer a single transfer while
551+
queuing transfers that arrive in the meantime. When the driver is
552+
finished with this transfer, it must call
553+
spi_finalize_current_transfer() so the subsystem can issue the next
554+
transfer. This may sleep. Note: transfer_one and transfer_one_message
555+
are mutually exclusive; when both are set, the generic subsystem does
556+
not call your transfer_one callback.
557+
558+
Return values:
559+
negative errno: error
560+
0: transfer is finished
561+
1: transfer is still in progress
562+
548563
DEPRECATED METHODS
549564

550565
master->transfer(struct spi_device *spi, struct spi_message *message)

0 commit comments

Comments
 (0)