Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp279650pxx; Wed, 28 Oct 2020 04:53:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC7nxvQNvAULaSeeYPMqs9EqRKM647jiM1e8AtYlnhOEK4WNHIG5YCbNtuqiOyYEZC0kqr X-Received: by 2002:a17:907:4273:: with SMTP id nq3mr7269345ejb.439.1603886013026; Wed, 28 Oct 2020 04:53:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603886013; cv=none; d=google.com; s=arc-20160816; b=dn+EnCkDLpMdsIYjMP2Js4XBwrXHT2z/J3BX+AAwU9VvzBjy2E03EPcDfhw3hjYv5P nTnnM0tG1JZpOnt5+96ZptsEW8VOsNTR1B4JlsyJpp8qCUgzxeShtPb38Z+tlDcJrb2k u6gguZGy00F/9py2AsvtkXqryCRQUr6V1MXKkk1MZimlTIAtp3VQft0TJhLdjkn/S34i OU3smklx/3ZE7SsSCrKi0MUftobVXC8gLsbhjgOnrqnwMmH5cJbAAa7R1Ez/rVK4rjkV 2yH7PvrwznhYJ90xygyxmfOeWOJpwXL0aa+tx6DyRxPd7M8D7DbTADuyb2lCdIAFZO+k fHFQ== 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=DHLaRCDY5uezFvhMnih1GcXAKEp/rIlfx177WZe0pAY=; b=WxlLOlFCKt66Nl8nMAu4Gc3ukBz/KheQhhirvA7Qldqj0v4gif1DG0r4FOkUDeICQ8 9uFdAPYWvhavr4KvyIw3BvVJ30HKLltNyAYlx+J9I2CEbDcI2JErRga2mcSB1Ew9YiYe k5DWL/ezqkbgko3fj4uwowE5oA610hM+tZkZv3AKZcu0jb8SipB+f7Oo4nBcLvmofGxa XfI0sx/T46jD1PLrDA5M9YTagBDPyvu/dofKWoMr9nG1BDpi0/60B4mUTq0MA67o6h9Y 8bTqn8iYR6FtviHLMP67gVerPm54cHdlQ2kjuNHRG9GHnwK9JDYY/UdbEkZ7R1Ek6FKG TZhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZSQEe6Xb; 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 p90si2749641edd.284.2020.10.28.04.53.10; Wed, 28 Oct 2020 04:53:33 -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=ZSQEe6Xb; 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 S1794664AbgJ0PM4 (ORCPT + 99 others); Tue, 27 Oct 2020 11:12:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:40172 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1791009AbgJ0PFz (ORCPT ); Tue, 27 Oct 2020 11:05:55 -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 8FFB321707; Tue, 27 Oct 2020 15:05:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811152; bh=v1TWsyl9QkVJ3ilSlyOLFTJV5GSW46ODBKPlzPkHzno=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZSQEe6XbEXcRY7oDF/rybZNLq6a4B7O+a3hPdgS1W+zX5j01rSntbmBNxAfpT3Vp4 LcpAfNP3z4HDA9M1xrkLliMOHoDHrJilGDCcXxNhNmbz34q+7JxU7rMvX3hEoSL/WA RtXmyuixZ+veAEQ6xs+dAak+YqHvjU3ago93ON0o= 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.8 392/633] mtd: spinand: gigadevice: Add QE Bit Date: Tue, 27 Oct 2020 14:52:15 +0100 Message-Id: <20201027135541.092570579@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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 679d3c43e15aa..0b7667e60780f 100644 --- a/drivers/mtd/nand/spi/gigadevice.c +++ b/drivers/mtd/nand/spi/gigadevice.c @@ -202,7 +202,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", @@ -212,7 +212,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", @@ -222,7 +222,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", @@ -232,7 +232,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", @@ -242,7 +242,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