[PATCH v2] mtd: cfi_cmdset_0002: Support Persistent Protection Bits (PPB) locking

Artem Bityutskiy dedekind1 at gmail.com
Tue Jan 15 20:10:38 EST 2013


On Thu, 2012-12-13 at 09:29 +0100, Stefan Roese wrote:
> Currently cfi_cmdset_0002.c does not support PPB locking of sectors. This
> patch adds support for this locking/unlocking mechanism. It is needed on
> some platforms, since newer U-Boot versions do support this PPB locking
> and protect for example their environment sector(s) this way.

Some "#ifdef CONFIG_OF"s are missing:

drivers/mtd/chips/cfi_cmdset_0002.c: In function ‘cfi_cmdset_0002’:
drivers/mtd/chips/cfi_cmdset_0002.c:579:4: error: implicit declaration of function ‘of_property_read_bool’ [-Werror=implicit-function-declaration]
drivers/mtd/chips/cfi_cmdset_0002.c: In function ‘do_read_secsi_onechip’:
drivers/mtd/chips/cfi_cmdset_0002.c:1146:16: warning: variable ‘timeo’ set but not used [-Wunused-but-set-variable]
cc1: some warnings being treated as errors
make[4]: *** [drivers/mtd/chips/cfi_cmdset_0002.o] Error 1

Please, check allso the timeo warning.

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/devicetree-discuss/attachments/20130115/9ba94c75/attachment.sig>


More information about the devicetree-discuss mailing list