From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 9CC9C3B813A; Sat, 12 Sep 2026 07:09:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789196954; cv=none; b=kBWJY2+f0/9YCZh1bp6eOfhGbBowWOxqgwkkYt4k9o+h6ovDZU5FANeh5NjQwAorjw8p93GSRpmrCRjZ5l3Rzbmf1vQDbJqOida2eliNkY8BBGXhw5MSi5S7vZV91lxYI4iJ3AQtbIwtEUGxkCIddtl2yWzm4wnMLNP4lyrGx2g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789196954; c=relaxed/simple; bh=HNUYGwvvsm24uYqyoNdMTaH+XL8wjDMUMTT4qycC4FU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gJPsDp1Vq3ByXZuSKz9fDKEUSjd2XDWh3z+8NK/RUin2lNzgt0dFT5Z/kq0MFJaqZTnlpBKLBjqpVL2PU31NU3u/j5Jjo4jTNfMFqm3b63yycy0Bt0ncLMGwCyyHZCv0Ptu2RLGa2s+vlViHiOyg3cEiqzrOX5SuUW0wfwkYJZ8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hMHomBlt; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hMHomBlt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 511B91F00899; Sat, 12 Sep 2026 07:09:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789196953; bh=+ttAzx9iqc8fcS1pe8slcDTEqTWk0XGyjGhIHoePkXs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=hMHomBltUTcUSxtDdjhc9SQtZXZ1fi6FnF/sIg6jYVON5wAwSwRLDhfnboearaCW+ IvasrcCBiaxGINTSTbC/UJEfUU+05smf7WkBaOA36jPi/uNG2UdbALS/gVRGmbfDy5 XAR6H+PJvP79slcrkCcfnLSluM2Y+W0ZdJoNIFxA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, "Miquel Raynal (DAVE)" , Michal Simek , Sasha Levin Subject: [PATCH 7.2 0071/1815] mtd: rawnand: pl353: Fix debug prints Date: Sat, 12 Sep 2026 08:30:21 +0200 Message-ID: <20260912065650.682901290@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065648.999753832@linuxfoundation.org> References: <20260912065648.999753832@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.2-stable review patch. If anyone has any objections, please let me know. ------------------ From: Miquel Raynal (DAVE) [ Upstream commit 2b7baaddf1bc3e39206a0354449fdc349945b86b ] They are partially incorrect since "software" engine does not mean hamming, the "none" cae is also falling into this print, and on-die means there is some kind of hardware support; we prefer to use the wording on-host vs. on-die. Fix all those prints. Fixes: 1e06dbfdfb85 ("mtd: rawnand: pl353: Add message about ECC mode") Signed-off-by: Miquel Raynal (DAVE) Acked-by: Michal Simek Signed-off-by: Miquel Raynal Signed-off-by: Sasha Levin --- drivers/mtd/nand/raw/pl35x-nand-controller.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/nand/raw/pl35x-nand-controller.c b/drivers/mtd/nand/raw/pl35x-nand-controller.c index 7d43506b1654d..12b9e0936c8f1 100644 --- a/drivers/mtd/nand/raw/pl35x-nand-controller.c +++ b/drivers/mtd/nand/raw/pl35x-nand-controller.c @@ -972,17 +972,19 @@ static int pl35x_nand_attach_chip(struct nand_chip *chip) switch (chip->ecc.engine_type) { case NAND_ECC_ENGINE_TYPE_ON_DIE: - dev_dbg(nfc->dev, "Using on-die ECC\n"); + dev_dbg(nfc->dev, "Using on-die hardware ECC\n"); /* Keep these legacy BBT descriptors for ON_DIE situations */ chip->bbt_td = &bbt_main_descr; chip->bbt_md = &bbt_mirror_descr; fallthrough; case NAND_ECC_ENGINE_TYPE_NONE: + dev_dbg(nfc->dev, "Using no ECC engine\n"); + break; case NAND_ECC_ENGINE_TYPE_SOFT: - dev_dbg(nfc->dev, "Using software ECC (Hamming 1-bit/512B)\n"); + dev_dbg(nfc->dev, "Using software ECC\n"); break; case NAND_ECC_ENGINE_TYPE_ON_HOST: - dev_dbg(nfc->dev, "Using hardware ECC\n"); + dev_dbg(nfc->dev, "Using on-host hardware ECC\n"); ret = pl35x_nand_init_hw_ecc_controller(nfc, chip); if (ret) return ret; -- 2.53.0