Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp439108lqb; Wed, 17 Apr 2024 00:13:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvZ8NsUqMTp0UzenZTzjFYOmQtp2flMeLNZ8he8kyVXeYVqcPJ6lt6X2hnYc1YsnRAlX64gBO6uoP38JY1ZAdJ+4j2RXoZbO9PqHo9fA== X-Google-Smtp-Source: AGHT+IGZ6sKx0sOyTKbQpMA1qb0fkytS03gaaqW7TZQjT25uV6fGJ/KzAleH3AupC1pwTR+zBsHw X-Received: by 2002:ac2:5056:0:b0:516:cd71:9bb1 with SMTP id a22-20020ac25056000000b00516cd719bb1mr11541127lfm.38.1713338029404; Wed, 17 Apr 2024 00:13:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713338029; cv=pass; d=google.com; s=arc-20160816; b=I9vU6s26LDTnZkLCyZv/mULcAvDebesgg8C2Y2fH4bhRVmVm+2rhpkdD4pLzCDFtkC OfoF2ublJOuVWPWqY6PA+ndjYHiyJ+gM/6Jhs5vC9Q+JBh7S4ga5H9VLK5J4sgnn5P4a eAMQm0r1IeQIM/VzUgP6EMsRML2OzgEWYBT1jxrizsOH5JjiLyj1JC+bA0AZ7txaI4hn WrLO2WqpJqfjjr7fUazWsoYYE6BzwpTs/VeEF7jKFGGrITF7Yexvf2VdnZXVTvKmv/ai jOuSEFF/imHdTg3CCRa69m8nygPHxpS9cQQ2bdaN6KuFG6kxrP56r7rNzE0QcJ96ktuc 5QuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from; bh=2wOyjrVOk4mvIl39OHMQu/jNyp0ptV+5SZn9yFidUEQ=; fh=A6vTKu2Ae1sKKtFnOKaQ4OlMrHeYs/jXUw2105gYFpM=; b=NdOw7cpNGXV0vnlpCLgeh+GZTcJjMUulcQfZD1HgSGEgXuTT2EFlI72YaWkszem7eo 0TB1xpmK8PWGMwmHACezIBCMMKevpBP8fypIKxNX2w0THUcFXmi8KOVgTByafI/1L7IV FHrwHHjdnSQ1hmKXDTggCc7jP9ps7Yhg/aQvi80BgFlgDdboTHOUTdgw9CTL01A1zKSy HsiXwu5out7e2+MGY6osPFWCLR6yEzl8legj6cgPrfOZqwF3yWmW6beQo8n8KvwrVcF4 q9SbwZVGipiiWHidNkNEcUbtFGTdF/tZmm0GfZ/Z1nJc8rU1ByuTu4WtuDGqiLAyuxJK 2tQg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-148031-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148031-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gn40-20020a1709070d2800b00a519d2c0340si6511379ejc.302.2024.04.17.00.13.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 00:13:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148031-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-148031-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148031-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 225111F2267C for ; Wed, 17 Apr 2024 07:13:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F6486A356; Wed, 17 Apr 2024 07:13:43 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28AA751004 for ; Wed, 17 Apr 2024 07:13:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713338022; cv=none; b=KlCEg776Z/nHw8HZOYWsuHGurQdWUnDosvjcGaxthwF0avuSHkwDuJTGCdfZDEDV5YmxYUUgnHXDUe2NQFzFHsiOv4FJFzlhP7BJmbPykekCVoirGglOSgepqKEvs1eTYKI4zJIKAxb2gKpj6BM0121y32eyh7Q7X4+XgCFJ9nA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713338022; c=relaxed/simple; bh=f4vpEwO5Ukkdwq5L/q1z6Z6OIC3zA76n2ySQqI2A85s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=oN3y7H4uCcuzsw95NFFJuyHvlOmvM1Lffr9vyFl0ReypGnh9frmrddJJuqMcM73qTCyYns10LrYEsb4TjdLg5aEAPV1xvQgkl3B8hH/Q9x9rVfWgK3omF8cdnBb/wxcMvozQSOikch7lxVxtYui3b7ITBqMjnUG1jTrATBGL6FU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rwzUB-0003WA-EK; Wed, 17 Apr 2024 09:13:39 +0200 Received: from [2a0a:edc0:0:1101:1d::28] (helo=dude02.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rwzUA-00Ckaq-Cr; Wed, 17 Apr 2024 09:13:38 +0200 Received: from localhost ([::1] helo=dude02.red.stw.pengutronix.de) by dude02.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1rwzUA-004DbZ-0w; Wed, 17 Apr 2024 09:13:38 +0200 From: Sascha Hauer Date: Wed, 17 Apr 2024 09:13:31 +0200 Subject: [PATCH 4/4] mtd: nand: mxc_nand: disable subpage reads Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240417-mtd-nand-mxc-nand-exec-op-v1-4-d12564fe54e9@pengutronix.de> References: <20240417-mtd-nand-mxc-nand-exec-op-v1-0-d12564fe54e9@pengutronix.de> In-Reply-To: <20240417-mtd-nand-mxc-nand-exec-op-v1-0-d12564fe54e9@pengutronix.de> To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Sascha Hauer X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1713338018; l=783; i=s.hauer@pengutronix.de; s=20230412; h=from:subject:message-id; bh=f4vpEwO5Ukkdwq5L/q1z6Z6OIC3zA76n2ySQqI2A85s=; b=5kjRAV50giARKjz9Sbj8NCd9X6M3bXO1EWHmuHNosu7XjDeUHp9yXysjq+JPA8yAhdECIJqFX I8+s0ujSwIcDaNZ3lL5BJrl7+PPrB3qO9b5KOcsT7UbNx4WDbXdxhyg X-Developer-Key: i=s.hauer@pengutronix.de; a=ed25519; pk=4kuc9ocmECiBJKWxYgqyhtZOHj5AWi7+d0n/UjhkwTg= X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: s.hauer@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org The NAND core enabled subpage reads when a largepage NAND is used with SOFT_ECC. The i.MX NAND controller doesn't support subpage reads, so clear the flag again. Signed-off-by: Sascha Hauer --- drivers/mtd/nand/raw/mxc_nand.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c index f44c130dca18d..19b46210bd194 100644 --- a/drivers/mtd/nand/raw/mxc_nand.c +++ b/drivers/mtd/nand/raw/mxc_nand.c @@ -1667,6 +1667,8 @@ static int mxcnd_probe(struct platform_device *pdev) if (err) goto escan; + this->options &= ~NAND_SUBPAGE_READ; + /* Register the partitions */ err = mtd_device_parse_register(mtd, part_probes, NULL, NULL, 0); if (err) -- 2.39.2