From patchwork Tue Jan 23 15:34:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13527637 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1193C48260 for ; Tue, 23 Jan 2024 15:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZEkajcP51e6Vmv4BVMRqMGrScwbJTHraQxxiGBkPsoQ=; b=HSqZjj8qaqIxRF KBvZXozMVEs1A24La4vOIsdN2wTja1/rdJQYvIv1GVEe5mBOyEtYJdYbKbks40K/6k0hvIGMV6ffQ Q2pBtTRdT18mw4bZhULk6EnSJ0E+JMXK9Bs3BBnS+Ri5xNnIXFux2pwVN62NT9cUUXtDgFoCWPPjN 1N0FzFqOzbr5FMbfmZlN+Ihk+fSiZpjJgTqTkVBB9gMecpx9KedWePFIYoiVJevJoF+aL/Gptr9X0 GzV9UUeZoH3kq6VJu52tfmTYvUoF9ByeqdGmlcWKDEIo7pI5OcxA36DVJoKjLg/ZaDSDmhG67afVf 6TKDY50AWtuuYgu5YQsg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSIo0-00H3tE-25; Tue, 23 Jan 2024 15:35:16 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSInQ-00H3Oj-0M for linux-arm-kernel@lists.infradead.org; Tue, 23 Jan 2024 15:34:42 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40e913e3f03so56392345e9.3 for ; Tue, 23 Jan 2024 07:34:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706024076; x=1706628876; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=e+YMzDyGNc/zXRSdUvNiD+W2fMYH+c8kFJSxO3iDixs=; b=EoDIhh/uTUH6qwjhzAZNGFKp8l3hJ0h2JnPHBrsrdVHaB3tKpguwsn7PgZxS85cI36 KE9jom964Q71rYo2djmJXTnIztJIXF/OWwt1serZsemJiDvcCcAnMR1WttP/KRZc53FH NYi1E42hIQo0mt/wdDnz4VqYP2lM6lE7fMoKyhB9mgdfC35VQag6lkANb+e4ouj2C2xJ kAB3D0c+iwaVpdVqTZt5y8X6lA8JsPtoQ5mKtapsv4lviZ8QEXm3JrE34nQf0UKoGh3z s2R3O7e2WfmPRhejfYP3aTerttsiPRoJEGO9kkEjVhzi6O5tx1wtCHdTmUbMflYmEm8n 1tpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706024076; x=1706628876; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=e+YMzDyGNc/zXRSdUvNiD+W2fMYH+c8kFJSxO3iDixs=; b=b3KSafkx3Twymkdu5r6ercXdHUhw3nOoYmzgQpkvxt+uHfugeXctd2iLJD56E2Oo3z NAbOcnUoFHI17I+9SQ/IbDVPBigC4+8OwnyEdCcB3V/kc2XR/yr3XZljusYysZi5PKed FubZUIe7mEal6xEa+dDqQgv3I6FXXk+CtsPA0ct/kIoRftS7S8uLwoQ7+/ZAaeqpGAS3 CxtXSmUP6TcVtl2HTatCG5NeApW+HgwnV52MbsgfQNYax0WFoQPc447zXEdUEyiAG4bN 2g53FTHXRlRTk1GVeYwWsFGpIa0YtxPFcp9hmfCi0hY8QQpQVQ/DBdo1Gp04ATkuJnLt cRDw== X-Gm-Message-State: AOJu0YyR4Ml6tHfekb7m4BbFbgC+sG0hlT0NMIGMIwyyzmyKA+9Zb0qO NOAgxQgAnFlMK5jTZV2EDMq9mhqA44qn3zeuVtzaxad6ktDLrxmHRqLeRETCRoU= X-Google-Smtp-Source: AGHT+IHzfN1qnVR4UVsM9mJTMqExDKUWTqRX/JTb9E8bTyCwoGow8h3nokE07jWiTAJ313YlGKAHHw== X-Received: by 2002:a05:600c:12cb:b0:40e:4179:d060 with SMTP id v11-20020a05600c12cb00b0040e4179d060mr280263wmd.65.1706024076431; Tue, 23 Jan 2024 07:34:36 -0800 (PST) Received: from ta2.c.googlers.com.com (88.140.78.34.bc.googleusercontent.com. [34.78.140.88]) by smtp.gmail.com with ESMTPSA id p21-20020a05600c359500b0040e3488f16dsm42457536wmq.12.2024.01.23.07.34.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:34:35 -0800 (PST) From: Tudor Ambarus To: broonie@kernel.org, andi.shyti@kernel.org, arnd@arndb.de Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, alim.akhtar@samsung.com, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, semen.protsenko@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus Subject: [PATCH 12/21] spi: s3c64xx: propagate the dma_submit_error() error code Date: Tue, 23 Jan 2024 15:34:11 +0000 Message-ID: <20240123153421.715951-13-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240123153421.715951-1-tudor.ambarus@linaro.org> References: <20240123153421.715951-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240123_073440_158256_7EEE019D X-CRM114-Status: GOOD ( 11.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Propagate the dma_submit_error() error code, don't overwrite it. Signed-off-by: Tudor Ambarus --- drivers/spi/spi-s3c64xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index cc33647eab14..2b088a190ab9 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -315,7 +315,7 @@ static int prepare_dma(struct s3c64xx_spi_dma_data *dma, ret = dma_submit_error(dma->cookie); if (ret) { dev_err(&sdd->pdev->dev, "DMA submission failed"); - return -EIO; + return ret; } dma_async_issue_pending(dma->ch);