Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp199262rdb; Thu, 25 Jan 2024 12:20:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5okkDFjpxumVVjGdK4QU4sNNsnafyHVlEmG2+KExOHwbP5vlKHFcibptOsnU7a0TmylgR X-Received: by 2002:a05:6214:2483:b0:67f:c133:3922 with SMTP id gi3-20020a056214248300b0067fc1333922mr242434qvb.129.1706214040800; Thu, 25 Jan 2024 12:20:40 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 23-20020a05620a04d700b00781792e09casi13455870qks.572.2024.01.25.12.20.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 12:20:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aA34IaJ5; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-39242-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CA51E1C21F1D for ; Thu, 25 Jan 2024 20:20:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0903C137C40; Thu, 25 Jan 2024 20:19:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aA34IaJ5" Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 E0494137C2E for ; Thu, 25 Jan 2024 20:19:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706213998; cv=none; b=HDVl/S9qM+ZBDhWQLqXT3jWOJOTKsaaCqHE79DSFxhC64XMWoOmuRxQJUiwY6WceZfcsrKT9mjjF27Mbmw3oU3v6SLb4596gvwNdVRJFdkxJgI3QpkI7xETv4BeQ7TUoqoSZzXAsOVlPmeQrrg+avkeKXl6A8no6hiMMU9Ckgbs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706213998; c=relaxed/simple; bh=PhI9LW/VlbekrhSAPPRbJUPp4nixxFeRGjHAOy1SKHg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=KCu6G204z4/PdApFJ/NBBIxTx31AZfd0TUkokWiGQ6pNsJGb365y5lwgDPz+DIRW/bEh1VDAbrV0ChIgYipf6IeVaz4dwuaiCnLFAOkFYC5Vy/6PWHPsBIJqiLBuTspMvBgqaFH4CjfY8gSYE3pVxc2LeVClW7Vm0Fa04AZ/2iU= 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=aA34IaJ5; arc=none smtp.client-ip=209.85.214.170 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-pl1-f170.google.com with SMTP id d9443c01a7336-1d7232dcb3eso37325855ad.2 for ; Thu, 25 Jan 2024 12:19:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706213996; x=1706818796; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1AMn0y6UWpR7xw27jljzDWKtm5PPL6Cu6Mug2W0VcTk=; b=aA34IaJ54qmnN4639ntC0tBaqILwKLtWGgrubPDL42t7BoVYBjeWxUYWALtJ61N5dC 3JhqHizcKmyiEjULvkyUaQBVdkxCRxx6Bk3CvgNgnSrJfeUmXMBfmdwBCtIxZPb/9bWo Ei/vFFMofDL+pP/fP90jLr3MsrZkTiRcClsByswP4HWxICQKZPP+ZYWLhSzb7MruJErZ HJDYCLuen6vJzs+/qlFZchYBYCHK/Gu15yOlA098gCZQY9wP/L4akPdFMbWAokPpzzbP 6uCqxY/GXwlRkficGYt4NTcIYYQtwJEmzP5V7GfMzqvvqakLX8aUMNKIhmdvzWBDc+GO MRHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706213996; x=1706818796; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1AMn0y6UWpR7xw27jljzDWKtm5PPL6Cu6Mug2W0VcTk=; b=NEwyhh9IgSwxwsIcxx91/wdBDi2IvLEHZoEdu+19AY4bY8KewZto5627nd0NIXpIpv znymwYr9VgvqpRhv51/OLhVNuK5gZl6R/HmEz77caWHSiPkOI0fA9DqB78thzRf/z7qx o/ngUeFk6e2Vy09zjDIDSpbgDbuGdhh2lqbwnB7wlTP8UcPGBArEc2qxRhz0YvovHcf+ ERSPg/al5GXt+d9B0SSJAr7Lx+b90KbJjL2EM/nqDHzoW1SATqbhduUItfabPWvGQJZR T6Lbs+H/32Qha2+NANZtok9UQAk0YPblf9mf9iae9rylltRxxLL0ZUsnFgG2Ri874tCU QQMA== X-Gm-Message-State: AOJu0YwVMILabgiY5BRRSDAIW/K11XL5SXuSn9VnJEuDtHtlqvVPqCCa fsQHI6PmB3iBZUjMLdCUQFd2iXuFbiduEi/DDS5G3aeMHa2nMrbjejIxutdc4sXAOhenerllyfp I3HwmVsrrWB+BUYFlt1YyJaZEnjDnwroRq0GSmw== X-Received: by 2002:a17:902:ecc4:b0:1d8:94e4:7718 with SMTP id a4-20020a170902ecc400b001d894e47718mr262595plh.114.1706213996125; Thu, 25 Jan 2024 12:19:56 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240125145007.748295-1-tudor.ambarus@linaro.org> <20240125145007.748295-13-tudor.ambarus@linaro.org> In-Reply-To: <20240125145007.748295-13-tudor.ambarus@linaro.org> From: Sam Protsenko Date: Thu, 25 Jan 2024 14:19:44 -0600 Message-ID: Subject: Re: [PATCH v2 12/28] spi: s3c64xx: check return code of dmaengine_slave_config() To: Tudor Ambarus Cc: broonie@kernel.org, andi.shyti@kernel.org, arnd@arndb.de, 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, kernel-team@android.com, willmcvicker@google.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 25, 2024 at 8:50=E2=80=AFAM Tudor Ambarus wrote: > > Check the return code of dmaengine_slave_config(). > > Signed-off-by: Tudor Ambarus > --- Reviewed-by: Sam Protsenko > drivers/spi/spi-s3c64xx.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c > index 107b4200ab00..48b87c5e2dd2 100644 > --- a/drivers/spi/spi-s3c64xx.c > +++ b/drivers/spi/spi-s3c64xx.c > @@ -297,7 +297,9 @@ static int prepare_dma(struct s3c64xx_spi_dma_data *d= ma, > config.dst_maxburst =3D 1; > } > config.direction =3D dma->direction; > - dmaengine_slave_config(dma->ch, &config); > + ret =3D dmaengine_slave_config(dma->ch, &config); > + if (ret) > + return ret; > > desc =3D dmaengine_prep_slave_sg(dma->ch, sgt->sgl, sgt->nents, > dma->direction, DMA_PREP_INTERRUPT= ); > -- > 2.43.0.429.g432eaa2c6b-goog >