From patchwork Fri Oct 14 15:04:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Delaunay X-Patchwork-Id: 13007077 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D3D92C4332F for ; Fri, 14 Oct 2022 15:06:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+aIWYATiYUyazwMGjRtXYqqOQgHqDTb50ffK6jIHiSY=; b=zTW/GEsUqH6o+2 0m33grkEkv/a1I4Z8aRxPmrcMDUCGJzY7cWUsetnOrrQNiW57sc8YGrjf9YxpcLQ3CMbCPdVav+LF 1r81K5NT6K/JpYndwmtTawQUfr2gbD0U6LwUHKBsjA4pHflcE7ZGAenKigiG6BTMdMKrTrWdTGZnL sdL/m80RMnxjAdg82qjTKhoQXXjg+jM0LowgTWOtXygkmD5rFnncpvZLpcqvx62V7JoQSJe37Vnpa bDjtLDp4d7j/jW/x6I5biwTrEGkpvN99h2cRxWWBtlJL4PblMm5B722J3nHNewWO4nHjGeJJReBM4 xVKgG8uz39n2EeoeBG7w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojMFl-00F7MK-4P; Fri, 14 Oct 2022 15:05:37 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojMFa-00F7I2-A5 for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 15:05:28 +0000 Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29EF5CGh032239; Fri, 14 Oct 2022 17:05:16 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=npw86qUeqP5mhoB1P4qfCWCWdob8jPDQT+PZIr9f+XE=; b=CqImZdRarYObvR0YIp+8/zEXErxeB8EkV1hexKoOtCWqAeQUUgiPtSvBmaPlHmBfSLwa 9u5GvY8aYB5O6ovoTNpk+ju/7QnJkiTfJkxPlAfW3AdDM6lrAyVW77M4VvABoRWh0Hn4 ybhS6JxHU62uy3GQ2Mwz8H46gjc+WpEgHdW+ed1CmLDYnkzXAHBLB1/rRKQMBbmvx0Rw FQfnoHrGXWWCdevSJ9hfBpdzCblchvJ75qeD478IcrwzrcKesyfwYz5IZfe6FBY6aHUf zody0QCtQKhhtMTKDDngne7ccZw0warGYg1gljPRTKPgcTSsOK5XnPZoiULHvrf1aU85 gw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3k75sd9w8v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 14 Oct 2022 17:05:16 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id AC3A6100034; Fri, 14 Oct 2022 17:05:12 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A2945233C74; Fri, 14 Oct 2022 17:05:12 +0200 (CEST) Received: from localhost (10.75.127.122) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2375.31; Fri, 14 Oct 2022 17:05:11 +0200 From: Patrick Delaunay To: Srinivas Kandagatla , Maxime Coquelin , Alexandre Torgue CC: Patrick Delaunay , , , Subject: [PATCH 2/2] nvmem: stm32: add nvmem type attribute Date: Fri, 14 Oct 2022 17:04:29 +0200 Message-ID: <20221014170426.2.Iaff264d5b87f54b7c5fe3a408b4d1662d1fdfd2a@changeid> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014170426.1.Ifa806ff30d7c669ba9a3df9c6b64698a2dcc073a@changeid> References: <20221014170426.1.Ifa806ff30d7c669ba9a3df9c6b64698a2dcc073a@changeid> MIME-Version: 1.0 X-Originating-IP: [10.75.127.122] X-ClientProxiedBy: GPXDAG2NODE4.st.com (10.75.127.68) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-14_08,2022-10-14_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221014_080526_672716_3BF2F5DD X-CRM114-Status: GOOD ( 14.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Inform NVMEM framework of type attribute for stm32-romem as NVMEM_TYPE_OTP so userspace is able to know how the data is stored in BSEC. Signed-off-by: Patrick Delaunay --- drivers/nvmem/stm32-romem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvmem/stm32-romem.c b/drivers/nvmem/stm32-romem.c index e3c3c333b5d1..7b3a5a5a64b0 100644 --- a/drivers/nvmem/stm32-romem.c +++ b/drivers/nvmem/stm32-romem.c @@ -161,6 +161,7 @@ static int stm32_romem_probe(struct platform_device *pdev) priv->cfg.dev = dev; priv->cfg.priv = priv; priv->cfg.owner = THIS_MODULE; + priv->cfg.type = NVMEM_TYPE_OTP; cfg = (const struct stm32_romem_cfg *) of_match_device(dev->driver->of_match_table, dev)->data;