Message ID | 1508838874-32252-4-git-send-email-srinivas.kandagatla@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.80.245.45 with SMTP id t42csp405630edm; Tue, 24 Oct 2017 02:57:04 -0700 (PDT) X-Received: by 10.84.213.136 with SMTP id g8mr12561134pli.339.1508839024045; Tue, 24 Oct 2017 02:57:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508839024; cv=none; d=google.com; s=arc-20160816; b=PSTC2cm88M2OQKMTGSxhvnaC2osUz53gf0N6H/9b64WTneVcwhbpgfDKNTsyQP0sxU mJ5CRiC/q6euvV2d1/wgH7n5SkwLk6REqmz8hI08zdiroKc+i93vUNpQNfSVCoUOmsK0 SC94XlckSStLbOxnK5OCL58gfLyCrZw+HD2B3WzRRaTdk21YMniuqZmrvGgn4zEEeQjN xsiw8GfAHOxQOcbWII17S7fDU940mdxobjJQ2U6TbVS9wQS+p6w5NMc3HTYjb7gzIGeS fFoxWJVIj4Gz/FFEMMnIhMjY0drjNsTksI9e7mC4aqrGcqBHUKcbmdc/ex3xXlNXXq6V XGNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=WbTMjpzETInwmq4k2cQfwLPxhqf7SMb3q1L2YhfxzG0=; b=ZSXR8SjsJNmK3qzN9wvGwEW8F4at/tvR18eON0ovBNo62zeiUUn6yv7KYpnV8iTCyE r6Lfe/FgslEgyP98nylWOJNO9gBq80xqtr17xXZTqeNrIt9RR5Y79C4x0pWcXIP5h2X/ MeSbHRvywUueK07W08b+ZJi+zdIO+Btib0t8TRxRbPhD0Cn2Kz6L0VpLOHq9Ipr22Edx qLmf3icW4j3jkdnk8L2LkGOJ/F7BSSUTfkIWC1p7fgeCgHGNL+sy1RkP5/CRO7EtuJ+y z9yFjS3V/HK0OiuPFgPoP67Md/YF/cZbSg90iEvqLQzmtI+pVI7TpkGIwDMIw75msL03 M9JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GOkgkrOz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 43si5195171plb.774.2017.10.24.02.57.03; Tue, 24 Oct 2017 02:57:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GOkgkrOz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S932441AbdJXJ5C (ORCPT <rfc822;semen.protsenko@linaro.org> + 27 others); Tue, 24 Oct 2017 05:57:02 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:57022 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751919AbdJXJ4t (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 24 Oct 2017 05:56:49 -0400 Received: by mail-wm0-f68.google.com with SMTP id z3so8068682wme.5 for <linux-kernel@vger.kernel.org>; Tue, 24 Oct 2017 02:56:48 -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; bh=WbTMjpzETInwmq4k2cQfwLPxhqf7SMb3q1L2YhfxzG0=; b=GOkgkrOzq7TLoA733GAhx9zH8Rianj+K0qaSQ/TQ2VwK1Sl0l1BbgTc55Kk/7gJZtB T53Nt8cf5ZVzhx2Ra8sYbUJLn9BjSxCCe5R8GmrQlEqmmKNHFjc3N5ATD/95C+jL1cdR mTcNQEm7lgWOwFP+UI9qI/WOCQfEh1oY+rnFY= 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=WbTMjpzETInwmq4k2cQfwLPxhqf7SMb3q1L2YhfxzG0=; b=MB//UtZpOj4O7thStftTgA4cZAv7xomTB68QLiReGf8Y2Fx8bSDkqhZvz6ErUfZzga BzWDHuVFqX88NqpTZ2NwAJhSi8Ku4wo6LOx6TGURHmn3KYPKe/D5Wu2P3whuG7Qz8Rga HfR3omW6dw3U0qzEJDEDcYVXMgPDW7ZcjASWxPfPm1wXwZigNVImIbQcdKxuzlI7NVYV n2ENykNh+lmMVjD4S8lTd15dv8U6Eu6sucg/8vagJ5yCcVlvQzZO18TZway9n/XgLyA/ mTFzYRxmQUlZfDkrVD1YiDa/Qtkg07d3kqKCOfKMD7OEOcD1jw6Hjv6BBhDaZCEp1QT0 jWTQ== X-Gm-Message-State: AMCzsaWxKmJUSOP5oI+rg4QTIS0Sc1k228xd7fB8u7iaZbKrzWjHIrg6 /KvfbNNygEUtDmlmpCYQVS3Dfw== X-Google-Smtp-Source: ABhQp+QMSiagoXd4JI6A5VBsJ3Ms3LX5CTJPtBLdH+AeLCfFALl5QSw/jUHzLqJ9hMfdG/yVFDJDJw== X-Received: by 10.28.138.12 with SMTP id m12mr786045wmd.134.1508839007724; Tue, 24 Oct 2017 02:56:47 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id 29sm9666451wrz.77.2017.10.24.02.56.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 24 Oct 2017 02:56:47 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Bryan O'Donoghue <pure.logic@nexus-software.ie>, Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Subject: [PATCH 03/10] nvmem: imx-ocotp: Restrict OTP write to IMX6 processors Date: Tue, 24 Oct 2017 10:54:27 +0100 Message-Id: <1508838874-32252-4-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508838874-32252-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1508838874-32252-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
nvmem: patches set-2 for v4.15
|
expand
|
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))