From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9337D1DA24 for ; Wed, 4 Oct 2023 18:29:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nqe0a6Cj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1227AC433C8; Wed, 4 Oct 2023 18:29:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696444154; bh=FMDinPtqb7+KctuzoDP51lE8htaYs12N/yg2HmFppz4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nqe0a6CjxMtMsSidZykMmGX/xSxBwwYdFO6Pd5C8FwDqi5aupaCj5pjlJTP3FMZmY ikL/jZDaxe3Q8Tf/sk//4fom3P/ynrjX2hDDxZh6LhT4AIaU6ctRfrkERoqvqiJc4o LpVp6zljRo9UqmANXSj13IC4nJhnep1oOVlYP778= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Charles Kearney , Mark Brown , Sasha Levin Subject: [PATCH 6.5 120/321] spi: spi-gxp: BUG: Correct spi write return value Date: Wed, 4 Oct 2023 19:54:25 +0200 Message-ID: <20231004175234.790194065@linuxfoundation.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231004175229.211487444@linuxfoundation.org> References: <20231004175229.211487444@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.5-stable review patch. If anyone has any objections, please let me know. ------------------ From: Charles Kearney [ Upstream commit 1a8196a93e493c0a50b800cb09cef60b124eee15 ] Bug fix to correct return value of gxp_spi_write function to zero. Completion of succesful operation should return zero. Fixes: 730bc8ba5e9e spi: spi-gxp: Add support for HPE GXP SoCs Signed-off-by: Charles Kearney Link: https://lore.kernel.org/r/20230920215339.4125856-2-charles.kearney@hpe.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-gxp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-gxp.c b/drivers/spi/spi-gxp.c index 684d63f402f34..aba08d06c251c 100644 --- a/drivers/spi/spi-gxp.c +++ b/drivers/spi/spi-gxp.c @@ -195,7 +195,7 @@ static ssize_t gxp_spi_write(struct gxp_spi_chip *chip, const struct spi_mem_op return ret; } - return write_len; + return 0; } static int do_gxp_exec_mem_op(struct spi_mem *mem, const struct spi_mem_op *op) -- 2.40.1