aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm53xx/patches-3.14/402-mtd-spi-nor-allow-NULL-as-spi_device_id-in-spi_nor_s.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.14/402-mtd-spi-nor-allow-NULL-as-spi_device_id-in-spi_nor_s.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.14/402-mtd-spi-nor-allow-NULL-as-spi_device_id-in-spi_nor_s.patch')
-rw-r--r--target/linux/bcm53xx/patches-3.14/402-mtd-spi-nor-allow-NULL-as-spi_device_id-in-spi_nor_s.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/target/linux/bcm53xx/patches-3.14/402-mtd-spi-nor-allow-NULL-as-spi_device_id-in-spi_nor_s.patch b/target/linux/bcm53xx/patches-3.14/402-mtd-spi-nor-allow-NULL-as-spi_device_id-in-spi_nor_s.patch
deleted file mode 100644
index 6cc77528e0..0000000000
--- a/target/linux/bcm53xx/patches-3.14/402-mtd-spi-nor-allow-NULL-as-spi_device_id-in-spi_nor_s.patch
+++ /dev/null
@@ -1,46 +0,0 @@
---- a/drivers/mtd/spi-nor/spi-nor.c
-+++ b/drivers/mtd/spi-nor/spi-nor.c
-@@ -925,29 +925,23 @@ int spi_nor_scan(struct spi_nor *nor, co
- if (ret)
- return ret;
-
-- info = (void *)id->driver_data;
--
-- if (info->jedec_id) {
-- const struct spi_device_id *jid;
--
-- jid = nor->read_id(nor);
-- if (IS_ERR(jid)) {
-- return PTR_ERR(jid);
-- } else if (jid != id) {
-- /*
-- * JEDEC knows better, so overwrite platform ID. We
-- * can't trust partitions any longer, but we'll let
-- * mtd apply them anyway, since some partitions may be
-- * marked read-only, and we don't want to lose that
-- * information, even if it's not 100% accurate.
-- */
-- dev_warn(dev, "found %s, expected %s\n",
-- jid->name, id->name);
-- id = jid;
-- info = (void *)jid->driver_data;
-+ if (id) {
-+ info = (void *)id->driver_data;
-+ if (info->jedec_id) {
-+ dev_warn(dev,
-+ "passed SPI device ID (%s) contains JEDEC, ignoring it, driver should be fixed!\n",
-+ id->name);
-+ id = NULL;
- }
- }
-
-+ if (!id) {
-+ id = nor->read_id(nor);
-+ if (IS_ERR(id))
-+ return PTR_ERR(id);
-+ }
-+ info = (void *)id->driver_data;
-+
- mutex_init(&nor->lock);
-
- /*