]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: physmap_of: Add read-only fallback
authorJoe Schultz <jschultz@xes-inc.com>
Thu, 25 Sep 2014 17:20:08 +0000 (12:20 -0500)
committerBrian Norris <computersforpeace@gmail.com>
Sat, 10 Jan 2015 07:22:40 +0000 (23:22 -0800)
commitbc3f9a4c2539f21da309cb914c853330200f1dcc
treed77f22181f6c5194b8e35171ee1c4fdb6b1638f1
parent3e784e0114873f279fa236ef2c9e9fe1a56cbc39
mtd: physmap_of: Add read-only fallback

Previously, when probing a CFI chip which was write-protected at the
hardware level, the probe would fail due to the fact it could not put
the chip into QUERY mode. This would result in no MTD devices being
created.

Add a fallback to probe using the map_rom driver if the user-selected
probe fails.

Signed-off-by: Joe Schultz <jschultz@xes-inc.com>
Signed-off-by: Aaron Sierra <asierra@xes-inc.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/maps/physmap_of.c