Message ID | 1507558312-20580-2-git-send-email-pure.logic@nexus-software.ie (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A1832602D7 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 9 Oct 2017 14:12:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 929CC287F5 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 9 Oct 2017 14:12:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86C0D2852E; Mon, 9 Oct 2017 14:12:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 15EAC2852E for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 9 Oct 2017 14:12:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=KvhlKg4wWeD6IOuUBzi2SkMeIDlDWI6JhvOmrSXvlKs=; b=K/6idY0owJGkhyztzQVK9ehG45 M+xczLbxu2OuBGFVm8eooUcA38lVP6NjBg+WFihb6EDJajeXbZavxwR2kldjutcYzijiBUw9pPCQD qT8KWnXMId4vPRspPguJmlmuhudsWWDhiAt0Ka71H3j/IDTZN0Fooy8gAZLcuYDHbeCMbhytF9DWD IVcsktg88WBG9ID+SdmSbjsHVFoUj63ZEEXMqwux3WxvH6EFSHQrLmqzmNgHfbE1cvewBPyW2ueN4 79tV9m00flDx1x9cUUIwclIsU9FM2YdSlEDzLjknOAUvTgtrOqJa21bZTmLM1IShO8ZmfPethiVpJ OWF7dB4A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e1Yn7-00079d-MJ; Mon, 09 Oct 2017 14:12:21 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e1Yn4-00077E-2Y for linux-arm-kernel@lists.infradead.org; Mon, 09 Oct 2017 14:12:19 +0000 Received: by mail-wm0-x235.google.com with SMTP id q132so23866959wmd.2 for <linux-arm-kernel@lists.infradead.org>; Mon, 09 Oct 2017 07:11:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cbojEpAsgvWFHUfCdGi5BVM7MV/7cSd4lZ/8puF6TII=; b=GmRNNMeqpYh6VtH3lcDXWrHamIE2tenXMScMz25Tn6fiF8fqZstMgRp4tgDyKmXol4 ojl7v6oCHg2hbD4tngV6moNLiBXOLEndU4JmqJg8Vwp6uWMOWUXUsHRy9lhCDw9HLaDP v1TFzi0Lyle4WQLF61o3CQqlq437ZzsRfhvuYhK9tp4Rv6ylpPJ4H62F6bDhvgOp14Ne SWd104TiCk9Ck1I7uqgnaYLJSF00y7aZ/hcNTIvNt8Ol+1FLsI211AfW4B/F0KBy8AQ2 dPta7WOGUJYJ4hdS1jVwcBMJVlCGj/oUArgwpNRx6F1081Zh7ApDuDjg6G3KOcBKceja izKg== 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; bh=cbojEpAsgvWFHUfCdGi5BVM7MV/7cSd4lZ/8puF6TII=; b=CtedKKqsB6yWth/216LGosXmadRTk8R8JihAcUChL/6CTSqmcDDDHpdYqzY6xOHo+I N8UvIFGp670cFi9YqW4Wuz6stEMF6BG9IaVN6AmMLMAe/9KSV9m7CN16HrqxgzBdeVJK 54lwCNkpUii1XH7OA7dJueIDYJlL8M1p8aUJqTZju6Eg5cR/hEF0uOZBcLi9Vu0G2I3D PgQxaXj1r43VtvwjtfxTWXCasDqlg1RlytyUVYyRj69gbSo6phKmTnUR2IXwETYunW82 TWVOif/D8UZl/mPzrhiT3T3/UVIzZMnmK+4vld+0hDCQ9hugw9Jb/Eo1gB5qXDpz0aLt KDpg== X-Gm-Message-State: AMCzsaU+2YBJXzlGGrnA9GE4Mvgr1zFurKhCzdMXtdBME7NBSA3k7fHa 7kqBmJ1F1HXjgDqCe6GgblIk8w== X-Google-Smtp-Source: AOwi7QA/N/9B6BHJwnwuHjm+S8XhClzBYLyhgXCOVLUcRbQN15V5ncXCY9LeRsoOCK0A2kSDqhjSYw== X-Received: by 10.80.182.181 with SMTP id d50mr13419442ede.47.1507558316333; Mon, 09 Oct 2017 07:11:56 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id g49sm451117edc.31.2017.10.09.07.11.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Oct 2017 07:11:55 -0700 (PDT) From: Bryan O'Donoghue <pure.logic@nexus-software.ie> To: p.zabel@pengutronix.de, richard.leitner@skidata.com, srinivas.kandagatla@linaro.org, axel.lin@ingics.com, ping.bai@nxp.com, d.schultz@phytec.de, peng.fan@nxp.com, van.freenix@gmail.com Subject: [PATCH v3 1/7] nvmem: imx-ocotp: Restrict OTP write to IMX6 processors Date: Mon, 9 Oct 2017 15:11:46 +0100 Message-Id: <1507558312-20580-2-git-send-email-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507558312-20580-1-git-send-email-pure.logic@nexus-software.ie> References: <1507558312-20580-1-git-send-email-pure.logic@nexus-software.ie> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171009_071218_265773_55E6995C X-CRM114-Status: GOOD ( 10.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Bryan O'Donoghue <pure.logic@nexus-software.ie>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c index 193ca8f..17d160f 100644 --- a/drivers/nvmem/imx-ocotp.c +++ b/drivers/nvmem/imx-ocotp.c @@ -347,6 +347,8 @@ static int imx_ocotp_probe(struct platform_device *pdev) imx_ocotp_nvmem_config.dev = dev; imx_ocotp_nvmem_config.priv = priv; priv->config = &imx_ocotp_nvmem_config; + if (of_device_is_compatible(pdev->dev.of_node, "fsl,imx7d-ocotp")) + imx_ocotp_nvmem_config.read_only = true; nvmem = nvmem_register(&imx_ocotp_nvmem_config); if (IS_ERR(nvmem))