Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp478801lqh; Tue, 7 May 2024 05:25:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmgx+dzKOb6pkpb7vY+qJq+VmD8m4da4F5m29FuHjkHKiUlSPRIAiIt8Co0rsVd7gEaj0RFGScwPeTrbxYAygveC9gftExG48SvdJU1w== X-Google-Smtp-Source: AGHT+IGmfU5scAgRIwZy7XsOZevKn/jfVpG6pz0SeqJuSQtm2rHvSCcVMoFlEjm96sdr/kDTY9Gs X-Received: by 2002:a17:906:e945:b0:a59:76d5:3a14 with SMTP id jw5-20020a170906e94500b00a5976d53a14mr2043732ejb.5.1715084719800; Tue, 07 May 2024 05:25:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715084719; cv=pass; d=google.com; s=arc-20160816; b=TRkQHGEoRuykTf3PDfJiKr0tCxuiZaF2ZkKu1QupsKnqgCyvmiJyyfI5zLzNMBncNa zHEhVQwnwTB+XWLUjjIghyy1fQiLN+3wY9WDu/eDUSYZg8LCoqjYZ0SeRCW3P9vaGfeR cHxS2U+EXV2Lr+tUtONsP0ZVZkIEJB1mv8ZdJDkp5e3UNfFZzlZAAzl0qM74i1BE+2rj 8z2sL5dxuOjpCxmDQPI7vlkkI2FpxFeDRTveLYDMqs69VYVeVIl/jAv/hxjD0vVtjTCj SvvPJ87mGEqfLcF6llOWyyx9lMvBBRc60ax0GZAaj+XgsFSgsTOfm24I1TtedoysPC6L enKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=82DP9UxKVdJj2hvHB6Fvn60azVLRUJY0QpDdbZDv2bs=; fh=ZTDqEIeoz8IpQP53MAP6KHp/IrDl2zHpeWkTDtGCMbY=; b=lwv1WMS9ngLWqB3rjJfd5K4ruBo6Kc7u9Ts3YSvKDtaLcvs6/m7i1UY25sVndTPy79 YkxgmuR0C3HWfwNjfc6wrH+kfGtRnfotFquNUKFN30DpPh7mhuvG9k3T1OcdqRv6EwFj +O2ucCxsNGNbUrGzhaRrJHNcKAZvRDC/Wtvm+Kh2mEgG4RHWTLm/vYC2cLPB7i52mGQh NORtnzwb/VRPTw3l/aH/A7TxNgkZShRC9v13jSB9cvnKQ5q9q3v0Hgo38XHmX2NXVEEZ +TPkqyFgQHs6l2aQ265TCglyMVWSbmN1r1jWKZU3ZFI+2bwVJngC5RZsOIO8FFu9Msgf kgOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-171268-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171268-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l12-20020a170906794c00b00a59ced36585si2196544ejo.403.2024.05.07.05.25.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 05:25:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171268-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=sntech.de dmarc=pass fromdomain=sntech.de); spf=pass (google.com: domain of linux-kernel+bounces-171268-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171268-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de 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 873CB1F25AEF for ; Tue, 7 May 2024 12:25:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90ABB15ECEE; Tue, 7 May 2024 12:23:12 +0000 (UTC) Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (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 32EFD15CD63 for ; Tue, 7 May 2024 12:23:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715084592; cv=none; b=LH7XBCZnp9C/q5kyh75Ji499Ayw2sZEikJQBhUmb9PXAmmPMrA2sCx+xoQKPB1MKarjXTD/R8Ic5TMrILYXyfABca3jlGrtwlbL6HpWICPpoDQqo364Gn4nneE9TRMwXfJfz7HIwu9OQx6auVyLvemmLySpGFxjjXB2eDHDA5vY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715084592; c=relaxed/simple; bh=YmrVIs9HB41SZ4AUA4rNUoZtMI7Gwe0P4MbrUBibe38=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ay8TrjxMbZB003tJgnMAp/sofilmOCnyyPzzDKw0+cjsJ9WUiOHXeJdMDQojr7fECtnDvwLQQ6/a8R9UEgPCOYnvm/0tHibqnJiBhQLv14tfRhsPw8dDr6HBGFmWDiHoJ7HT3Cq3kanU5L364s/2axiTly4zMYIT7jq2O9W0HlA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Received: from i53875b5d.versanet.de ([83.135.91.93] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s4JqZ-0006h6-CK; Tue, 07 May 2024 14:23:03 +0200 From: Heiko Stuebner To: srinivas.kandagatla@linaro.org Cc: heiko@sntech.de, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, quentin.schulz@cherry.de, Heiko Stuebner Subject: [PATCH 1/3] nvmem: rockchip-otp: set add_legacy_fixed_of_cells config option Date: Tue, 7 May 2024 14:22:54 +0200 Message-Id: <20240507122256.3765362-2-heiko@sntech.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240507122256.3765362-1-heiko@sntech.de> References: <20240507122256.3765362-1-heiko@sntech.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Heiko Stuebner 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 --- 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.39.2