Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3446333pxj; Tue, 1 Jun 2021 05:37:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHsGxdk5IJkBP0R2O+8D3C3OkFKPpYWE7ajYYsyrNHdiJ2QR+oejnwtqdVfqBnSR6VrH83 X-Received: by 2002:a50:ee02:: with SMTP id g2mr16494066eds.333.1622551071675; Tue, 01 Jun 2021 05:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622551071; cv=none; d=google.com; s=arc-20160816; b=GdB3NyYB7haKnbaiVbzE64RSWg3BlWQce+q1/dSYP6QxTgSMAhTzo+SgIgUyg6MRl1 SXlmbfRJe0Qxz34cGSTkUNgxPfwHveenzluLay9rSwijsZuL4cnpyFDR3weEUWiZFBsB 7ZzMyCDPW5BgluCG5/CzlC79GsgVhRJwHhM3vy+lSAfRsttkPL6PImDIoUvD1ZsLOkCr RibL5HbhgP5H+IhMFkLbUyFbbPVwPoVYshIg6/WHmRosmsMSQyS2yGkWDi/T3XtUa6E/ sV6EdT9lsjiQramlD6U78RilctK4vYG8fivBjHOOmC0IIh3exZSMTeW4DsEMWzWtvaR4 beEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :dkim-signature; bh=KbCr62UBWzd91uPGhP19/e09ZyrN+lS6g3DQdq64C/A=; b=q+G3gliCja4aTWEJFV1tVleJEGu7gAfOoz9WOUkNYJ6SVT9UiFlxEdnvg58O4YXgGX L39iyq023LhRsk1x+JdH854mAyHzqxbnQrzG7oQetnWwBrnxJIVhdqi+37ZbehgKJjWu XNRfnMlC7ui9/8Ecwf0SGUYoaoSs6N6OltA6Fc9cAY1BWRPDtE+cQk13TamWF43PpzYr CtZs7YNjEarhBag8cH/MUhCLEi0dgR4X804e1zNKAiq02OSGoasZO/sDITdOPFML0o99 T4mRXPUl+EQQ0q6It5O6alp2QU0uuTU2VtrHWbihL1V4zOZM7GUUYhDAMg2g5cq8LipG gqJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=DN6N48S0; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c15si15591065ejb.625.2021.06.01.05.37.28; Tue, 01 Jun 2021 05:37:51 -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=@walle.cc header.s=mail2016061301 header.b=DN6N48S0; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233768AbhFAMiL (ORCPT + 99 others); Tue, 1 Jun 2021 08:38:11 -0400 Received: from ssl.serverraum.org ([176.9.125.105]:55921 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232965AbhFAMiL (ORCPT ); Tue, 1 Jun 2021 08:38:11 -0400 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 7214222236; Tue, 1 Jun 2021 14:36:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1622550988; 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=KbCr62UBWzd91uPGhP19/e09ZyrN+lS6g3DQdq64C/A=; b=DN6N48S0t7BUy1ObG3XMDfSA+JSidH0Pet1iGzTVl/ITZ1mOik8TV+mZvxe5mw9NlrHi5r JyZ882Z4uCKn5v1ZFBnQVfLUehdWVE5GZOS0Z35Lz999CanT3O3Yw8dSz36x4N1Z7xba70 l2zgKKY6GjVHld5Sj00fW0xdwNRH7vI= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 01 Jun 2021 14:36:28 +0200 From: Michael Walle To: Pratyush Yadav Cc: Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Mark Brown , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: Re: [PATCH v2 1/6] mtd: spi-nor: core: use 2 data bytes for template ops In-Reply-To: <20210531181757.19458-2-p.yadav@ti.com> References: <20210531181757.19458-1-p.yadav@ti.com> <20210531181757.19458-2-p.yadav@ti.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <543350e0bc25f84a0ba9f464dcfa15bf@walle.cc> X-Sender: michael@walle.cc Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2021-05-31 20:17, schrieb Pratyush Yadav: > The template ops used in spi_nor_spimem_check_pp() and > spi_nor_spimem_check_readop() currently set the data phase to 1 byte > long. This is problematic for 8D-8D-8D protocol where odd length data > phase is invalid since one cycle transfers 2 bytes and odd number of > bytes would mean half a cycle is left over. This could result in a > controller rejecting the op as "not supported" even though it actually > supports the protocol. > > Change the data length to 2 bytes in these templates. One might argue > that this should only be done for 8D-8D-8D operations but when talking > about these templates, there is no functional difference between one > and > two bytes, even in STR modes. > > Signed-off-by: Pratyush Yadav > --- Reviewed-by: Michael Walle