Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp232078pxx; Wed, 28 Oct 2020 03:34:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDULKc5wn/ya6JGYkW29yEwtTGBhtnP/FzYkXuObAIrw9Y/gPal2AQzEJv8ZbBbK8QCKUA X-Received: by 2002:a17:906:9247:: with SMTP id c7mr5910088ejx.324.1603881256700; Wed, 28 Oct 2020 03:34:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603881256; cv=none; d=google.com; s=arc-20160816; b=sqaLRiPw5EGQz30TIEIbkcnDwhHa4/u1M70V76Nwtoc4Rh19MuNp1ZPHa07S2zok6r WnAwMz09DdBzerX8kGS1GTHLcu9b7ktRZvIjt3995CgNsVlSeRhIRrerGDBpUSJoqsb1 knY1C1ZRNXBc58dZ7pNuWxsyWLDttX+kdGwkwMfJkxahHUv5rA2MHk7FVumyhSY0OVah j5kU4t0Nl2X5zJYtoOfr8vewznILoWLnBzhMqE/9vPhCm0zfAT6UqCai9iu4+vTS3L5d n/lf7rqaSzGYCqqq9PayfllViVsR5+2/x+GhU1pwFi2eG7J7shEdl9fu/A3izAWmHwKv MdyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=cJA9/WT7ffypjHE6qJM3cHpLNSkmkv/prrmvfpIFB+M=; b=M29jwjsiDr7f5x1bIhVYaZAVFgNDXx7Bn8cZtI5ZEJxpvPl4rnKuvlVsUmFr78cvc8 jYBY0tBTUJ/gymg35nRoRfeklF8hjsak32FqZHWu2yrNzZm2aIPAGFoWHon6D4jTOJ7z 6/2FBgSRUfbBCtw8TUKomcwlLkBVTMZ5gq7ZlFJAHAq2xsEYZl+DhusJ5zoGwzNCwmBe DWIHY2d9cc7GRx9TAlb+/piRPF0xyuY32ZIiDPQ1zoszOEEwUoHyE6lAF4wXOHXoXbm4 8XPP8G7EgcPNVALpG07vZXPs4Qk8LXi2kT0yoBErPrL9TdyCIMQZQ3HViWmXURpwGLQM pJVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OQGJ7nJG; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b6si3402013edu.343.2020.10.28.03.33.54; Wed, 28 Oct 2020 03:34:16 -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=default header.b=OQGJ7nJG; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762480AbgJ0OnE (ORCPT + 99 others); Tue, 27 Oct 2020 10:43:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:38692 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761386AbgJ0OjY (ORCPT ); Tue, 27 Oct 2020 10:39:24 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9C562206B2; Tue, 27 Oct 2020 14:39:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809563; bh=eFZ/oyPdUgxHAEE7v9H/Sflidyvb+8diGlbs85+U3IU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OQGJ7nJGCkqon4w5kTnV/M4Y2JVIBuJ9Rlqo0y7gBJiCh5LPeHbPbswy8QPQF7jSt PEPVgdqctHpk0y4ZCBgb0+Jzx1gFKKpMULOhPwYpxPrl5kFE/f1d35vSG04PA4Wcrf 1igLHeJh/ePXowYuLvrnOh13FlViNn9Ck9OAgk5I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hauke Mehrtens , Chuanhong Guo , Miquel Raynal , Sasha Levin Subject: [PATCH 5.4 240/408] mtd: spinand: gigadevice: Add QE Bit Date: Tue, 27 Oct 2020 14:52:58 +0100 Message-Id: <20201027135506.189832484@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hauke Mehrtens [ Upstream commit aea7687e77bebce5b67fab9d03347bd8df7933c7 ] The following GigaDevice chips have the QE BIT in the feature flags, I checked the datasheets, but did not try this. * GD5F1GQ4xExxG * GD5F1GQ4xFxxG * GD5F1GQ4UAYIG * GD5F4GQ4UAYIG The Quad operations like 0xEB mention that the QE bit has to be set. Fixes: c93c613214ac ("mtd: spinand: add support for GigaDevice GD5FxGQ4xA") Signed-off-by: Hauke Mehrtens Tested-by: Chuanhong Guo Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20200820165121.3192-3-hauke@hauke-m.de Signed-off-by: Sasha Levin --- drivers/mtd/nand/spi/gigadevice.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/nand/spi/gigadevice.c b/drivers/mtd/nand/spi/gigadevice.c index 45f4c1f4a3d1c..b13b39763a405 100644 --- a/drivers/mtd/nand/spi/gigadevice.c +++ b/drivers/mtd/nand/spi/gigadevice.c @@ -201,7 +201,7 @@ static const struct spinand_info gigadevice_spinand_table[] = { SPINAND_INFO_OP_VARIANTS(&read_cache_variants, &write_cache_variants, &update_cache_variants), - 0, + SPINAND_HAS_QE_BIT, SPINAND_ECCINFO(&gd5fxgq4xa_ooblayout, gd5fxgq4xa_ecc_get_status)), SPINAND_INFO("GD5F2GQ4xA", 0xF2, @@ -210,7 +210,7 @@ static const struct spinand_info gigadevice_spinand_table[] = { SPINAND_INFO_OP_VARIANTS(&read_cache_variants, &write_cache_variants, &update_cache_variants), - 0, + SPINAND_HAS_QE_BIT, SPINAND_ECCINFO(&gd5fxgq4xa_ooblayout, gd5fxgq4xa_ecc_get_status)), SPINAND_INFO("GD5F4GQ4xA", 0xF4, @@ -219,7 +219,7 @@ static const struct spinand_info gigadevice_spinand_table[] = { SPINAND_INFO_OP_VARIANTS(&read_cache_variants, &write_cache_variants, &update_cache_variants), - 0, + SPINAND_HAS_QE_BIT, SPINAND_ECCINFO(&gd5fxgq4xa_ooblayout, gd5fxgq4xa_ecc_get_status)), SPINAND_INFO("GD5F1GQ4UExxG", 0xd1, @@ -228,7 +228,7 @@ static const struct spinand_info gigadevice_spinand_table[] = { SPINAND_INFO_OP_VARIANTS(&read_cache_variants, &write_cache_variants, &update_cache_variants), - 0, + SPINAND_HAS_QE_BIT, SPINAND_ECCINFO(&gd5fxgq4_variant2_ooblayout, gd5fxgq4uexxg_ecc_get_status)), SPINAND_INFO("GD5F1GQ4UFxxG", 0xb148, @@ -237,7 +237,7 @@ static const struct spinand_info gigadevice_spinand_table[] = { SPINAND_INFO_OP_VARIANTS(&read_cache_variants_f, &write_cache_variants, &update_cache_variants), - 0, + SPINAND_HAS_QE_BIT, SPINAND_ECCINFO(&gd5fxgq4_variant2_ooblayout, gd5fxgq4ufxxg_ecc_get_status)), }; -- 2.25.1