Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp390867pxj; Fri, 11 Jun 2021 01:36:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGJZTl54Rm7r5eeRTQ8KUwVrPhFrJgE7B6geGTmWrgcq+64eP/xL2aQDBFGaao+KWonmmj X-Received: by 2002:a05:6402:416:: with SMTP id q22mr2542220edv.204.1623400591743; Fri, 11 Jun 2021 01:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623400591; cv=none; d=google.com; s=arc-20160816; b=sgLHqhZYIJ6pixcMOKS/CuuH4ElZNjHy/+tG0+XJ22aSIvgTC0Rp07hfSuvy0MrXUP nydidmzS+wxGDXcFul92jBJDvVXpzMIuI7bJf6ccVBZ1KfbUBVe+4GS03Q/Px7nPWjSl H9Ygl6qlmrcge4xd0C/LTIW76dtFX+y1iyGz8HWbYtbk3FUSrK9S5GKQ2WRcj99W8UmH vcBXeJ5edkYYLzAHxwcXfkkOCcOaV5Q6So4oRW8l+ISB6lJd8KWbV3yEi5Ba1iADGR99 NJUOFiSaZpp4VyR2ow31a/FLhV2zZHN2+Wb1ZMdVZA5fUu2GYMCSertO6JZ8yWG1DdRT pqbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=e4SLxXmaHOMr38CprTPFYOA7vJyvBpB8ARcXhFV/1hU=; b=KFxvNgnzlB3ia7d3GlcLu1jRGjkCXgEsIws4IZmf9nHBsVr2VOhjkdUP2PpbNdQPfQ 2Vv+0LAC4Nccfb66bnqvUwo8TQWaVW09qM/g9prNFDSl3p7yBs6GUeEE/D5r7ayscVRw xxfjtQwER7/ubE5zw2vaTL909tslIwSsEMZbG+ztuzb8NgofZHCcf1GHqXbEV18BsQlo K5gMiKPk4TkxiCGPV0KOh77+1qxUdbBO3zDbuplrYpTtc6ODkx373XiMXlhoHVor6ReG 9Hr7Fht1bUMiQFYeR77kGAxErQyudbW8wphCqx65IAqgGc+nsVuetYLoLbawVNnq4Em+ LM3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UCGQPsW3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi14si4376870ejb.441.2021.06.11.01.36.08; Fri, 11 Jun 2021 01:36:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UCGQPsW3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231310AbhFKIf7 (ORCPT + 99 others); Fri, 11 Jun 2021 04:35:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231303AbhFKIf6 (ORCPT ); Fri, 11 Jun 2021 04:35:58 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BB97C061574 for ; Fri, 11 Jun 2021 01:34:00 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id m18so5122835wrv.2 for ; Fri, 11 Jun 2021 01:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e4SLxXmaHOMr38CprTPFYOA7vJyvBpB8ARcXhFV/1hU=; b=UCGQPsW3tFLhXhexqANi9Wo9V9Ohn8qcLvcA2Gnvu+PsH39VKx9dzBL05+NJZPMD3f eyp32K8sSx3NieOqSwF5FblewXX1IJZTCzrF7Q8s5nRD3cdoccxbykVf3n7x7xEnXxuh z9mef3QI1SoqgIzOvb4257CxA7PuaMd7R/19XYkv9/IfC7RA0V6b7T4BNU5SRlCtk/ID FyEIpsDDgsUJ97YH8O2p+gg+NpL+QbyuFuSExZ2ZeTUm7z6iFEocQrMZHpiCjG+8xvxj YBqnbWRv5xpx6gXbq6K+hYKmiaYtXtYoHP6sgSozYFd1LFZ+9tqM7RKW7LUJtb1/qKEY MJbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=e4SLxXmaHOMr38CprTPFYOA7vJyvBpB8ARcXhFV/1hU=; b=stPJLjQSISsOr3KbxC/LKuN4vVtX7I7B5j3KSZeI3+OyMkO7/wGQDBHPY4abUSMlMj A2vLKusI/snI4VqyfLu0yFVwbRU+/t+2EzvlQuy4yQ/73cgtoaW5zqZ0mdMOhUXVPttP upjLqU+YJ4fIIpmhBmTNYHVQNIh41T3+j9Q6/dQ7IBxxBnTsoH87H2ufbR68s/tqwDba VM7M5LdqdUGMoKFZryb7gmnIUyVke8wLE1hKaoQAOydwc1Ja5CZ4XHDtLwuvToaoIMuD wvydczheRoJa6WYptglXfQF60tHVRe4eRDs858hP1D2dEmAfrE2qUC+S2d5fTyM6B7YC DSgA== X-Gm-Message-State: AOAM531U9PBQSKCsBuPUw6dgb606kPog+tVv4brUhk7UtLrpGt7W3QR0 nJYEUxZWhe6Z3jpJhaQRsVzRGI0D7juLDQ== X-Received: by 2002:a5d:540b:: with SMTP id g11mr2800764wrv.390.1623400438850; Fri, 11 Jun 2021 01:33:58 -0700 (PDT) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id n42sm11547428wms.29.2021.06.11.01.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 01:33:58 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Samuel Holland , Chen-Yu Tsai , Srinivas Kandagatla Subject: [PATCH 6/9] nvmem: sunxi_sid: Set type to OTP Date: Fri, 11 Jun 2021 09:33:45 +0100 Message-Id: <20210611083348.20170-7-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210611083348.20170-1-srinivas.kandagatla@linaro.org> References: <20210611083348.20170-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Samuel Holland This device currently reports an "Unknown" type in sysfs. Since it is an eFuse hardware device, set its type to OTP. Signed-off-by: Samuel Holland Acked-by: Chen-Yu Tsai Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/sunxi_sid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c index e26ef1bbf198..275b9155e473 100644 --- a/drivers/nvmem/sunxi_sid.c +++ b/drivers/nvmem/sunxi_sid.c @@ -142,6 +142,7 @@ static int sunxi_sid_probe(struct platform_device *pdev) nvmem_cfg->dev = dev; nvmem_cfg->name = "sunxi-sid"; + nvmem_cfg->type = NVMEM_TYPE_OTP; nvmem_cfg->read_only = true; nvmem_cfg->size = cfg->size; nvmem_cfg->word_size = 1; -- 2.21.0