Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp227230pxx; Wed, 28 Oct 2020 03:25:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW5DEmzKT9AcWXOjLAHZ39HBpzKHrdu3UNfQ8pWTqYMoQsFmt9XcVFn79/LYjjlrsmpqL/ X-Received: by 2002:a17:906:af47:: with SMTP id ly7mr1697742ejb.532.1603880714801; Wed, 28 Oct 2020 03:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603880714; cv=none; d=google.com; s=arc-20160816; b=mM/P3uo8caOmiXyBsvacWk5TsYvDKanNyq/7JNTfD/0IQhr/N+CfydUNbPp8lbrz50 OGGaifFFQQ9b51nqyewgSJmuXIFI+wmvGz102nxMxhxs6tgMHwcH1RfmEBqeqN13yARP LwWeY5Ucx8YwLSIMy5QGV/nn9Sm1smmaAeSKMjLs4SrDUU/VgwGYGy/OjIQjqQxAPYpH kQvtKCWYvgZGDowU48XSWLN3mUPhlRGU78vvquUbzN4F7KTzd1uFqvMScho8V2vTlzTg j95Cm+tb+etLkbBDCea1rv7hj63cvyCxugQjAIN/fGSheU58cw0VywQFSF9n1Ib3pR0T 1B7A== 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=mdKuodJ+su10hMYMUuwGw0fJpENGz5zm78aC1x+Tu44=; b=XuflNq3P8iI6fbsy4IbqxaIAtECGZivJVRwpxjZtCpzNPVX8Lj2coOJtcMUV6rDKT1 joqIFhqnH3BvR52mlb6AwpYouSLkyNbPxpnmWCHrEexq9lRMWL9/L/VtHFeY0vqicjdp RjhYUMo7CtzBkOx9TjTcDQzhmDMohUhnzvKvL3bD0OTB3jpfzgqJVYZ38r7LRXxO/Vya dGqRptzrr+Ioylw+Mn23jTX/FJFnprE3igUuuRIH/ezECkB9HYM8YUw9x5FpJCF49ppS bSGwR5Hlg0SHXBJ43ET20197oLr9ujb7vWbpvo9+YVmTZStTCzIOP50q5zxhc51jlx4p 3lUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oMSqmv33; 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 lg14si2653130ejb.82.2020.10.28.03.24.52; Wed, 28 Oct 2020 03:25:14 -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=oMSqmv33; 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 S1750025AbgJ0Oji (ORCPT + 99 others); Tue, 27 Oct 2020 10:39:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:38630 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761379AbgJ0OjV (ORCPT ); Tue, 27 Oct 2020 10:39:21 -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 D447822202; Tue, 27 Oct 2020 14:39:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809560; bh=nkB96SWmOMFCEw8PxawYRRfX7ld+cwFg33Fk1bgvC20=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oMSqmv33EiM2LNqElE3MuKZGbn0sKMuRCughfF0CrZMaykpJm39KVQh8SsGn+nGSb Hh/ZIdBzP1ZaJBZKbsuF6OjgHC1epF4oQtUnoa6YIQzn93j7unQpgHVe22tFKZaPnE PYWFTstIXMuTCquuXKsz62yRPmWUdXMTdIuZp7YU= 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 239/408] mtd: spinand: gigadevice: Only one dummy byte in QUADIO Date: Tue, 27 Oct 2020 14:52:57 +0100 Message-Id: <20201027135506.144477307@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 6387ad9caf8f09747a8569e5876086b72ee9382c ] The datasheet only lists one dummy byte in the 0xEH operation for the following chips: * GD5F1GQ4xExxG * GD5F1GQ4xFxxG * GD5F1GQ4UAYIG * GD5F4GQ4UAYIG 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-2-hauke@hauke-m.de Signed-off-by: Sasha Levin --- drivers/mtd/nand/spi/gigadevice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/spi/gigadevice.c b/drivers/mtd/nand/spi/gigadevice.c index e99d425aa93f5..45f4c1f4a3d1c 100644 --- a/drivers/mtd/nand/spi/gigadevice.c +++ b/drivers/mtd/nand/spi/gigadevice.c @@ -21,7 +21,7 @@ #define GD5FXGQ4UXFXXG_STATUS_ECC_UNCOR_ERROR (7 << 4) static SPINAND_OP_VARIANTS(read_cache_variants, - SPINAND_PAGE_READ_FROM_CACHE_QUADIO_OP(0, 2, NULL, 0), + SPINAND_PAGE_READ_FROM_CACHE_QUADIO_OP(0, 1, NULL, 0), SPINAND_PAGE_READ_FROM_CACHE_X4_OP(0, 1, NULL, 0), SPINAND_PAGE_READ_FROM_CACHE_DUALIO_OP(0, 1, NULL, 0), SPINAND_PAGE_READ_FROM_CACHE_X2_OP(0, 1, NULL, 0), @@ -29,7 +29,7 @@ static SPINAND_OP_VARIANTS(read_cache_variants, SPINAND_PAGE_READ_FROM_CACHE_OP(false, 0, 1, NULL, 0)); static SPINAND_OP_VARIANTS(read_cache_variants_f, - SPINAND_PAGE_READ_FROM_CACHE_QUADIO_OP(0, 2, NULL, 0), + SPINAND_PAGE_READ_FROM_CACHE_QUADIO_OP(0, 1, NULL, 0), SPINAND_PAGE_READ_FROM_CACHE_X4_OP_3A(0, 1, NULL, 0), SPINAND_PAGE_READ_FROM_CACHE_DUALIO_OP(0, 1, NULL, 0), SPINAND_PAGE_READ_FROM_CACHE_X2_OP_3A(0, 1, NULL, 0), -- 2.25.1