Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1257227imm; Fri, 28 Sep 2018 15:04:47 -0700 (PDT) X-Google-Smtp-Source: ACcGV62AnFzKuuAG59/Mlst5ymL0zXbw17/rR3xYE0yelGWymyptprASWwIXGan+9xJGurGcZqQy X-Received: by 2002:a62:c42:: with SMTP id u63-v6mr512079pfi.43.1538172287055; Fri, 28 Sep 2018 15:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538172287; cv=none; d=google.com; s=arc-20160816; b=01kL4rw4O5sUaW5t8l6l891cqK/QXibENfg73mwgRnyNsmVGc+ZVfwgmIFD8zByHPT Qng8UoYNlztbZ7DB12+Xx1CilqQj6OxMvTFEiwG8j8TsDLkFuVZLzcC0nyHfayFuVn/j O0MWjVAutwRaS+tveLr9u/JqgxMV5bKZz8SmSFgK5Dr120HQmChAiFpvMs5+dIcuUsnf Oz/e97t54wOvSG1YvOS7rFELhXqArYFoxRdPkgPZsQa23xMy2X1ssn9k/EUVdjcj7BpR zgcnc11ra5oqlAKOCO33Eyw215hyQvV1jQf6D/xgI7AwH9CroI9Qiqmx6BOM8AqdBDf+ aVEA== 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=RW1ar7m/xqwnu1nnpVGo4OHa3NE6MU4KBHxDP00L6S0=; b=ZH4h+soWUthOJWZcfLWTPyxoD0l5hOHeBWw6JzRALuhRQf2Q0lgreuM9U229HWRWOk s7sCg21rjuNpK4s5Y5djfR6KQQHiSgkl53sT9NK9Jp60hE5vblu0tnawOiH7y2xZisoT uBdO6MeVVxhdBKJY7OzM94vXzb5o1G4BLHjq9DZ+rt4NkMlK6QJyV5CQJWj2XPbBD3TO 8OppoUeChTG9J9sU1kTWG/11fr/YXUyU2dM9qwc8fuOIkvz2YzzLwmBuiB37dSaLQhA3 28sxClMoLBaZiumQw+lhW+QQTBIdx8VNi5c2RErKuADT/ro7plBjwE2HBa5s/RZuqX63 uzLA== 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 h17-v6si5446134pgg.218.2018.09.28.15.04.32; Fri, 28 Sep 2018 15:04:47 -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 S1727465AbeI2E3u (ORCPT + 99 others); Sat, 29 Sep 2018 00:29:50 -0400 Received: from mail.bootlin.com ([62.4.15.54]:45797 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727352AbeI2E3t (ORCPT ); Sat, 29 Sep 2018 00:29:49 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 005CF20737; Sat, 29 Sep 2018 00:04:01 +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 (unknown [109.190.253.16]) by mail.bootlin.com (Postfix) with ESMTPSA id 991DC206A7; Sat, 29 Sep 2018 00:04:00 +0200 (CEST) Date: Sat, 29 Sep 2018 00:03:59 +0200 From: Boris Brezillon To: Lukasz Majewski Cc: Frieder Schrempf , Mark Rutland , linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, yogeshnarayan.gaur@nxp.com, richard@nod.at, Stefan Agner , Fabio Estevam , Fabio Estevam , prabhakar.kushwaha@nxp.com, han.xu@nxp.com, broonie@kernel.org, david.wolfe@nxp.com, computersforpeace@gmail.com, dwmw2@infradead.org, albert.aribaud@3adev.fr Subject: Re: [RFC/RFT PATCH v1 0/9] mtd: fsl: quadspi: Fixes for fsl-quadspi.c driver (vybrid HW) Message-ID: <20180929000359.34fe18ae@bbrezillon> In-Reply-To: <20180926220739.620-1-lukma@denx.de> References: <20180926220739.620-1-lukma@denx.de> 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 Hi Lukasz, On Thu, 27 Sep 2018 00:07:30 +0200 Lukasz Majewski wrote: > Please find following set of patches, which provide improved behaviour > of the fsl-quadspi.c driver on Vybrid vf610 HW. > > Below code is based on previous work done by Albert ARIBAUD: > https://patchwork.ozlabs.org/patch/675401/ > > I've cleaned up the code a bit, make separate patches, exclude not > needed parts and port it to v4.19-rc3. > > After applying those patches, the quadspi controller on vf610 works > with UBI/UBIFS. > The problem is with some corner case writes to raw MTD device > (like writing 1023B with single byte writes). Those fail sometimes. > > Regression tests can be found in the following repository: > https://github.com/lmajewski/tests-spi/tree/master/tests > > (Please read README.txt). > > The NXP's community thread regarding HW issues in this block on > the vf610: > https://community.nxp.com/thread/485139 > > Maybe those patches will be helpful with the new, work in progress > driver for spi-fsl-qspi.c Talking about that, can you try to port your fixes on top of Frieder's patchset? I'm pretty sure some bug fixes are irrelevant after the migration to spi-mem (patch 1, 3, 4, 5, 6, 7 and 9 should be dropped I think). > > Lukasz Majewski (9): > Revert "mtd: fsl-quadspi: Rename SEQID_QUAD_READ to SEQID_READ" > mtd: qspi: Provide quirk to read only half of RX buffer (NXP's vybrid) > mtd: spi: Do not setup the default seqid as we got it set for DUAL and > QUAD > mtd: spi: Modify the HW capability mask according to supported RX > lanes > mtd: spi: Provide LUT entry to perform DUAL read > mtd: spi: Enhance the fsl_qspi_read() method to support DUAL and QUAD > mtd: spi: Add SPI_NOR_DUAL_READ property for the 'n25q128a13' Micron > memory > mtd: spi: Allocate memory corresponding to maximal fsl-quadspi.c > controller area > mtd: spi: Skip reading the Serial Flash Discoverable Parameters