Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4609210rdh; Wed, 29 Nov 2023 06:16:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFANkAK88IzcVezamf/EZ6cTBVqzt4jQJOPiCc6ZZC/I5i8MErAgiwcRbifC/jITzFb3kIp X-Received: by 2002:a05:6a00:1402:b0:6c4:d628:2143 with SMTP id l2-20020a056a00140200b006c4d6282143mr19486903pfu.31.1701267411384; Wed, 29 Nov 2023 06:16:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701267411; cv=none; d=google.com; s=arc-20160816; b=IwrdiMsJH/dMLXBtPOQH2WcJG2ydem5XJuHzpC5kJEKK7UegczV4AOD5fTFpfB8SPK eR4/zS2BP30Su+0hJRE+g5jioH5ZT1IrNq77RUfe7raA1n3Tp3TKL/XVICvAGATZo3bT hDfv2uPTvBNmlR4yhjmfCiHT47zFXzz+m1wkq3ISmkMxi7tz2d+2+YuXCyxZI0XS2Gcu ULkExBDK6DGWn2D+kKtLeYWCM+5sQdjZJAhl9S/QwGkdzNxSMXZpf3EhYgOQWkpJ+yPG oOscaFiY3lCRdbLuXTGoxbh9hiUW6ueUMm/tyDMxUXUMU9YFUkwv4Fy2SAYYRxWqr+Ro Qylg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=nvINaeel3us7q2G8aevzOOZScdLQNs5ot2M+53moFQw=; fh=ebu0wQGnt7BHeWqVIaWf6qVliPqSoqW204DBazR3Lc4=; b=ECK41BFy/JfR1irJgHVR/QHfN1KAXoD8JqtLuBl2QSQL9Uft97a1wJ7surMR6j5dr8 DwgRlS2eKCi04vrVMVsicDeBgWoenEujyWezfNRJe2xvk6DzWLRPVSkHLK4r8spbxFsL oP/T4tuABDFAHrDnCLP/cqEiwjPHo6nMoPesZh1pEZA7kZ2q7Dx2mUXzkpShSxe2W6AA 8dkwbwSmDdHE0uhQnlhzYGU4ofvw1tKbPMiaSDBqarUezSTryihOqJ3/Wo3dYpigCbU/ jQtmsGZTnP7E4o1ss2rpzq6pxzmovl6cXJRoZ/LcfM2KP7UQ32uXkDr2wnlQX97H8IO+ 9RMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=I1AJlJs5; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=uc3Z6Can; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id q15-20020a056a00084f00b006c040064180si15217311pfk.335.2023.11.29.06.16.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 06:16:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=I1AJlJs5; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=uc3Z6Can; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 3C1EA807F4A8; Wed, 29 Nov 2023 06:15:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231187AbjK2OPK (ORCPT + 99 others); Wed, 29 Nov 2023 09:15:10 -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: X-Spam-Status: No, score=1.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,SUSPICIOUS_RECIPS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 29 Nov 2023 06:15:38 -0800 (PST) X-Spam-Level: * 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