Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2037428rdb; Sun, 4 Feb 2024 11:57:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IE/dh+iQUGfks3G65qdTx9oF4ScZuZ/JivzXT/74OsPdI5/bJnSxRTEkJ/Qze3NgS3iu87n X-Received: by 2002:ac8:5f96:0:b0:42b:fac1:8141 with SMTP id j22-20020ac85f96000000b0042bfac18141mr7488142qta.7.1707076642782; Sun, 04 Feb 2024 11:57:22 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXr44vPohXT7yMUoiy5Qkkcg/R+Xplr8oTVVY8oDwM8YlsfI2UGV1x1gSdUbAwxyF7l8cyWjrCL8I4EXexKY/Q/gO0oe6Ku+QZSirPTfg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y12-20020ac85f4c000000b00429bfed4958si7254818qta.793.2024.02.04.11.57.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 11:57:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51865-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=@gmail.com header.s=20230601 header.b=ZkXM9n1H; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-51865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7A9CD1C21692 for ; Sun, 4 Feb 2024 19:57:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1051225567; Sun, 4 Feb 2024 19:57:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ZkXM9n1H" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (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 A0F9B24B59; Sun, 4 Feb 2024 19:57:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707076634; cv=none; b=iBRxbIg/NULUkckdjE7NiEGiRCD6FskAth2iS3kp+OQY2RacDda+45ISu9dzBTJ/xLyKuoR6kfM5kQuvCh9+/035a7M+m6nz/0tDRfkGwAemWCSg5sDEbuP5+T9JKh8eNHTEYY2hLIBb6jG/xBDp9JpekaEobAJgVcGfUHplTgM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707076634; c=relaxed/simple; bh=zvwlEGr3Cm41VvB1vK4xccHaj+bW2/dqXLVV3griGLc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=AHkl1HaKtn1a4UM5lL7/rkcRyFyURThc49HCWZgtPsC9gpTwPgeiiOzXnAr471JXEwVP9QzKPWDnuyd3SW2T2mLrVoLe6LRGXFBKKS3NKeyjWYqdifAlUqZkfaVcpz/O2iEXziQB2/+igjN8qsQJoBpUtVQejSZj67NB99jvGLs= 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=ZkXM9n1H; arc=none smtp.client-ip=209.85.167.41 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-lf1-f41.google.com with SMTP id 2adb3069b0e04-5111c7d40deso6155579e87.1; Sun, 04 Feb 2024 11:57:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707076630; x=1707681430; 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=zvwlEGr3Cm41VvB1vK4xccHaj+bW2/dqXLVV3griGLc=; b=ZkXM9n1HOHn3N2pyP8aVRFUASiDz9OJdm2rvIMFgbtjDBSFthrJXTCIzThi0GSPm2A 9VstwhEWeJtcZF08QkbQvt/gI0FPZ91c0hRTBiabIU55Dchmr84uC2uAILdPR1bewru7 qrdGNmxR86gjwh6iD+HUfmfO7O0IuXVRuxPQ9GtYMjg2XXSxWf+Y4E2nuuL4wFQnhksT IXdqAiGySslnpOxB0lQHDso5W3N2/C3rZcZD3ZnnCHsuLpcTcQvzOE30OAmXwU+yPN7I GTqsnh4YuGN1U68d8A1OEOieWA3znQRtODGt62I2JpOYdguVa7XvKavOQW60Y6Jt8dzm yZIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707076630; x=1707681430; 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=zvwlEGr3Cm41VvB1vK4xccHaj+bW2/dqXLVV3griGLc=; b=LULWJ5uVAbEazcEhbT/mN3XJydbcFwXe/n6mvc2GZHYd0ksExtkyHmH5Wpx7GUuHbQ OadxZgCHn0644TMLvbVSZkvNTB7lPi4kYT6Kuv0Re/xwsQIaA1leKp6uzjuJ9ngARSBw eGKuv3IJOkDt+G/FArd6aaqiBCizTLbQQ/jNCToheoFyUWxKSs0B9AksKlzIRuopDuAT E+hfG7waVpWOGDApWhsXnRbmJ4wF+WTOC0pIhQi/sF6zgCS+yvYvTjdxGpwYnxcvclDe VEXJxwi+8mZ/yrV6PKnnaJcCaTANNL1pN/Ox95hJ2b5YjoJCDuaBzONvdcHMC7cVH7oB Vdnw== X-Gm-Message-State: AOJu0YxxicxN1S6x+zCKMJfiGkar5ziHesx6V4LURCLbeBTBztcUVkz3 HDetGY7oSMmpRhiAClDQzi/j/Y9Qvs9wkhcJSB+/P+XJUhkXmqthb1EHognIlw/vHGjibCX6hgZ pJzVluUBZNTDxtbL33mFgue/oIak= X-Received: by 2002:ac2:4da6:0:b0:511:499d:5dda with SMTP id h6-20020ac24da6000000b00511499d5ddamr1981379lfe.10.1707076630601; Sun, 04 Feb 2024 11:57:10 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240204162106.1179621-1-andy.shevchenko@gmail.com> <20240204182417.jnw4iuqgghxynq3v@skbuf> <20240204183130.r4rdggcqx6czuzoc@skbuf> In-Reply-To: <20240204183130.r4rdggcqx6czuzoc@skbuf> From: Andy Shevchenko Date: Sun, 4 Feb 2024 21:56:34 +0200 Message-ID: Subject: Re: [PATCH v1 1/1] spi: fsl-dspi: Unify error messaging in dspi_request_dma() To: Vladimir Oltean Cc: Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Minjie Du Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Feb 4, 2024 at 8:31=E2=80=AFPM Vladimir Oltean = wrote: > On Sun, Feb 04, 2024 at 08:24:17PM +0200, Vladimir Oltean wrote: .. > > Passing -EINVAL to dev_err_probe() here doesn't work. It overwrites the= "ret" > > from dmaengine_slave_config(). > Ah, the original code also ignores the dmaengine_slave_config() return > code and replaces it with -EINVAL? I wonder why that is... It doesn't > appear to be a widespread pattern. Pretty arbitrary. Could you please > make 2 patches, one which preserves the original return code and another > which uses dev_err_probe()? Sure. --=20 With Best Regards, Andy Shevchenko