From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.85.4 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795771423; b=pR7j8D0zxnA7169wse+Rxo3Cwb8nme067aiY3djgbPF6KC6b8tNhp6tpPVYvHRqf5007 EwB9iIqQAg9uCQ0b0cHQ13aqT3Euu2C/NCbDbMoJQ8agI0Tp8ky7y4o68hbKLvO7yVwQF bQzbbab55X8P+cFRkj6uqvOEkwza5VzG8eBTVmYYekgHgtGYXJ4MBH77AffOGTlBnMR0u vZRs2orv1bEoeRXnBuXg+sutgQGzBYDKGNIB5oQluKvSYTb/fZIi8VF+Wc6IFXQ5JInOn UORmJXmWNjzXsmrXAy/0PDlOwZtdtW3n43AQXbAkH9RK+i8e4Um2iJtR8D1k/PSoqHw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795771423; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: Subject:In-Reply-To:References:User-Agent:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding: X-Last-TLS-Session-Version; bh=PH+l0IfQ28b7UEDSOlC/cTnR6aoCEbyBOr2fiW8TlTU=; b=hNbA5h9c96GJm26oVAWQbmr0nAcpyYj+5kxZZmqqNLXkEnP1Bg4/IKpLXlxvD4idayzf GreqkUoBuUAjkmBg1gUKSui842on4TzBLLhlTzBD2L8RZWvWs9g/HjJaDSCUzufnNC1c7 4883L1rjAfak3uEGBW8WEYSz3uQtAMRTENTexg2C/x1VryiD0Wd3kgNgvzbytlPvy+9Fh YJ7m13rFdveCUdUIrqQfmrRCx96H0BqkDI+YDNbampJbbD8TL9S1mymnG96RwdSALQfw+ sFs1QjhJ36k2e4ZYzmdJwDgTITL8el+BR4ax+I8jSIXoDj2Es9g/JpTQa8ICPnrcPxg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=ff2U6hPn; arc=none smtp.remote-ip=185.246.85.4 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A3BC606A31E for ; Fri, 27 Nov 2026 09:23:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1A3BC606A31E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=ff2U6hPn Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 6BEF04E41795; Fri, 27 Nov 2026 09:23:41 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 3FD5D6049C; Fri, 27 Nov 2026 09:23:41 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 997C311E69295; Fri, 27 Nov 2026 10:23:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1795771419; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=PH+l0IfQ28b7UEDSOlC/cTnR6aoCEbyBOr2fiW8TlTU=; b=ff2U6hPnfdWAVrHeE+QURp8p7spbk1dJChI6RpTqx3eZ6Z3NSmqEVqcsrKBWqUpqwxoqWW zc/fJA/3RG5rOfbi3GI0F41sSS9iHwSig5LSCGt1aXBDcpRxI3DT8e8RJknK0sQbIl5kfU fdQvbBmJgmrJbK1tkN+JTKCuLjWJUt8EV3cO/KgSmj55J+HF2kejPGpxpzQJlPHmgFegnn gT98jrBXT2PzOH6AL4wHjqlAbY+tfPkFyNcwy0ZMUmc8pSVOvdPYHQMXQlEU96yCUjPdH1 ZbVOCf20wWo+PSdFfV0SZC2WzOlKgPtH9tgx0ynelI4M7dV1719v3WkwGWwZmw== From: Miquel Raynal To: Bough Chen Cc: Mark Brown , Liang Yang , Feng Chen , Xianwei Zhao , Han Xu , Conor Dooley , Valentina Fernandez , Daire McNamara , Haibo Chen , Jyan Chou , Yu-Chun Lin , Maxime Coquelin , Alexandre Torgue , Pratyush Yadav , Michael Walle , Takahiro Kuwano , Richard Weinberger , Vignesh Raghavendra , Thomas Petazzoni , Alvin Zhou , Cheng Ming Lin , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, imx@lists.linux.dev, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH RFC 02/16] spi: spi-mem: Stop checking the dummy buswidth against board wiring In-Reply-To: <20261127085359.euu6z5rydr655ycr@shlinux89> (Bough Chen's message of "Fri, 27 Nov 2026 16:53:59 +0800") References: <20261125-macronix-upstreaming-spi-mem-cycles-v1-0-fd036402fd37@bootlin.com> <20261125-macronix-upstreaming-spi-mem-cycles-v1-2-fd036402fd37@bootlin.com> <20261127085359.euu6z5rydr655ycr@shlinux89> User-Agent: mu4e 1.12.12; emacs 30.2 Date: Fri, 27 Nov 2026 10:23:30 +0100 Message-ID: <875wxivd9p.fsf@bootlin.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 >> - if (op->dummy.nbytes && >> - spi_check_buswidth_req(mem, op->dummy.buswidth, true)) >> - return false; >> + /* >> + * The dummy phase implies no actual transmission nor reception. >> + * Its buswidth therefore does not matter much. >> + */ >>=20=20 > Hi Miquel, > > With this change, do you plan to add the linked patch back? > Setting the dummy buswidth to match the data buswidth is more reasonable. No I do not. Doing this would only paper over the problem for certain cases and would for instance break many of the SPI NAND cases. Those chips currently derive a number of dummy bytes based on the dummy buswidth, which is the same as in the address phase. So changing this in spi-mem or drivers would break this assumption. Either your controller has a cycle oriented dummy phase, in which case there should be no problem once converted (see the patches below) or it is byte oriented and the mode should likely be refused. But maybe if you tell me what you have in mind we can search for a solution for it. Thanks, Miqu=C3=A8l