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 9586626F2BF for ; Fri, 11 Sep 2026 01:26:46 +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=1789090007; cv=none; b=eKfC/kN1ZTo9jvUaSnPcwPtf7dr4hUZH7GJMFhudg09acfIHl9FTFjdsd8FnX9BHRSZ5v2c/E6YPF9Saq7GMejx657h1/yOHCx1fHdUn5SWri2Cv3HPo+Y6jBhxQpBGg6h5EzALBro4rTUkHCQcX0CmDeMyfF87yO+M4DTlXz9k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789090007; c=relaxed/simple; bh=Gmkvt/D8slQQ4UKNOohNSO5ACWV7EVWCjdtvpNWdQbQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Cxh1Ng6oGYds5ljKYK9UinT6hh5kySYmtFleNxAqqRj7GUMxYNSihkcSy5kOkQX438KjUWRjlb66n0Oka7xhvUo3RAbimLBcl5Ckds+LOVFB5pZARPF7vE66Ux2+7TRAuhIvdTMe3o1+pzzgL3g4sK8DiVAZFlS05L7gAE0PbmA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KfSvtdxg; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KfSvtdxg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9A541F000FF; Fri, 11 Sep 2026 01:26:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1789090006; bh=4geSr4HqaAGeUyXFXXeSFHlkZQbnj37y/5IT5pyYwsU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=KfSvtdxgg+mZiQiuUol4Uei9gYAV7iwTvk4aNTjAVHfdT00vWO2bliHVY2pcOOb05 ZREU8/XcHpXnFoptTwGqKFzfI+Nqni01klEjZkocjMBJ12oLoN+J0op5BMeAFAtAbE 7DQRQxDoPwPJp3e4GB8me9sTdr04JCApbpEgvWVugVbRhpqkE56lgk08dynzJd4pAG jY4tV7WkZ0CLdjmOwJaER/TPeshVQZFTmOTfpX4tbKN3v+ojjOfg+kOsOalri2Qxu8 +/5R4Ksj1DYgLq+xPMi2fKvJe0EUMvnxAaYUiWoOIHNrq9CMWxxDF3LzOYpVZvoWlH HdoenVgjZuYAg== From: Sasha Levin To: stable@vger.kernel.org Cc: Andrea Scian , Miquel Raynal , Sasha Levin Subject: [PATCH 5.15.y 1/2] mtd: rawnand: pl353: Add message about ECC mode Date: Thu, 10 Sep 2026 21:26:43 -0400 Message-ID: <20260911012644.4084201-1-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <2026090928-hatchling-unvocal-7c09@gregkh> References: <2026090928-hatchling-unvocal-7c09@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Andrea Scian [ Upstream commit 1e06dbfdfb851170b243d6498e442b449324c664 ] This just add some information on kernel log about the selected ECC Signed-off-by: Andrea Scian Signed-off-by: Miquel Raynal Stable-dep-of: 80ecacd054ff ("mtd: rawnand: pl353: Make sure we use the monolithic helpers for raw accesses") Signed-off-by: Sasha Levin --- drivers/mtd/nand/raw/pl35x-nand-controller.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/nand/raw/pl35x-nand-controller.c b/drivers/mtd/nand/raw/pl35x-nand-controller.c index 04e62c3ab5975..929dc759c6b24 100644 --- a/drivers/mtd/nand/raw/pl35x-nand-controller.c +++ b/drivers/mtd/nand/raw/pl35x-nand-controller.c @@ -975,15 +975,18 @@ 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"); /* 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: case NAND_ECC_ENGINE_TYPE_SOFT: + dev_dbg(nfc->dev, "Using software ECC (Hamming 1-bit/512B)\n"); chip->ecc.write_page_raw = nand_monolithic_write_page_raw; break; case NAND_ECC_ENGINE_TYPE_ON_HOST: + dev_dbg(nfc->dev, "Using hardware ECC\n"); ret = pl35x_nand_init_hw_ecc_controller(nfc, chip); if (ret) return ret; -- 2.53.0