Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp648479imm; Thu, 4 Oct 2018 00:39:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV61xHLIHCSKcpo+enF+jlN7wxP1H4ox7zJ42Cmpo8Nmccl5ly8UYqM2MJ0f5SdyCFdf+ipUe X-Received: by 2002:a63:fd09:: with SMTP id d9-v6mr4722316pgh.164.1538638796265; Thu, 04 Oct 2018 00:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538638796; cv=none; d=google.com; s=arc-20160816; b=bxgln/+WjVBxyBjCyJbp5HgTP04iXVp5jgXSlakKcO9nEvUGjm6WOd49Z5lIlpZWPe fZoLC1Oc7WN1vuxSHxupDra/ghIO9UmwYrhaqV0F1bxI4opBfVfYIQsUHU9/sFJ1PDra RBPIIT9ZbHZ9CRLHvs0bVf0vtKD8xKrbOWGzCZBlp1gIXg43oIL4uxa8DQe61GUSkQQQ oS1VwpROAU2IqXVHPbKjSDJJgdcZ0l/3xiTi5o35wXPbsJDjJwz+/+FH+4f5JTexy+dK V0xUMG+VLcjAam6UOKJsVbFkarfHCX+VNhaAmZhSaQwAUVvh18pK/4t1g9Rj+OPguFaH 1Ygw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=puPALreEG+8u1T3SG8qT7CyAKipPDWNoLtsMGo9rOqw=; b=y0rO75q4FBi/pvjmspdj40IxpxncGjE1vtSDJiHrAHB/94F/gfvrshrhQgWoABA3JM BP08gZjwQD9zL0MelPyYayFBDLGcSU00auroxwI8xeNzCSfHDXWBWwtjOnf7TGeKee1x CoW2qPEvq6sjQwddbMsFnRvn1C5CZZtwwIAt51eyYkFjLiTLRk385DEp3J4QNovtvFNK vSGsSzCcmRO3UkI+j2BRNsS4E8pPak/7+yyF8X2qG8O7bEHEoyRpdVpkdhokhYGDrjpa 2vgHWpk9Qau7UoZmxKZ9DRbamDzXbHFygCSW/baRcyf66BaRZSk6s1/9VTSxAj7qWtjS FM2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s195-v6si4092807pgs.492.2018.10.04.00.39.40; Thu, 04 Oct 2018 00:39:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727559AbeJDObW (ORCPT + 99 others); Thu, 4 Oct 2018 10:31:22 -0400 Received: from mail.bootlin.com ([62.4.15.54]:55285 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727264AbeJDObW (ORCPT ); Thu, 4 Oct 2018 10:31:22 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id E7AC220802; Thu, 4 Oct 2018 09:39:25 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 89094207B4; Thu, 4 Oct 2018 09:39:25 +0200 (CEST) Date: Thu, 4 Oct 2018 09:39:25 +0200 From: Boris Brezillon To: Yogesh Narayan Gaur Cc: Vignesh R , Marek Vasut , Rob Herring , Brian Norris , Linux ARM Mailing List , "linux-mtd@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "juliensu@mxic.com.tw" , "zhengxunli@mxic.com.tw" , "masonccyang@mxic.com.tw" Subject: Re: [PATCH 1/3] mtd: spi-nor: Add Octal mode support for mt35xu512aba Message-ID: <20181004093925.2961d881@bbrezillon> In-Reply-To: References: <20181003165603.2579-1-vigneshr@ti.com> <20181003165603.2579-2-vigneshr@ti.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Julien, Zhengxunli and Mason from Macronix Hi Yogesh, On Thu, 4 Oct 2018 06:51:41 +0000 Yogesh Narayan Gaur wrote: > Hi Vignesh, > > > -----Original Message----- > > From: Vignesh R [mailto:vigneshr@ti.com] > > Sent: Wednesday, October 3, 2018 10:26 PM > > To: Boris Brezillon ; Marek Vasut > > ; Rob Herring > > Cc: Brian Norris ; Yogesh Narayan Gaur > > ; Linux ARM Mailing List > kernel@lists.infradead.org>; linux-mtd@lists.infradead.org; > > devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; Vignesh R > > > > Subject: [PATCH 1/3] mtd: spi-nor: Add Octal mode support for mt35xu512aba > > > > Micron's mt35xu512aba flash is an Octal flash that has x8 IO lines. It supports > > read/write over 8 IO lines simulatenously. Add support for Octal read mode for > > Micron mt35xu512aba. > > Unfortunately, this flash is only complaint to SFDP JESD216B and does not seem > > to support newer JESD216C standard that provides auto detection of Octal > > mode capabilities and opcodes. Therefore, this capability is manually added > > using new SPI_NOR_OCTAL_READ flag. > > > > Thanks for sending the patch-set of adding octal support. > If possible, can you share the MT35x datasheet? > > I also have the patch ready in which I have added support for Read (1-1-8 and 1-8-8) protocol and Write (1-1-8 and 1-8-8). > Also have added support of Octal in driver/spi/spi.c framework. > > IMO, we would collaborate our patches. Looks like we are of stepping on each others toes here (see this branch [1]). I guess it's not a problem if we agree on who is working on what. Yogesh, you already sent "spi: add flags for octal I/O data transfer" [3] which is only adding the new OCTAL flags but is not patching spi.c and spi-mem.c to take those new flags into account. Here is my version of this patch [2] (it's still missing an update of SPI_MEM_MAX_BUSWIDTH). Let me know what you want to do (rework your version to address the problem or take mine). Regarding other patches in [2], they're mainly here to add support for X-X-X and DTR modes and get the m25p80 logic integrated in spi-nor.c so that we can really check which NOR operations are supported by the SPI controller. Regards, Boris [1]https://github.com/bbrezillon/linux/commits/spi-nor/octo [2]https://github.com/bbrezillon/linux/commit/9854a8fdd23f64e79859fd07a71d4a1c57b812f2 [3]https://patchwork.ozlabs.org/patch/894916/