]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: m25p80: bind to "nor-jedec" ID, for auto-detection
authorBrian Norris <computersforpeace@gmail.com>
Fri, 27 Mar 2015 17:29:50 +0000 (10:29 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 6 Apr 2015 01:56:21 +0000 (18:56 -0700)
commita70e9e7bccddc4b0339199f954d0aa5d70575e46
tree50f0282ccf0d9c5f8b6a02ad904236e7de8ffdb6
parent88591b109314f7948fe8cdfd82e5afe900d6948a
mtd: m25p80: bind to "nor-jedec" ID, for auto-detection

Use the new 'nor-jedec' binding to provide automatic detection of flash
that use the 0x9F READ ID opcode. This can help for use cases where
platforms just specify compatibility with "m25p80", and then see
messages like this:

  m25p80 spi32766.0: found s25fl256s1, expected m25p80

Instead, they can just specify the generic string and see this:

  m25p80 spi32766.0: s25fl256s1 (32768 Kbytes)

Also, update the language about m25p_ids[] to straighten out the
expectations here. We should no longer need to continuously grow the
m25p_ids[] table, and in fact, we might want to start removing entries
which are not used in device trees so far, so we can just default to
auto-detection as much as possible in the future.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Rafał Miłecki <zajec5@gmail.com>
drivers/mtd/devices/m25p80.c