aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm53xx/patches-3.18/405-mtd-bcm53xxspiflash-try-using-JEDEC-as-one-of-method.patch
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2014-12-17 14:53:25 +0000
committerRafał Miłecki <zajec5@gmail.com>2014-12-17 14:53:25 +0000
commitd3b63e5b4e484143953124522671b62c45bcf5e1 (patch)
treec33f97aef90ce4ce72e9488e486902f12b2d5ab6 /target/linux/bcm53xx/patches-3.18/405-mtd-bcm53xxspiflash-try-using-JEDEC-as-one-of-method.patch
parent89d061a4ba07dff5b2dae55114fe15d40f8baa2d (diff)
downloadupstream-d3b63e5b4e484143953124522671b62c45bcf5e1.tar.gz
upstream-d3b63e5b4e484143953124522671b62c45bcf5e1.tar.bz2
upstream-d3b63e5b4e484143953124522671b62c45bcf5e1.zip
bcm53xx: backport spi-nor changes and update bcm53xxspiflash
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43738 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/bcm53xx/patches-3.18/405-mtd-bcm53xxspiflash-try-using-JEDEC-as-one-of-method.patch')
-rw-r--r--target/linux/bcm53xx/patches-3.18/405-mtd-bcm53xxspiflash-try-using-JEDEC-as-one-of-method.patch42
1 files changed, 0 insertions, 42 deletions
diff --git a/target/linux/bcm53xx/patches-3.18/405-mtd-bcm53xxspiflash-try-using-JEDEC-as-one-of-method.patch b/target/linux/bcm53xx/patches-3.18/405-mtd-bcm53xxspiflash-try-using-JEDEC-as-one-of-method.patch
deleted file mode 100644
index d97441f586..0000000000
--- a/target/linux/bcm53xx/patches-3.18/405-mtd-bcm53xxspiflash-try-using-JEDEC-as-one-of-method.patch
+++ /dev/null
@@ -1,42 +0,0 @@
---- a/drivers/mtd/spi-nor/bcm53xxspiflash.c
-+++ b/drivers/mtd/spi-nor/bcm53xxspiflash.c
-@@ -173,7 +173,8 @@ static const struct spi_device_id *bcm53
-
- /* TODO: Try more ID commands */
-
-- return ERR_PTR(-ENODEV);
-+ /* Some chips used by Broadcom may actually support JEDEC */
-+ return spi_nor_read_id(nor);
-
- found_name:
- // id = spi_nor_match_id(name);
---- a/drivers/mtd/spi-nor/spi-nor.c
-+++ b/drivers/mtd/spi-nor/spi-nor.c
-@@ -631,7 +631,7 @@ static const struct spi_device_id spi_no
- { },
- };
-
--static const struct spi_device_id *spi_nor_read_id(struct spi_nor *nor)
-+const struct spi_device_id *spi_nor_read_id(struct spi_nor *nor)
- {
- int tmp;
- u8 id[5];
-@@ -662,6 +662,7 @@ static const struct spi_device_id *spi_n
- dev_err(nor->dev, "unrecognized JEDEC id %06x\n", jedec);
- return ERR_PTR(-ENODEV);
- }
-+EXPORT_SYMBOL_GPL(spi_nor_read_id);
-
- static int spi_nor_read(struct mtd_info *mtd, loff_t from, size_t len,
- size_t *retlen, u_char *buf)
---- a/include/linux/mtd/spi-nor.h
-+++ b/include/linux/mtd/spi-nor.h
-@@ -188,6 +188,8 @@ struct spi_nor {
- void *priv;
- };
-
-+const struct spi_device_id *spi_nor_read_id(struct spi_nor *nor);
-+
- /**
- * spi_nor_scan() - scan the SPI NOR
- * @nor: the spi_nor structure