android_kernel_oneplus_msm8998/drivers/mtd/chips
Arnd Bergmann 25bce31b08 mtd: cfi: enforce valid geometry configuration
commit f5f92b36fbbb8ac7d70ff5fa39ec2637cce3094c upstream.

MTD allows compile-time configuration of the possible CFI geometry
settings that are allowed by the kernel, but that includes a couple of
invalid configurations, where no bank width or no interleave setting
is allowed. These are then caught with a compile-time warning:

include/linux/mtd/cfi.h:76:2: warning: #warning No CONFIG_MTD_CFI_Ix selected. No NOR chip support can work.
include/linux/mtd/map.h:145:2: warning: #warning "No CONFIG_MTD_MAP_BANK_WIDTH_xx selected. No NOR chip support can work"

This is a bit annoying for randconfig tests, and can be avoided if
we change the Kconfig logic to always select the simplest configuration
when no other one is enabled.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-25 11:03:46 +01:00
..
cfi_cmdset_0001.c mtd: delete unnecessary checks before two function calls 2014-11-25 22:44:10 -08:00
cfi_cmdset_0002.c mtd: cfi_cmdset_0002: Initialize datum before calling map_word_load_partial 2015-05-27 12:47:37 -07:00
cfi_cmdset_0020.c mtd: cfi: clean up some indenting 2015-03-30 18:01:04 -07:00
cfi_probe.c
cfi_util.c mtd: cfi: deinline large functions 2015-05-27 12:42:16 -07:00
chipreg.c
fwh_lock.h
gen_probe.c
jedec_probe.c
Kconfig mtd: cfi: enforce valid geometry configuration 2018-02-25 11:03:46 +01:00
Makefile
map_absent.c
map_ram.c mtd: map_ram: Enable mtdoops 2015-01-09 15:31:56 -08:00
map_rom.c mtd: map_rom: Support UBI on ROM 2015-01-09 23:24:27 -08:00