Message ID | 20240123153421.715951-12-tudor.ambarus@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 B67F6C47DDB for <linux-arm-kernel@archiver.kernel.org>; Tue, 23 Jan 2024 15:35:49 +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=6X0zTijgwtuaxhDxXU9G1hg8dysADdEA8h3WcsbppNA=; b=kzSvAPbYmfUcnq CxYqcGXlVEfU/BjD4onU1cYbg25mXYFc3IrhcbKG93qqJLFhxF/lN1BFBfvYjiVxHMJmMIb5ZrOaZ +JBITW7wBcn5wSZoA3eUKbqI2Jbu3pyoKgs+90B2PeNjztkyhO3CsqVEE8zy4X0R1rRShVuTi7Sa7 40PRT/iECRJzIQBaL+FDLjdhnel3f5dxjy9GI2i9WrMacqJOp2UV5LJbnpqMhXJ7ymoI3ogJlaFFv WL13ISiAQ0vb7NNvHbJE8BxnPvfp1+B2nto9s9stCyJL3BilJTuejZnnSJB3nGOcYwyk2UPrJFExO VlK2OehZ9bf66NJDuQvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSInz-00H3sP-0J; Tue, 23 Jan 2024 15:35:15 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSInP-00H3OD-0t for linux-arm-kernel@lists.infradead.org; Tue, 23 Jan 2024 15:34:42 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-40eacb4bfa0so24558715e9.1 for <linux-arm-kernel@lists.infradead.org>; Tue, 23 Jan 2024 07:34:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706024075; x=1706628875; 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=BB2Xa0B54slaxQ4TFzJZkt9rUGgpa6L4k5N0BA4Wago=; b=tPpwYt2CnPBE7H9lPC8ptm9iB0PmDKK2ApnxJBeiT/bbdd+YVCOCgg6hkIl2Qel7nD yxi8ElXhhAvO0gvZ8B5PzZ6lJdcbQSU+Ng2K7BaTYWhcYITf9f5Rdqc62R/U6z8WpWd2 QQ62FiGPa2XmYCsVQ3ErTCnRB4q02LOwnovZrZbIg/SSzmv12BTGfLqjCj7ZnAX4OAPe arkeEb4nQ/hy0R9lkk4GBtPcI/L1p6pGam9aEGbtwJ4OzcpJYCI2d+iUyth3lU6ceIIo rsW7EP8J50lRKO77LbadNRaFu8JtIwyq2TthUgWomRRDLg1HJtWaF7sNsHkEKvJIFEKM EPsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706024075; x=1706628875; 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=BB2Xa0B54slaxQ4TFzJZkt9rUGgpa6L4k5N0BA4Wago=; b=PSt984XMkSEE6rZRyK/uhtngWMkzA87UKM4WQ/xqh+DnyinXVdNaVc0JMBXEtvdr7M is0z6ykezXUDrUJ+DEH0+Y9x+RiCa6Fttjo09xs164Ufsq//oGN4Jt59novhVs0Z5UjG ij8zGpmxn6QB0pwCjRonRfl8hxu5RLrBxSG8SY9UQ266oYcOyR5QKpbRxYBW+EmvvgWd +kF8CdYXXHtXJGRS21l9M/58URK8Y6aX5y5oXUgj9CEL2XEp83ZAJ4s0gJFEzRVL74aM O3+b36DA3JtHSnVjCSRNAGSk3vbbh1dUMhZVemxbU9OBPC/Q8CGjTGBgKG3dwUMq/Nb+ F3qA== X-Gm-Message-State: AOJu0Yxu88GNo6W2wwebVlrpaYo+ekPrBw3L+6ab693WQFonyXr1TkMc D84UosxahGeY1NAaGrMbkRVEDC2ZWYTt2yXjorcaTn+tb9jnQxs+EqA3NgwYwP4ywced5ZiRnMN kR+k= X-Google-Smtp-Source: AGHT+IEp2Ri4s9MSjNV1VlE0RaiDM1zebT1VTZlSVw5LZqKCz7pZak2vpPPA7KZ21bzUs72y5miHDg== X-Received: by 2002:a05:600c:2108:b0:40e:62c9:9e6f with SMTP id u8-20020a05600c210800b0040e62c99e6fmr241876wml.184.1706024075595; Tue, 23 Jan 2024 07:34:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:34:34 -0800 (PST) From: Tudor Ambarus <tudor.ambarus@linaro.org> 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 <tudor.ambarus@linaro.org> Subject: [PATCH 11/21] spi: s3c64xx: check return code of dmaengine_slave_config() Date: Tue, 23 Jan 2024 15:34:10 +0000 Message-ID: <20240123153421.715951-12-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_073439_316931_1B44A746 X-CRM114-Status: GOOD ( 11.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
spi: s3c64xx: winter cleanup and gs101 support
|
expand
|
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 4b13252da8b8..cc33647eab14 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -296,7 +296,9 @@ static int prepare_dma(struct s3c64xx_spi_dma_data *dma, config.dst_maxburst = 1; } config.direction = dma->direction; - dmaengine_slave_config(dma->ch, &config); + ret = dmaengine_slave_config(dma->ch, &config); + if (ret) + return ret; desc = dmaengine_prep_slave_sg(dma->ch, sgt->sgl, sgt->nents, dma->direction, DMA_PREP_INTERRUPT);
Check the return code of dmaengine_slave_config(). Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org> --- drivers/spi/spi-s3c64xx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)