From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 984B9CDB465 for ; Mon, 16 Oct 2023 09:27:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233062AbjJPJ1L (ORCPT ); Mon, 16 Oct 2023 05:27:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232959AbjJPJ1J (ORCPT ); Mon, 16 Oct 2023 05:27:09 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1239CAD; Mon, 16 Oct 2023 02:27:06 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 7FEDD240012; Mon, 16 Oct 2023 09:27:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1697448425; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AnVL+zrDTr8QgteqkwzGAp+s0MFLelcomSpW2exEsdA=; b=MigWbuavOpPnKklMd+nDek00kQjQD4T+OPGYVxh0TG8mNbC6yPP0RjEwnIpU9C6K/RokMZ 5cqAJlnwNAZo609xfxqRp2N+QLEnP0lOJ9NgkX2skwyGMpNUXkk3hTAtQXV7dRyBn0kXX/ JwyZr2P7AS2Q00pGLo2wOF+btpzFvxCLjk6Od8JcYK6a3NWmkNFbNJyKTTNNDFZkIX9Km3 VqkbmHYsdnMSZzJqZYg9NptHtJKi9BiN41E0mavBUVZl8i+BV8Src0c5zuWSbma9VWXtF8 vNolmxwgPFqlrsTnsxsESi3LYVjXegp0PwgKMsT53wJA+uyC5dLrGh9Ol1NvdA== From: Miquel Raynal To: Rouven Czerwinski , =?utf-8?q?Martin_Hundeb=C3=B8ll?= , =?utf-8?b?TcOl?= =?utf-8?b?bnMgUnVsbGfDpXJk?= , Alexander Shiyan , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , JaimeLiao Cc: kernel@pengutronix.de, stable@vger.kernel.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mtd: rawnand: Ensure the nand chip supports cached reads Date: Mon, 16 Oct 2023 11:27:02 +0200 Message-Id: <20231016092702.288259-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230922141717.35977-1-r.czerwinski@pengutronix.de> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'f6ca3fb6978f94d95ee79f95085fc22e71ca17cc' Content-Transfer-Encoding: 8bit X-GND-Sasl: miquel.raynal@bootlin.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2023-09-22 at 14:17:16 UTC, Rouven Czerwinski wrote: > Both the JEDEC and ONFI specification say that read cache sequential > support is an optional command. This means that we not only need to > check whether the individual controller supports the command, we also > need to check the parameter pages for both ONFI and JEDEC NAND flashes > before enabling sequential cache reads. > > This fixes support for NAND flashes which don't support enabling cache > reads, i.e. Samsung K9F4G08U0F or Toshiba TC58NVG0S3HTA00. > > Sequential cache reads are now only available for ONFI and JEDEC > devices, if individual vendors implement this, it needs to be enabled > per vendor. > > Tested on i.MX6Q with a Samsung NAND flash chip that doesn't support > sequential reads. > > Fixes: 003fe4b9545b ("mtd: rawnand: Support for sequential cache reads") > Cc: stable@vger.kernel.org > Signed-off-by: Rouven Czerwinski Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes, thanks. Miquel