From patchwork Mon May 25 13:31:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 11568849 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2007A1392 for ; Mon, 25 May 2020 13:31:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EFD452084C for ; Mon, 25 May 2020 13:31:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590413496; bh=UkqhXu9EJmYN2x4IC2FaMn2Jq7MbeHmdM2N/fexFtsU=; h=From:To:Cc:Subject:Date:List-ID:From; b=aJ43oDtd11wdKP04DJ5S/1DKydzkqElXL1+cieINZDEgT5IYPMPjrFBg2tANniBkx xGy5A8qEZpKzDSvR8pcKRNklk/U8OwkYaQbpt64f2/3UhjVeNSHJwcN4sXi73blEtA N00dfmMDCO3MrIDGsrUlYp4gcCX2C44WIsWVxqZc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388794AbgEYNbf (ORCPT ); Mon, 25 May 2020 09:31:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:44966 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388737AbgEYNbf (ORCPT ); Mon, 25 May 2020 09:31:35 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BB5A42078B; Mon, 25 May 2020 13:31:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590413495; bh=UkqhXu9EJmYN2x4IC2FaMn2Jq7MbeHmdM2N/fexFtsU=; h=From:To:Cc:Subject:Date:From; b=CInfonX+apQkbkDvlMkDLF+H+i5aylFK0t/knONKfJi8bgWOAGy2g5KkHG1lxwQCM O9ZTVElrKyTfvacyhhHdt4hmoYZCkU5x4klcQMKpr68iVPfuP5JUGYKaitVXrSguls Jnb2GlY516TsQ/fFPAxxW14LcqvUw5ZcMJHj/cdo= From: Mark Brown To: Marc Kleine-Budde Cc: linux-spi@vger.kernel.org, Mark Brown Subject: [PATCH] spi: Remove note about transfer limit for spi_write_then_read() Date: Mon, 25 May 2020 14:31:20 +0100 Message-Id: <20200525133120.57273-1-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org 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 Signed-off-by: Mark Brown --- drivers/spi/spi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index c69d23379e08..a6f3f1ae72d7 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -3869,8 +3869,7 @@ static u8 *buf; * is zero for success, else a negative errno status code. * This call may only be used from a context that may sleep. * - * Parameters to this routine are always copied using a small buffer; - * portable code should never use this for more than 32 bytes. + * Parameters to this routine are always copied using a small buffer. * Performance-sensitive or bulk transfer code should instead use * spi_{async,sync}() calls with dma-safe buffers. *