Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp483729lqh; Tue, 7 May 2024 05:34:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWoWo75oYaY56s4A9ZgMUFBlhkZc07VTkUMVDZ4NJrYKMFVsrtiAgjgg2jveh3c9JD8gLO6X+8OYWi1fBxnZPyiVEZEQcDN7xgA01dYng== X-Google-Smtp-Source: AGHT+IG44XD7PQxV1wWn9AQlgJX9jq9gf1r2gM5OenS1KPcVt52enca/HW6qhhNepHzlizC2sZ32 X-Received: by 2002:a17:903:2306:b0:1eb:1af8:309f with SMTP id d6-20020a170903230600b001eb1af8309fmr20083284plh.4.1715085269473; Tue, 07 May 2024 05:34:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715085269; cv=pass; d=google.com; s=arc-20160816; b=sOM35RgltKFJ6aSOaUM6iwX1SHneN5nCLPZtNuTc5+HX2+BR5zInh5psvg1+YkoaLw pIAX4yi2heTSYBGwD6cJu2HZTLck7l5eUD0oGAA4eix9Qk+bQ1WUxC+IoWiqVtjmIg3y OoKCFUleopZ/RumHIei1Xukz5GdBi///yhHzuMt9fJmhafptEDBdg/HDjTU0TbVuudu0 H34YgqRFlcAjtOpGlMM9IrTnqyQDqsM7nQ3aM7dA+atUb4EcAdI/hbgAD+lQaas4EbG5 fGsq3zvRDytrrx4IUpn+oKxIgSGXYIw+B9vn1Ryn1ay7AMU1wh3UWLXAWFKyu3V85NMD 8Bsg== 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=QKw3CXnJUwbKSqDKihMGaR92yahRjco4Wc/95y+aUyY=; fh=ZTDqEIeoz8IpQP53MAP6KHp/IrDl2zHpeWkTDtGCMbY=; b=p9vLsvGRRPqxUdxt5IRJyFHVhNp3glWa0vjpqDU9HovQNSPuD47FDMTtvTKoa/7v4K Q+aFed1XVjBoE9lLotIze1R5N8yV9nMuU+xydPqP6hGj9uj/j+wMvaQurB/JQVLLABXR 59Dx/fQBdr7wMvexsvyXsb1ZtHNYx9LTkQWyYOto+av6ruMz5YZLKQhzaTsfrJB+SEsa nGTGql/RkAlts+bYjoTpkx5ohz5u51JXWi7hNGeKW0Ur6/j1lQaKNeY/Hs00bz8o9Nzd xLYrg/qm8ekREIqSRZXAsI2r6ZeLoVzTPHqXdthoADyqPg+iaUU1xj6Nol8mV/TxizeX qu6Q==; 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-171266-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171266-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x8-20020a170902a38800b001ec67ed70e4si9940060pla.594.2024.05.07.05.34.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 05:34:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171266-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; 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-171266-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171266-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3E36B28888F for ; Tue, 7 May 2024 12:24:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F58B15D5CC; Tue, 7 May 2024 12:23:10 +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 9FCC4158A2D for ; Tue, 7 May 2024 12:23:06 +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=1715084589; cv=none; b=ViHAU7kLsPP22jPtEH2Jy0qD8yyc9JbtjqIfBfkJvZnGZxIpKDJQ62Y7nbCSPaOzbH/nobBKhokK5w2clTaV4zYY7fiE5xbolObjNClHT8NU6HwWakCWaI9hCW8VvYsfEuSf0jfhvjTcTJeC9k75WfQ11SdA1u1MflM0VRkb464= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715084589; c=relaxed/simple; bh=/tewlST2Ag3AZqZaR15gI8C1/pmeGOyOph5go6pPIeo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Totbo+qP2brEGkpQbZC3P2p6NEy1dT4OI0vCAqpSlQU9SxpxOr1MkFESvHmWG482NITPAN2BWatcH1ZR9i/l85cLa2odCf33/plQbi3ilqnOhh8zuaAPNGN8a8EHd0SxyM8DE2GieGHt+IuYdyVu8k4JTvlwQU9LaF8Kd8J+PLU= 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 1s4Jqa-0006h6-8J; Tue, 07 May 2024 14:23:04 +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 3/3] nvmem: rockchip-efuse: set type to OTP Date: Tue, 7 May 2024 14:22:56 +0200 Message-Id: <20240507122256.3765362-4-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 This device currently reports an "Unknown" type in sysfs. Since it is an eFuse hardware device, set its type to OTP. Signed-off-by: Heiko Stuebner --- drivers/nvmem/rockchip-efuse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvmem/rockchip-efuse.c b/drivers/nvmem/rockchip-efuse.c index 2b40978ddb18c..013e67136f3b9 100644 --- a/drivers/nvmem/rockchip-efuse.c +++ b/drivers/nvmem/rockchip-efuse.c @@ -206,6 +206,7 @@ static int rockchip_rk3399_efuse_read(void *context, unsigned int offset, static struct nvmem_config econfig = { .name = "rockchip-efuse", .add_legacy_fixed_of_cells = true, + .type = NVMEM_TYPE_OTP, .stride = 1, .word_size = 1, .read_only = true, -- 2.39.2