Message ID | 20221017174953.v2.3.Iaff264d5b87f54b7c5fe3a408b4d1662d1fdfd2a@changeid |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1528134wrs; Mon, 17 Oct 2022 09:07:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7os2OGxTNO32RHOuRxqP+mX1hO+6DLBejFzQMf1yhsCoLr80mhEpmqGLXRXzRf6vsO+iJc X-Received: by 2002:a05:6402:e87:b0:456:c93c:5361 with SMTP id h7-20020a0564020e8700b00456c93c5361mr10716577eda.88.1666022845844; Mon, 17 Oct 2022 09:07:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666022845; cv=none; d=google.com; s=arc-20160816; b=AU6IkLNA+h5t/g+rGldstJ2mSUym42wnhVu5PtuLaleZt8wrJaxAuTP5OWpsqG6ivL /wmn/e/i18DfhCNLnogbOBFqwr9KuCSNuTdunl9n+x2LBllgA5W1pfK8+4v0FcAiAGin pTiHULSIqIHN9nAwHlqhLyu8dqEvlwqaJd0ENZY3mQFPETfpjuOdC+/IPw+g/3yyjMZ9 1kish2ljWSoEkkJbsEfAPzPvf7VgY2/o167N4Y9cDKg01Sxtx0qfBggtx1LA/McjdTeJ /h6Q0LpcQXNr7Dw4f8YwkbfiJOqw2MfqF3LpOZVEeah22S3jfDpSFvCckCysqWF8wA6g YSyA== 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=1dhJBOe2QEKMxFJRVTYoEK+8j5HO9AbVW9D0uLmIH90=; b=GKN3YZTLumPXE0dDfNKctbk2WDcS0kvM1ME0MwR1EQWM5wQjImqEVrYXUeQFPhq8fx t1w2qHYhozyFkE1zWLnmvvyQp/b0lWiyWtgk1NgPnqTXmikxm3OA5xqN1j2fg9B+EmW5 +oOJ3dbBOj4e6VtyYsMHS+ulvjD4cF6KJdSM9pOMvlPaqJ+Jq0u7krYUHk5Q9x/pPvKi MEZpF59XN0p9okpYg+f3zEa9LPFsfZbD9+x98NZgn9cu8V44nA7tf1x+cSJqxGpJbMnY UoXhMGfOxjodH7QiygbCEq8IEElq8oGYt5knlbK4+sAMRMxi9vuDJZZF+hqmWv8oAyr7 tDEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Mlrhgpb2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mc10-20020a170906eb4a00b00767e24156dbsi8436432ejb.256.2022.10.17.09.06.57; Mon, 17 Oct 2022 09:07:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Mlrhgpb2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230239AbiJQPvC (ORCPT <rfc822;kernel.ruili@gmail.com> + 99 others); Mon, 17 Oct 2022 11:51:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230175AbiJQPuv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Oct 2022 11:50:51 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70DBB64DE for <linux-kernel@vger.kernel.org>; Mon, 17 Oct 2022 08:50:50 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29HF6Z4J017497; Mon, 17 Oct 2022 17:50:45 +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=1dhJBOe2QEKMxFJRVTYoEK+8j5HO9AbVW9D0uLmIH90=; b=Mlrhgpb2d2m+9U0VpV1rf9gzsREe9S2m8yogPEOIdjfHF1n5R/DHvUli+tITMa7e459x WBofqSpU+COm8KI2Ui9b1HKKdg/3UjxAvC6EAYWDE1/uxsBgePEp++Sj3QSlIw0tt/X7 N3uVQoOgLBhUQ+EPaYK6B7vUZ1kKiRGXZZAG2uxBkI1NWsllreAgc+rdT0dOOtHw+jBm pEwbb7Kl+UUv/fr2FucBOw0wFF4AK59qKEbL49aZ0KKbsJzPlLadkVcjPRkWTZAGMWfT +ah/2Ii+Mwm6Gj1yxPlTcjFbnO3FIGaggMH1Vyq3mCVMqFS0n1F9kDP0t74wGTak0ZIz 7Q== 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 3k7j0cxabx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 17 Oct 2022 17:50:45 +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 5EA78100039; Mon, 17 Oct 2022 17:50:42 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5A36423C6A0; Mon, 17 Oct 2022 17:50:42 +0200 (CEST) Received: from localhost (10.75.127.123) 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; Mon, 17 Oct 2022 17:50:39 +0200 From: Patrick Delaunay <patrick.delaunay@foss.st.com> To: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com> CC: Patrick Delaunay <patrick.delaunay@foss.st.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-stm32@st-md-mailman.stormreply.com> Subject: [PATCH v2 3/3] nvmem: stm32: add nvmem type attribute Date: Mon, 17 Oct 2022 17:49:57 +0200 Message-ID: <20221017174953.v2.3.Iaff264d5b87f54b7c5fe3a408b4d1662d1fdfd2a@changeid> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221017154957.277120-1-patrick.delaunay@foss.st.com> References: <20221017154957.277120-1-patrick.delaunay@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.75.127.123] 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-17_13,2022-10-17_02,2022-06-22_01 X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, URIBL_BLACK autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746951571687356996?= X-GMAIL-MSGID: =?utf-8?q?1746951571687356996?= |
Series |
nvmem: stm32: several minor improvements
|
|
Commit Message
Patrick Delaunay
Oct. 17, 2022, 3:49 p.m. UTC
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 <patrick.delaunay@foss.st.com>
---
(no changes since v1)
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 bb8aa72ba2f9..6de565639d5f 100644 --- a/drivers/nvmem/stm32-romem.c +++ b/drivers/nvmem/stm32-romem.c @@ -160,6 +160,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; priv->lower = 0;