From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07260C4167B for ; Wed, 29 Nov 2023 14:15:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234148AbjK2OPL (ORCPT ); Wed, 29 Nov 2023 09:15:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230490AbjK2OPI (ORCPT ); Wed, 29 Nov 2023 09:15:08 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C783BC; Wed, 29 Nov 2023 06:15:15 -0800 (PST) Date: Wed, 29 Nov 2023 15:15:09 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1701267313; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nvINaeel3us7q2G8aevzOOZScdLQNs5ot2M+53moFQw=; b=I1AJlJs5pYppHlKxHxnJgSTfOdDFkbJX8xul4rLzGgYQNn5YqZvfyAJrhfGhFJU0CFldJA 0SZurWoK/YNvzfnPPSeiVcKKpjoGOVo8vhmeyk5HVrTS4r6Iq4tk9JzzxlYjA++qmcrUpp RT1dqHk0uMqEmcEyyrkJPluA3IRdw1CpTmXUx0jPWw9ODWmM6JIv0P6se8I89xrVEDohf+ AOZIAfSaXpFFT+QIENgJanphEnsYqv9S0FGiGWy2cGH+UaQoFvMj9wWaL3750t8uDlDRl4 1u/tjeEFBevfLZDxv2Cy/k/RiL9XdTtA0ppl7aiyqdHM1LcJW0ltpJHLVfS0rw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1701267313; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nvINaeel3us7q2G8aevzOOZScdLQNs5ot2M+53moFQw=; b=uc3Z6Can7SdrJXV08lkocsrKGPRby5hRaK/0tEO3E9BRnD2CAhdQEXi8q3hy9c7YZSwcew zzIva1xfW2VnV8Dg== From: Nam Cao To: Linus Walleij Cc: broonie@kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] spi: introduce SPI_TRANS_FAIL_IO for error reporting Message-ID: <20231129141432.ZzaLYucz@linutronix.de> References: <361901574eec1271c0969edba6492d3f2132fade.1701264413.git.namcao@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 29, 2023 at 02:55:18PM +0100, Linus Walleij wrote: > On Wed, Nov 29, 2023 at 2:32 PM Nam Cao wrote: > > #define SPI_TRANS_FAIL_NO_START BIT(0) > > +#define SPI_TRANS_FAIL_IO BIT(1) > > Is it obvious from context when these flags get set? > from transfer_one() and in which flag field? > > Otherwise maybe we should add a comment. Agree that the purpose of this flag is not clear. I will add some description in v2. Best regards, Nam