Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 08EEBE00901; Fri, 7 Nov 2014 06:25:12 -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,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [188.165.44.50 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 1498 seconds by postgrey-1.32 at yocto-www; Fri, 07 Nov 2014 06:25:08 PST Received: from mo4.mail-out.ovh.net (5.mo4.mail-out.ovh.net [188.165.44.50]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 920B9E00863 for ; Fri, 7 Nov 2014 06:25:08 -0800 (PST) Received: from mail405.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo4.mail-out.ovh.net (Postfix) with SMTP id E1E2BFFA9A4 for ; Fri, 7 Nov 2014 15:00:06 +0100 (CET) Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 7 Nov 2014 16:00:06 +0200 Received: from pac33-3-88-170-243-169.fbx.proxad.net (HELO e6520eb.localdomain) (eric%eukrea.com@88.170.243.169) by ns0.ovh.net with SMTP; 7 Nov 2014 16:00:04 +0200 Date: Fri, 7 Nov 2014 15:00:03 +0100 From: Eric =?ISO-8859-1?B?QuluYXJk?= To: Alexander Holler Message-ID: <20141107150003.27c16356@e6520eb.localdomain> In-Reply-To: <1415353415-3805-1-git-send-email-holler@ahsoftware.de> References: <1415353415-3805-1-git-send-email-holler@ahsoftware.de> Organization: =?ISO-8859-1?B?RXVrculh?= Electromatique X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.24; x86_64-redhat-linux-gnu) MIME-Version: 1.0 X-Ovh-Tracer-Id: 15016127057951501682 X-Ovh-Remote: 88.170.243.169 (pac33-3-88-170-243-169.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejhedrheehucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeejhedrheehucetufdoteggodetrfcurfhrohhfihhlvgemucfqggfjnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd Cc: meta-freescale@yoctoproject.org, Jon Nettleton , Otavio Salvador Subject: Re: [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 14:25:12 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Alexander, Le Fri, 7 Nov 2014 10:43:34 +0100, Alexander Holler a =E9crit : > Jon Nettleton made me aware that there is a driver which makes it very > easy to write to the OTP from userspace. >=20 > And I have to admit that I was mildly shocked. >=20 > 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. >=20 > So I've quickly written a patch which makes this driver to a friendly > citizen instead of an heavily armed cowboy. >=20 > 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. >=20 That's not shocking to have this feature in a reference design's BSP :=20 Freescale provides base source code to evaluate their SOC and writing OTP is one feature of their SOC. Then that's the end product designer's responsibility to enable/disable features he wants or not on its product. The solution proposed by Otavio to add an option to ease the disabling of this feature is far better than fully removing the code. Best regards, Eric