Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2327215rdb; Mon, 5 Feb 2024 03:11:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxEhiF5o+P+hfYNsnhtvFVXVDk9MCut6G9xDnpX7Vmdw/VkbnjxCa505lmBG4aUPt2t6zA X-Received: by 2002:a17:907:788e:b0:a37:3abb:99c2 with SMTP id ku14-20020a170907788e00b00a373abb99c2mr4924436ejc.74.1707131514748; Mon, 05 Feb 2024 03:11:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707131514; cv=pass; d=google.com; s=arc-20160816; b=Qp5AWeOr1MrfdFExu3KrR7KSsMX4NmpnSwqY5WcmOPeC6ddEvilxzaQEg5EJT+wJRA SGN3mEJWIe+c13/1fAFdO3hI5E/IXYRWFdU6SQDOuuMmRrRMG41qQNp68UVWkkI6mYg0 b7uYI+Hx0TAKnVV7NSicVd/MI1sTYs3ifj4ftXynXE8LwFG0GugP/2qHkoFs0kqqmkmK NRwNGVKJXs2eOQnMP2ZTZBbYxrXa0z2GrOW5DpYtLmWPVL6agG6CMamL0kBWI3tYTZvR XsWhU3H1UC9OgxTxn0j8NJ1klg1i+pqU1LXFk7R8VJYpFm//21+/9rcqdA9ohfzBke5D +/Qw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=q89gRwpKdLFgd3RL1o1XYTcKQtxZQ/8oMcTWr624ImU=; fh=7uq4jfYlXg2qY5OFlUXF4dhxcvMDmdbLRrh1b/1tT6A=; b=yTg4igVsTGw+aJaciSjTaO3NZ1XcmvzJ8/uCxY26NHaHnL8HaZmEDKuFpcHuCrxHoA dt6Lbd7lAhc+8rwPACMZiYBXWJK0p4RleL/YLk1ctfng091ZJvgK86kpTCXDYW1sgJaJ oDlOAJua1N6r8PdVmmVOXlhEvwLKCtbusltCS96kJRLjvsWvu6eEsLMMv7Gvn4C3T/od kJK1IkhvDYGF4tjIr73e3V80XgUIEDAdeiQAFrzjtUP/f1un7xKjA34wBTJPOYWSBJ5w +jZdBoWCB7H0OrebOcRW5v9kS2qXWz+rHZHxInxhBio+9PFxm86iXXiS+AgC4jM5bC6B QwAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="D8Yqak/C"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-52466-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52466-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCVkTCwa7LP3S3e1/GBU4wNkTpB2ZDaKeU8h6fkOk74QzKzrU1fS1V90bXvkStNJviwnU5650Pvz3X3za30OBHSM5hC9Pn2wql70p7eQGg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k17-20020a170906055100b00a36fb2b3831si3693489eja.284.2024.02.05.03.11.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 03:11:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52466-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="D8Yqak/C"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-52466-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52466-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7DA5E1F2212C for ; Mon, 5 Feb 2024 11:11:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B28BF18E1E; Mon, 5 Feb 2024 11:11:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="D8Yqak/C" Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 5C5EA18C3A; Mon, 5 Feb 2024 11:11:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707131496; cv=none; b=qZlEruHnevnHRFXEQomzJuf1/wm+xEHknlFNIHEktjulvaTPPX1dUFP8eHWg/zf9ctaZwun2XELHMsbG2E8tyl9T3fuDbM0+gIeoyNCdVyVU54/PI4gYQgTvTOwY21DP5JskOw8K7LF4PSmJPg+K32E3tfddBHI/+UxOmtPrFtA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707131496; c=relaxed/simple; bh=48ce7/5oNmdgj/pm/z0gfq3CLVKSsiCn61ZHEcIkDgU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rOvQEMQUiRjQNpHRnAh6vjw2bMWGe7NkKcAa6jDYCDfgSX17o/0trc5Fv1dhf0Z+BQqCZoJ7NIVxUi4CS3sJanAWdNgUS2UbtBib/e0OsEl5iwlD+bXmM98BbtMIPc0pnsCvj+I9Lyoo1s/bIewgrrI82pLHCG4AzeKf2V8jCQA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=D8Yqak/C; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-33b35323341so971869f8f.3; Mon, 05 Feb 2024 03:11:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707131493; x=1707736293; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=q89gRwpKdLFgd3RL1o1XYTcKQtxZQ/8oMcTWr624ImU=; b=D8Yqak/CaXtGvzrIWLa3q5QnkMn8rg4hdIgmoGYbajd/y+nIPHitfMz1qD9dFU1vbR yR6YMDlU+Wu6cKt6G+lth65g5ANoQXaOJ2zOd1kzkn3YjbFwkchWG4VVzWwRqdyQx9CO k1I2xgYzMPEdWgTj1ZDO8caoMcoWbcN0t5GisNZYr0449yEL9xm7/2ttzKVifDrg5Xwy k5U0k40b0DvX+fsN8WrYnblt0rY5jOKYq/LNIA6sFX0zlN6GC3yMwfMhb3cV/NN8BaWU ecuHRBuQIuRht8UFB+CpkhlhcR70QKvLGiXuciRzO86NbhPwuOR+Kokh5I98crhCPu49 J/hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707131493; x=1707736293; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=q89gRwpKdLFgd3RL1o1XYTcKQtxZQ/8oMcTWr624ImU=; b=j8ita9FNXgbV4Y4gty5bPXTX2S3oNr5MJP1LLRa0h/hH210rCjrthGLSYkbiHAH9Qd MRaSUeMWlUtAskkLRuBhYAndLTvylxPBXp+sGxLU6sndSgFp5vECrgYcP1E9HBnUk6od SM2qZrDSuoXsIhzwvtIqSL8rfW2Rp7MWxfijY+wrWSWJUtZ56nXrrdQaKNpsbC3qnc9L l8sAxKaw6uKLLrjKtU02ps/jnndGiXjG0DijIqCSp3evi1BruZZ+EfIaRbbaqlBj327a OqVbCLrTvMLxOniQOKAB+xwGr2QYaW4kiIQn6ThbLif2FcoPkuZtrtT7SqGYXUnoLIZI HnQQ== X-Gm-Message-State: AOJu0YwfmawbdfNlFSTtXlK7YbaQT/KPQ6spF3N/lAt/NzkaaVECeZHc yzQ6WNY7Px56dGBx2jNlm+EXHbl0vpW/98m0ijzmVhqiMxXr7OIc X-Received: by 2002:adf:e950:0:b0:33b:3648:d25a with SMTP id m16-20020adfe950000000b0033b3648d25amr2523768wrn.53.1707131493265; Mon, 05 Feb 2024 03:11:33 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWWuTV0TtsAO9e/4elu0yeTjfJWJNZgP1aXWHhVIQVQP49gBVZ8Mj1QgWwj0i1Fn6cxVIH2Mc0sU1zGG0/M0MK50YeDFGmY9nkhYUXwzB0NxNhshzuBh1QP48CzNbQM+URi6jrxmbVeQE5S9yAhqIoMBkwZCne/HkegIg== Received: from skbuf ([188.25.173.195]) by smtp.gmail.com with ESMTPSA id h17-20020a056000001100b0033b2157fd7bsm7271303wrx.53.2024.02.05.03.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 03:11:33 -0800 (PST) Date: Mon, 5 Feb 2024 13:11:31 +0200 From: Vladimir Oltean To: andy.shevchenko@gmail.com Cc: Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Minjie Du Subject: Re: [PATCH v2 1/2] spi: fsl-dspi: Preserve error code returned by dmaengine_slave_config() Message-ID: <20240205111131.sk46mukva6ewmqlk@skbuf> References: <20240204203127.1186621-1-andy.shevchenko@gmail.com> <20240204203127.1186621-2-andy.shevchenko@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240204203127.1186621-2-andy.shevchenko@gmail.com> On Sun, Feb 04, 2024 at 10:29:18PM +0200, andy.shevchenko@gmail.com wrote: > dmaengine_slave_config() may return different error codes based on > the circumstances. Preserve it instead of shadowing to -EINVAL. > > Suggested-by: Vladimir Oltean > Signed-off-by: Andy Shevchenko > --- Reviewed-by: Vladimir Oltean