Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp563322rdb; Tue, 23 Jan 2024 07:55:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGt/9BbaUMqMeExq36SiWma2/QOihtsXlRrgNTez+ZiyH3jjpgiMaEn3s6LYtVLtt1Cf/6Z X-Received: by 2002:a05:6a21:2d8c:b0:19a:55a8:c04a with SMTP id ty12-20020a056a212d8c00b0019a55a8c04amr6707842pzb.78.1706025301292; Tue, 23 Jan 2024 07:55:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706025301; cv=pass; d=google.com; s=arc-20160816; b=0Fk3iW0Sv0cfgbLgMMSLPfnVEE9NnYWSZmJO1QsceLdtimlaAElsUzJzjUbYeVZT90 qJlzxZZyIeP4GlL4tuAiLiKMQ1720J01qeCqjBKqLkam1t2m+3GIiY4Xem1rKC7ipPnE fXwnLWFEgdOv0CXAQ0vgFeN3Tt5bo3NlTexan6xa+uiLjGj9bjyQaz7b3Aa2er1WC3Ou DmePBPVrF43SNzxCSgmVDWMXkngL7Q5PAGnle9JWi6jGVVFuBLOhnbL+YLr72xc0Usbe TRELVzO4ZYMfnMMP4k6+hD4Lfh07ap6DlfQG3z3xxyuO0OCMfRf5jN/iv9UfdHaPujEj n6tQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=e+YMzDyGNc/zXRSdUvNiD+W2fMYH+c8kFJSxO3iDixs=; fh=neYYEYDDBiloBUX0offulAnrRZM+Gy1+1fqKS4b9oG8=; b=GnAXN91VoDTi5QmIZEux73D3vH+MkkB7GkmK09KLxSYPn61NUeRr4l/O2CEG2P1iSa omrvFDBJYkbHQwpQY8MCjprqN0VIlP5hJdidWOLTh9ho422hFb6GaC/ZSeOCDDin+COl jZGVOyU/FtLPy4iP0sc8b8gB5rM7LYWLdGReettVPAgwHWCSFIsC/Q+mobofXzIGq2AJ +1PGycLs5tkYN8g2CUMziFQk1f1ET8uskV9h8UDYxnUlcay5ZdILsKGdgQfZl/jGT2mt u6jwQVJ0N25Qy4LzwHzad9ApvDBHyRKywt34ucAxf8RA2Xb6G830bxmIEkLjGKO2xJE9 kKwQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mpekW4G5; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-35549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35549-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a24-20020a056a001d1800b006dd7b2c8936si1102158pfx.251.2024.01.23.07.55.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:55:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mpekW4G5; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-35549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35549-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 4C272B28014 for ; Tue, 23 Jan 2024 15:38:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2DD196169E; Tue, 23 Jan 2024 15:34:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mpekW4G5" Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3098660DD2 for ; Tue, 23 Jan 2024 15:34:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706024080; cv=none; b=iaN4O9iZFTBGjcyRp0j+nf5LmgVJjVcdJMgMvKI6r2juaS/EkLyw5P6M2EsQGlibN1ys6usKVVeSOTGYa7ezp+no6pVv/lC+HivFOZEriWlT155mw55AEJ7SuYeeOb7fOI6x4wXDxudUeFj/GMItPzFUbagaxLuWTTboO1EDQGc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706024080; c=relaxed/simple; bh=azFcV/mgHmxVyLvuazK3I1eqSDB4DgGiyfhf9SMqDgs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ggvi5rYRkLcpMyFRFBTkRUQHSxJgluDSIItv4nI/AO7mZtGWPoDMuSKoakqYHjVXbpbSbY8E4o5S4MW+QFMNgJ+Y3IGFsPvQ2A6g0Cdx3QgLJUSDLrhnEXwa+PujwI6hziQPfE1KXcJUJods0O+ME2rFRnuH0/7s4oroWWjswpc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=mpekW4G5; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-40e913e3f03so56392355e9.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=vger.kernel.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=mpekW4G5d289qPbVUvpkAx8dBz1CQgT4/WEtGZYW7xdwyvJSb9jRMGSPwByj1kCtgF 2LdcPLya6CDBrGEfsyh2EV/dJdPCVn3YQ4C0xEOFDCy/Eu6OUXZu27B5pyfGy8fcYsxl 52TuZpwdJlbRz88Wyc/Ou58kG9b70Oelvt32wxIZ05LGnT1mK/egInn2APLvu4brVNQN 3enQu9MxqjIZoVvFdlZw86KAQJKCbxWuDeZ7sJC6cNQQDqkgGPK2RO8uOH1CWZiuP7NY Z37j4r6HSoQyIzT1xgKfjEDPcNlSJuJAT3JTstiqQAWY0E88S3MLVMrBB7NTP54WiSj1 S0ZQ== 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=PrPn0mKIg9vzZx/IGVRh7lPYSD3RKJFmucf6OsVIr9nyhZFjCRilGG3UChWPOOeBd4 GI5+HyoQBtnpcAAt8NSPRNNoVJVQ5lEjLk/GZr/YDghGUhYWng2jjb1ynr/v3FWz5weQ qcLWqnfxyNZqeRg4l1aLQzmxmiF/ZPs8c5fFwpYY9FSFMuD0b9B+IEXl4L4KA7PDVcJo hGRzFbrUxNT/mCvnBI+epo6FbJDC8By/ZWOLAwyMBa3/lkbjqp021m2769oxuj41/KDW 1j6t0ScwwoU8ZwoeCk7knfZKztwGuK/KNBqbDZUAjo7AsfW+8pfGKzNIPDBo6uCJTOh7 /tHA== X-Gm-Message-State: AOJu0Yz0rPad2R9G4fcmxm0f1KiJh/+iunHY3qh3Mc3X6L4OYZAtqYla 1LB3bkU8TgnKeqfacsPwa7LyqxEGJw7jzrD0yfvSnzE2yIz/OlmFb6Ao1miJHE4= 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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); -- 2.43.0.429.g432eaa2c6b-goog