diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-02-12 12:11:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-02-12 12:11:24 -0500 |
commit | 7df4d0c9784117f7bbaec17e9ac7f6545049b56d (patch) | |
tree | d74ce8205b4d3ab1f6b899bbdb20e8a84740bf8b /Documentation | |
parent | 641f832c73babf0405c7afb41c8bfed999ebbad7 (diff) | |
parent | cf20662db4dfade737015036fa9c63e888350c82 (diff) |
Merge tag 'spi-v3.14-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi fixes from Mark Brown:
"A few driver and documentation fixes, plus a fix for double error
handling which had crept in due to the confusing documentation - it
wasn't clear if the core or the driver was responsible for cleanup in
error cases so both tried to do it with unfortunate results"
* tag 'spi-v3.14-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
spi: nuc900: Set SPI_LSB_FIRST for master->mode_bits if hw->pdata->lsb is true
spi: rspi: Document support for Renesas QSPI in Kconfig
spi: Fix crash with double message finalisation on error handling
spi: correct the transfer_one_message documentation wording
spi: document the transfer_one spi_master callback
spi: spi.h: clarify the documentation of transfer_one
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/spi/spi-summary | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/Documentation/spi/spi-summary b/Documentation/spi/spi-summary index f72e0d1e0da8..7982bcc4d151 100644 --- a/Documentation/spi/spi-summary +++ b/Documentation/spi/spi-summary | |||
@@ -543,7 +543,22 @@ SPI MASTER METHODS | |||
543 | queuing transfers that arrive in the meantime. When the driver is | 543 | queuing transfers that arrive in the meantime. When the driver is |
544 | finished with this message, it must call | 544 | finished with this message, it must call |
545 | spi_finalize_current_message() so the subsystem can issue the next | 545 | spi_finalize_current_message() so the subsystem can issue the next |
546 | transfer. This may sleep. | 546 | message. This may sleep. |
547 | |||
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 | ||
547 | 562 | ||
548 | DEPRECATED METHODS | 563 | DEPRECATED METHODS |
549 | 564 | ||