Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 46E6CE00901; Fri, 7 Nov 2014 01:52:28 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 334 seconds by postgrey-1.32 at yocto-www; Fri, 07 Nov 2014 01:52:21 PST Received: from mail.ahsoftware.de (h1446028.stratoserver.net [85.214.92.142]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 60CD7E00863 for ; Fri, 7 Nov 2014 01:52:21 -0800 (PST) Received: by mail.ahsoftware.de (Postfix, from userid 65534) id 06CEC2C9CED5; Fri, 7 Nov 2014 10:46:43 +0100 (CET) Received: from eiche.ahsoftware (p4FC3685E.dip0.t-ipconnect.de [79.195.104.94]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.ahsoftware.de (Postfix) with ESMTPSA id 9BC3D2C9CED3 for ; Fri, 7 Nov 2014 10:46:43 +0100 (CET) Received: by eiche.ahsoftware (Postfix, from userid 65534) id 14BF98E4B8; Fri, 7 Nov 2014 10:46:39 +0100 (CET) Received: from krabat.ahsoftware (unknown [192.168.207.2]) by eiche.ahsoftware (Postfix) with ESMTP id 580718C2B0; Fri, 7 Nov 2014 09:44:31 +0000 (UTC) From: Alexander Holler To: meta-freescale@yoctoproject.org Date: Fri, 7 Nov 2014 10:43:34 +0100 Message-Id: <1415353415-3805-1-git-send-email-holler@ahsoftware.de> X-Mailer: git-send-email 1.8.3.1 Cc: Jon Nettleton , Otavio Salvador Subject: [PATCH 0/1] arm: imx: fsl_otp: make fuses (OTP memory) read-only X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2014 09:52:28 -0000 Hello. Jon Nettleton made me aware that there is a driver which makes it very easy to write to the OTP from userspace. And I have to admit that I was mildly shocked. Because OTP stands for One Time Programmable, it means the write functionality of that driver can be used only once per HW and if that is done wrong, the HW might be one of those famous electronic bricks afterwards. So I've quickly written a patch which makes this driver to a friendly citizen instead of an heavily armed cowboy. I really, really think this patch should be attached to all trees which are including fsl_otp.c. It applies without any error to imx_3.10.17_1.0.1_ga, imx_3.10.31_1.1.0_beta, linux-linaro-lsk-v3.14-mx6 and likely any other tree which includes that driver. Regards, Alexander Holler