[PATCHv2 1/1] mtd: gpmi: make blockmark swapping optional
From: Lothar Waßmann <hidden>
Date: 2014-03-28 10:18:33
Also in:
linux-devicetree, lkml
Hi, Huang Shijie wrote:
? 2014?03?28? 17:31, Lothar Wa?mann ??:quoted
Hi, Huang Shijie wrote:quoted
? 2014?03?28? 17:00, Sascha Hauer ??:quoted
- disables swapping of BB marks in the FCB the ROM won't swap bytes.We can not disable the swapping in the FCB in the imx28. The DISBBM bit in the FCB does _NOT_ exit in the imx28's FCB.The Linux kernel does not have any business with the FCB, so it is completely irrelevant for Linux whether byte swapping can be disabled in the FCB or not.But the gpmi is relevant to the ROM. the gpmi driver should keep consistency with the ROM. I do not object you add the swapping optional the gpmi driver(since it's ok for imx50/imx6q/imx6sx), i just object that you enable this feature for imx28.
We are talking about a Linux Kernel Driver here, not about a flashtool for i.MX28. It is a valid usecase for Linux not being able to write the bootloader, so there is no reason to disallow this feature in the driver code. Since it is a DT option it can be trivially switched on and off without having to change anything in the kernel. Lothar Wa?mann -- ___________________________________________________________ Ka-Ro electronics GmbH | Pascalstra?e 22 | D - 52076 Aachen Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10 Gesch?ftsf?hrer: Matthias Kaussen Handelsregistereintrag: Amtsgericht Aachen, HRB 4996 www.karo-electronics.de | info at karo-electronics.de ___________________________________________________________