Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp391538pxj; Fri, 7 May 2021 10:50:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1j2dHsFt1rijeYugawqxGhOxotgmy8Vl/BTCveu7rRh0a8asNkBPFnyDgGGrgcTdPAg3h X-Received: by 2002:a17:906:3644:: with SMTP id r4mr11488220ejb.140.1620409826346; Fri, 07 May 2021 10:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620409826; cv=none; d=google.com; s=arc-20160816; b=z9uZYAR0w1ILGrJRvUZ9kXqW5FB+E2xiPxVkHbCAxktejezYDUSeagSOXZQeM0E+WE D82MxJmiK+5uTEmyUurVKG9ojqkcKCiKdz7M8whk3hdfq5h75Qf/ZONwsdHig+tItwLF H1BW64+U50251N7NkCJ98o0UVfPOfPXMev+cviCvuoaMc+d+nMaiqBqKEW6zoPPLr1ux f6f1PT0hLuUT5x0B9bI5fj8tMxziNYSt9IAeE5QkzSzaRSUqykGCgE0FckkFpHfxoIEG p8xc+/k6CiD4f5e2CJUHghLX/ebmNynMpCsZhW0lEZvIb8sifpU/zRMZZ1Ctx9JyBg/B unKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=q+t/g69Ga1Vu9GXbKxFPwuNXXK8YKZ8Mnhj1z5Yx9HU=; b=ESck9BJmVhOhtN6UHGXaMtI4XvdgELMipIIPcdYfZvhYivEN4EOjd5KdAYiXT1MKZl LlxtQMtsDsh9jNzu1lm3g191Gx2EgbE+5HciRX8UC6B/K9WNxv/4BEhd0vkId0iYadrH 8FwenqwLKrStsrpYnYMsOir1gN2BrcQKUT2mWF0mz+qpgVNZRyFwxcEE9aHcbgB/2N48 oRkz+P68rVfL3YYn9FDpx3QF5eaXW4Qn43uyl8Jpn7FLwctclPjNVQmaMYODASjhTBOR d33Gc3FUT603V2INTbvZVrOmIUeK48xWm2LKMb+VPq3BdCpTPXxnvCr61/gA36k0tcTU IiNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FIdbOw5m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si5382954edr.183.2021.05.07.10.50.02; Fri, 07 May 2021 10:50:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FIdbOw5m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236013AbhEGM5M (ORCPT + 99 others); Fri, 7 May 2021 08:57:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:39800 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234398AbhEGM5L (ORCPT ); Fri, 7 May 2021 08:57:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8E43D6145D; Fri, 7 May 2021 12:56:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620392171; bh=y32fV8IFsyNahCaWCck8Bgsb71MrZYwbNZlgtBX60W8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FIdbOw5mDlCaJq1WudfCM96/pMNiqnxJI0g3Y7ecuhXwxekGLGwhhPFiETS7smMia oAYKfCnDnK2zLIqSMWwoAl2nAmvC2iHkVwmbEBf8NQeWNNtKnPEQKQ8fuPiiQc0NsK NchlyUHjMTDhy3Ujt+ANC/3tMnpv98l1BkU2wSAdXowwjhSH1+KPBkR2zyMQ7FyJ0R RzPUgqtW8DMteVCpZb/lX1Jxj1B8p4fvA5zIXoyd0uOkRi9RLp50KzQQIKD43UY1LG AlE/2ODqzBT/3aTDKjkGXyRcWBjaIIhj83Acik+3IJBv9LhLIGeNbroSdhNSPipNUn DEIKilL/ZyyGA== Date: Fri, 7 May 2021 13:55:33 +0100 From: Mark Brown To: Pratyush Yadav Cc: Tudor Ambarus , Michael Walle , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: Re: [PATCH 4/6] spi: spi-mem: reject partial cycle transfers in 8D-8D-8D mode Message-ID: <20210507125533.GA6383@sirena.org.uk> References: <20210506191829.8271-1-p.yadav@ti.com> <20210506191829.8271-5-p.yadav@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="x+6KMIRAuhnl3hBn" Content-Disposition: inline In-Reply-To: <20210506191829.8271-5-p.yadav@ti.com> X-Cookie: Postage will be paid by addressee. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 07, 2021 at 12:48:27AM +0530, Pratyush Yadav wrote: > In 8D-8D-8D mode two bytes are transferred per cycle. So an odd number > of bytes cannot be transferred because it would leave a residual half > cycle at the end. Consider such a transfer invalid and reject it. >=20 > Signed-off-by: Pratyush Yadav >=20 > --- > This patch should go through the SPI tree but I have included it in this > series because if it goes in before patches 1-3, Micron MT35XU and > Cypress S28HS flashes will stop working correctly. It seems like this should probably even go in as a fix even if nothing is broken with mainline right now, it's the sort of thing some out of tree patch could easily trigger. Unless anyone objects I'll do that. --x+6KMIRAuhnl3hBn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmCVOMQACgkQJNaLcl1U h9C9uQf9F7iIYJsr5r7vlcQFtN6JRxQBAT7SQrYpZGKtFrmxVr0ct5rCpwPxCDm6 TihuJQd9vVim/gn+GfjZvLLrbgf+QpDE8dR8l3kcUFqDBbG2LpxNBkAKvrDhc0O6 jX89AjpNdoI772ZaEFXSyexyN8jOLn3dZoWX+G+fVGaIpbbYDDn+T3CC1TPPs3hG 05o0WvEsUF/Sdl4O2GoqV7EeLIoa7ViZuhzGyzMFTGMyPvjte3ZK6lne164UZGax lSnLoTCki6lRxiqhwsfuCRsH9VA3U9rZvAR0Slly7EkmDhkgQDgR4AkKZwK7wB9X fTQrLj2BgqbZWIkih68wRH9AxHo6ig== =YstS -----END PGP SIGNATURE----- --x+6KMIRAuhnl3hBn--