From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BB2E31A6192; Tue, 30 Jul 2024 17:06:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722359178; cv=none; b=D3Bifh9Oux33wglklh3wPddhFa8vDkKsiP4L7r1WQkLg7NnNLcAwzAgGhwJjtWmADnWK8CCZ3dhABjPej9+4Q5bTTN5nSxOk9yNi8gg2cwv4AO1o71s2ECEnywUaflFS+BdiojERYifVivGSoHl3YFWMdNv3QjaYAi2YGw25hlo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722359178; c=relaxed/simple; bh=mmAPnMgJch6b5jG4vO2HsnELfwa2pJY2Gw3wfrgoLKg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=L3b6ZBDFbfMhDIX2eEtXzDY3bWaiQijthFzJLWYWao40Lq6S2aLgo32snqF5o0M2XOLnNxdKhNiU9uMaragAuXvkmCt2JL3drJH3JHObG8vZayoyNqPpilMo20YNGHVsrYAzeizMOn0G/rJc5X0UKYzuuf6wsE82UGTIdHrQr2U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=itC1rfks; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="itC1rfks" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43F98C4AF0F; Tue, 30 Jul 2024 17:06:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722359178; bh=mmAPnMgJch6b5jG4vO2HsnELfwa2pJY2Gw3wfrgoLKg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=itC1rfksa4HzHAxQ1ygHb8vuNQaS9aDJcDiTkY+1okSb2TBB5/GcghQwG9+NovQIo XoWVLHfVqjQPUcwz2naFBXnEoR2oLIQVEzm2ZLsOFI1Re8aJSNbYAh/E3VCFNHRxFd Ijex6snRgMCCoGWJv/Jt2qjzCM3TSx6cTqDZUjqs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Heiko Stuebner , Srinivas Kandagatla , Sasha Levin Subject: [PATCH 6.10 447/809] nvmem: rockchip-otp: set add_legacy_fixed_of_cells config option Date: Tue, 30 Jul 2024 17:45:23 +0200 Message-ID: <20240730151742.361992649@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240730151724.637682316@linuxfoundation.org> References: <20240730151724.637682316@linuxfoundation.org> User-Agent: quilt/0.67 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 6.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Heiko Stuebner [ Upstream commit 2933e79db3c00a8cdc56f6bb050a857fec1875ad ] The Rockchip OTP describes its layout via devicetree subnodes, so set the appropriate property. Fixes: 2cc3b37f5b6d ("nvmem: add explicit config option to read old syntax fixed OF cells") Signed-off-by: Heiko Stuebner Signed-off-by: Srinivas Kandagatla Link: https://lore.kernel.org/r/20240705074852.423202-5-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/nvmem/rockchip-otp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvmem/rockchip-otp.c b/drivers/nvmem/rockchip-otp.c index cb9aa5428350a..7107d68a2f8c7 100644 --- a/drivers/nvmem/rockchip-otp.c +++ b/drivers/nvmem/rockchip-otp.c @@ -255,6 +255,7 @@ static int rockchip_otp_read(void *context, unsigned int offset, static struct nvmem_config otp_config = { .name = "rockchip-otp", .owner = THIS_MODULE, + .add_legacy_fixed_of_cells = true, .read_only = true, .stride = 1, .word_size = 1, -- 2.43.0