Skip to content

Commit c373643

Browse files
committed
spi: Remove note about transfer limit for spi_write_then_read()
Originally spi_write_then_read() used a fixed statically allocated buffer which limited the maximum message size it could handle. This restriction was removed a while ago so that we could dynamically allocate a buffer if required but the kerneldoc was not updated to reflect this, do so. Reported-by: Marc Kleine-Budde <[email protected]> Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent aee67fe commit c373643

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/spi/spi.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3858,8 +3858,7 @@ static u8 *buf;
38583858
* is zero for success, else a negative errno status code.
38593859
* This call may only be used from a context that may sleep.
38603860
*
3861-
* Parameters to this routine are always copied using a small buffer;
3862-
* portable code should never use this for more than 32 bytes.
3861+
* Parameters to this routine are always copied using a small buffer.
38633862
* Performance-sensitive or bulk transfer code should instead use
38643863
* spi_{async,sync}() calls with dma-safe buffers.
38653864
*

0 commit comments

Comments
 (0)