Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1285018imm; Wed, 26 Sep 2018 15:08:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV61PJIpp2sBrIGGzPTuwHWxMl+M3vTD/93ywu3jPupXlCri8PSmo/zPehE8RORtD87ZUyqPO X-Received: by 2002:a63:3207:: with SMTP id y7-v6mr7393849pgy.101.1537999715972; Wed, 26 Sep 2018 15:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537999715; cv=none; d=google.com; s=arc-20160816; b=yhQvnLRJ0TOuecOC0l+Z3Vk0F1aWFbA84D6179Ca1tyH7yAGLG88TWnFRqyK/zOGEy aqlTVlQBPnpa5O7UP3zu/jzjxTtvC2xNPpply0BEx7nudVudrOcsqySLkqMyiVEOAdQw lHrty4NZCV3+Oc+vYp3rOj4tRQz7AccwvDB4Epg+yV8poubAOVo2bnDeg7ZfHvel0mQN sTk+7wdbSAfIbDJuPkGLdwFzS2bizK4QnzbmoGmZVUcQzfSjoOn2V9sOIzwlp4pcKxye wnzwZScFl6SCVK/HcVlP9p+4BzQSNrsrUpbsp0BJT+lIWdjOhGEaX7/fzXyOq9yFaq+y BJdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=fUVVBKYZeVZVdeTN9TCCdtl9O7iZBqlfP3XxeMxjPYI=; b=LH5FxYVifIycgFG2DSRiv0TYXiRsDnfdWeOx9Hm7xN5BDE/y5xktTfBRtTRqkvc9O3 mEkvEvibye4V2fK2F0hNcrtDePoUWYJ2w1nBzmPyhjSuZsyaATSSJWtZAdQ7mrNPJHhb 8TI2LBi/pSOX3HvkR/Cx6rKN2vvtugIIzLHFYvdmsCVWMQuJrI3he5Bm7GpmZ/Nsrj+B 9ZwLsqW6mzS1S76JW6e6krz4EH6fmlxLYnS1kv3r3ubYexBxuru4ETJ1gjCSz7iuQpUS ugfs6mIfhaQgwQGpPccFjE/AcFvuajHFGJscfgsNZEzXzKyVDCQzE7rRsp8HAKqdBTAA lRuA== 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 f89-v6si232217plb.37.2018.09.26.15.08.20; Wed, 26 Sep 2018 15:08:35 -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 S1726591AbeI0EXE (ORCPT + 99 others); Thu, 27 Sep 2018 00:23:04 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:56964 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726041AbeI0EXE (ORCPT ); Thu, 27 Sep 2018 00:23:04 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 42LBrv15JVz1qxx6; Thu, 27 Sep 2018 00:07:59 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 42LBrt5tXDz1qqkx; Thu, 27 Sep 2018 00:07:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 0kyGAGyhhrvG; Thu, 27 Sep 2018 00:07:56 +0200 (CEST) X-Auth-Info: e56q0BqvYIfK2/+kHTuL3GAd2vOPcjSNGFpQLrEB5gw= Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 27 Sep 2018 00:07:56 +0200 (CEST) From: Lukasz Majewski To: Frieder Schrempf , boris.brezillon@bootlin.com, Mark Rutland Cc: 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, Lukasz Majewski Subject: [RFC/RFT PATCH v1 0/9] mtd: fsl: quadspi: Fixes for fsl-quadspi.c driver (vybrid HW) Date: Thu, 27 Sep 2018 00:07:30 +0200 Message-Id: <20180926220739.620-1-lukma@denx.de> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 drivers/mtd/spi-nor/fsl-quadspi.c | 103 +++++++++++++++++++++++++++++--------- drivers/mtd/spi-nor/spi-nor.c | 2 +- 2 files changed, 79 insertions(+), 26 deletions(-) -- 2.11.0