pistachio: make patches apply again
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 20 Jan 2018 22:36:05 +0000 (23:36 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 20 Jan 2018 22:36:05 +0000 (23:36 +0100)
Support for Winbond NAND flash detection was added into the generic
patches and this conflicted with this patch adding Gigadevice support.

Fixes: 02050f7e7d5b ("kernel/4.{4, 9}: add manufacturer ID for Winbond NANDs")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/pistachio/patches-4.9/412-mtd-nand-Add-JEDEC-manufacturer-ID-for-Gigadevice.patch

index eceb304006ef2934d3cbd3024b31fdd7d29bc76b..3fa8c238e54e15b2539b700b524db2217e368dcb 100644 (file)
@@ -20,9 +20,9 @@ Signed-off-by: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
        {NAND_MFR_INTEL, "Intel"},
        {NAND_MFR_ATO, "ATO"},
 +      {NAND_MFR_GIGADEVICE, "Gigadevice"},
+       {NAND_MFR_WINBOND, "Winbond"},
        {0x0, "Unknown"}
  };
 --- a/include/linux/mtd/nand.h
 +++ b/include/linux/mtd/nand.h
 @@ -928,6 +928,7 @@ static inline void nand_set_controller_d
@@ -30,6 +30,6 @@ Signed-off-by: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
  #define NAND_MFR_INTEL                0x89
  #define NAND_MFR_ATO          0x9b
 +#define NAND_MFR_GIGADEVICE   0xc8
+ #define NAND_MFR_WINBOND      0xef
  
  /* The maximum expected count of bytes in the NAND ID sequence */
- #define NAND_MAX_ID_LEN 8