]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.2-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Apr 2012 17:38:31 +0000 (10:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Apr 2012 17:38:31 +0000 (10:38 -0700)
added patches:
asoc-wm8994-update-wm8994-dcs-calibration.patch
mtd-block2mtd-initialize-writebufsize.patch
mtd-ixp4xx-oops-in-ixp4xx_flash_probe.patch
mtd-lart-initialize-writebufsize.patch
mtd-m25p80-set-writebufsize.patch
mtd-mips-lantiq-reintroduce-support-for-cmdline-partitions.patch
mtd-nand-gpmi-use-correct-member-for-checking-nand_bbt_use_flash.patch
mtd-sst25l-initialize-writebufsize.patch

queue-3.2/asoc-wm8994-update-wm8994-dcs-calibration.patch [new file with mode: 0644]
queue-3.2/mtd-block2mtd-initialize-writebufsize.patch [new file with mode: 0644]
queue-3.2/mtd-ixp4xx-oops-in-ixp4xx_flash_probe.patch [new file with mode: 0644]
queue-3.2/mtd-lart-initialize-writebufsize.patch [new file with mode: 0644]
queue-3.2/mtd-m25p80-set-writebufsize.patch [new file with mode: 0644]
queue-3.2/mtd-mips-lantiq-reintroduce-support-for-cmdline-partitions.patch [new file with mode: 0644]
queue-3.2/mtd-nand-gpmi-use-correct-member-for-checking-nand_bbt_use_flash.patch [new file with mode: 0644]
queue-3.2/mtd-sst25l-initialize-writebufsize.patch [new file with mode: 0644]
queue-3.2/series

diff --git a/queue-3.2/asoc-wm8994-update-wm8994-dcs-calibration.patch b/queue-3.2/asoc-wm8994-update-wm8994-dcs-calibration.patch
new file mode 100644 (file)
index 0000000..688961b
--- /dev/null
@@ -0,0 +1,29 @@
+From e16605855d58803fe0608417150c7a618b4f8243 Mon Sep 17 00:00:00 2001
+From: Mark Brown <broonie@opensource.wolfsonmicro.com>
+Date: Wed, 21 Mar 2012 13:22:40 +0000
+Subject: ASoC: wm8994: Update WM8994 DCS calibration
+
+From: Mark Brown <broonie@opensource.wolfsonmicro.com>
+
+commit e16605855d58803fe0608417150c7a618b4f8243 upstream.
+
+Based on latest production information.
+
+Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ sound/soc/codecs/wm8994.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/sound/soc/codecs/wm8994.c
++++ b/sound/soc/codecs/wm8994.c
+@@ -3190,7 +3190,7 @@ static int wm8994_codec_probe(struct snd
+               case 2:
+               case 3:
+                       wm8994->hubs.dcs_codes_l = -9;
+-                      wm8994->hubs.dcs_codes_r = -5;
++                      wm8994->hubs.dcs_codes_r = -7;
+                       break;
+               default:
+                       break;
diff --git a/queue-3.2/mtd-block2mtd-initialize-writebufsize.patch b/queue-3.2/mtd-block2mtd-initialize-writebufsize.patch
new file mode 100644 (file)
index 0000000..38e39b0
--- /dev/null
@@ -0,0 +1,37 @@
+From b604387411ec6a072e95910099262616edd2bd2f Mon Sep 17 00:00:00 2001
+From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
+Date: Fri, 3 Feb 2012 09:32:44 +0200
+Subject: mtd: block2mtd: initialize writebufsize
+
+From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
+
+commit b604387411ec6a072e95910099262616edd2bd2f upstream.
+
+The writebufsize concept was introduce by commit
+"0e4ca7e mtd: add writebufsize field to mtd_info struct" and it represents
+the maximum amount of data the device writes to the media at a time. This is
+an important parameter for UBIFS which is used during recovery and which
+basically defines how big a corruption caused by a power cut can be.
+
+However, we forgot to set this parameter for block2mtd. Set it to PAGE_SIZE
+because this is actually the amount of data we write at a time.
+
+Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
+Acked-by: Joern Engel <joern@lazybastard.org>
+Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/mtd/devices/block2mtd.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/mtd/devices/block2mtd.c
++++ b/drivers/mtd/devices/block2mtd.c
+@@ -284,6 +284,7 @@ static struct block2mtd_dev *add_device(
+       dev->mtd.size = dev->blkdev->bd_inode->i_size & PAGE_MASK;
+       dev->mtd.erasesize = erase_size;
+       dev->mtd.writesize = 1;
++      dev->mtd.writebufsize = PAGE_SIZE;
+       dev->mtd.type = MTD_RAM;
+       dev->mtd.flags = MTD_CAP_RAM;
+       dev->mtd.erase = block2mtd_erase;
diff --git a/queue-3.2/mtd-ixp4xx-oops-in-ixp4xx_flash_probe.patch b/queue-3.2/mtd-ixp4xx-oops-in-ixp4xx_flash_probe.patch
new file mode 100644 (file)
index 0000000..be5fece
--- /dev/null
@@ -0,0 +1,50 @@
+From a3c1e3b732b3708a80e4035b9d845f3f7c7dd0c9 Mon Sep 17 00:00:00 2001
+From: Marc Kleine-Budde <mkl@blackshift.org>
+Date: Wed, 8 Feb 2012 20:24:29 +0100
+Subject: mtd: ixp4xx: oops in ixp4xx_flash_probe
+
+From: Marc Kleine-Budde <mkl@blackshift.org>
+
+commit a3c1e3b732b3708a80e4035b9d845f3f7c7dd0c9 upstream.
+
+In commit "c797533 mtd: abstract last MTD partition parser argument" the
+third argument of "mtd_device_parse_register()" changed from start address
+of the MTD device to a pointer to a struct.
+
+The "ixp4xx_flash_probe()" function was not converted properly, causing
+an oops during boot.
+
+This patch fixes the problem by filling the needed information into a
+"struct mtd_part_parser_data" and passing it to
+"mtd_device_parse_register()".
+
+Signed-off-by: Marc Kleine-Budde <mkl@blackshift.org>
+Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
+Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/mtd/maps/ixp4xx.c |    5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+--- a/drivers/mtd/maps/ixp4xx.c
++++ b/drivers/mtd/maps/ixp4xx.c
+@@ -182,6 +182,9 @@ static int ixp4xx_flash_probe(struct pla
+ {
+       struct flash_platform_data *plat = dev->dev.platform_data;
+       struct ixp4xx_flash_info *info;
++      struct mtd_part_parser_data ppdata = {
++              .origin = dev->resource->start,
++      };
+       int err = -1;
+       if (!plat)
+@@ -247,7 +250,7 @@ static int ixp4xx_flash_probe(struct pla
+       /* Use the fast version */
+       info->map.write = ixp4xx_write16;
+-      err = mtd_device_parse_register(info->mtd, probes, dev->resource->start,
++      err = mtd_device_parse_register(info->mtd, probes, &ppdata,
+                       plat->parts, plat->nr_parts);
+       if (err) {
+               printk(KERN_ERR "Could not parse partitions\n");
diff --git a/queue-3.2/mtd-lart-initialize-writebufsize.patch b/queue-3.2/mtd-lart-initialize-writebufsize.patch
new file mode 100644 (file)
index 0000000..7828e98
--- /dev/null
@@ -0,0 +1,35 @@
+From fcc44a07dae0af16e84e93425fc8afe642ddc603 Mon Sep 17 00:00:00 2001
+From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
+Date: Fri, 3 Feb 2012 09:53:28 +0200
+Subject: mtd: lart: initialize writebufsize
+
+From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
+
+commit fcc44a07dae0af16e84e93425fc8afe642ddc603 upstream.
+
+The writebufsize concept was introduce by commit
+"0e4ca7e mtd: add writebufsize field to mtd_info struct" and it represents
+the maximum amount of data the device writes to the media at a time. This is
+an important parameter for UBIFS which is used during recovery and which
+basically defines how big a corruption caused by a power cut can be.
+
+Set writebufsize to 4 because this drivers writes at max 4 bytes at a time.
+
+Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
+Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/mtd/devices/lart.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/mtd/devices/lart.c
++++ b/drivers/mtd/devices/lart.c
+@@ -630,6 +630,7 @@ static int __init lart_flash_init (void)
+    mtd.name = module_name;
+    mtd.type = MTD_NORFLASH;
+    mtd.writesize = 1;
++   mtd.writebufsize = 4;
+    mtd.flags = MTD_CAP_NORFLASH;
+    mtd.size = FLASH_BLOCKSIZE_PARAM * FLASH_NUMBLOCKS_16m_PARAM + FLASH_BLOCKSIZE_MAIN * FLASH_NUMBLOCKS_16m_MAIN;
+    mtd.erasesize = FLASH_BLOCKSIZE_MAIN;
diff --git a/queue-3.2/mtd-m25p80-set-writebufsize.patch b/queue-3.2/mtd-m25p80-set-writebufsize.patch
new file mode 100644 (file)
index 0000000..0709a42
--- /dev/null
@@ -0,0 +1,35 @@
+From b54f47c8bcfc5f766bf13ec31bd7dd1d4726d33b Mon Sep 17 00:00:00 2001
+From: Brian Norris <computersforpeace@gmail.com>
+Date: Tue, 31 Jan 2012 00:06:03 -0800
+Subject: mtd: m25p80: set writebufsize
+
+From: Brian Norris <computersforpeace@gmail.com>
+
+commit b54f47c8bcfc5f766bf13ec31bd7dd1d4726d33b upstream.
+
+Using UBI on m25p80 can give messages like:
+
+    UBI error: io_init: bad write buffer size 0 for 1 min. I/O unit
+
+We need to initialize writebufsize; I think "page_size" is the correct
+"bufsize", although I'm not sure. Comments?
+
+Signed-off-by: Brian Norris <computersforpeace@gmail.com>
+Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
+Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/mtd/devices/m25p80.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/mtd/devices/m25p80.c
++++ b/drivers/mtd/devices/m25p80.c
+@@ -932,6 +932,7 @@ static int __devinit m25p_probe(struct s
+       ppdata.of_node = spi->dev.of_node;
+       flash->mtd.dev.parent = &spi->dev;
+       flash->page_size = info->page_size;
++      flash->mtd.writebufsize = flash->page_size;
+       if (info->addr_width)
+               flash->addr_width = info->addr_width;
diff --git a/queue-3.2/mtd-mips-lantiq-reintroduce-support-for-cmdline-partitions.patch b/queue-3.2/mtd-mips-lantiq-reintroduce-support-for-cmdline-partitions.patch
new file mode 100644 (file)
index 0000000..f324726
--- /dev/null
@@ -0,0 +1,42 @@
+From bf011f2ed53d587fdd8148c173c4f09ed77bdf1a Mon Sep 17 00:00:00 2001
+From: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
+Date: Thu, 23 Feb 2012 17:59:49 +0100
+Subject: mtd: mips: lantiq: reintroduce support for cmdline partitions
+
+From: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
+
+commit bf011f2ed53d587fdd8148c173c4f09ed77bdf1a upstream.
+
+Since commit ca97dec2ab5c87e9fbdf7e882e1820004a3966fa the
+command line parsing of MTD partitions does not work anymore.
+
+Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
+Signed-off-by: John Crispin <blogic@openwrt.org>
+Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
+Acked-by: John Crispin <blogic@openwrt.org>
+Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/mtd/maps/lantiq-flash.c |    3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- a/drivers/mtd/maps/lantiq-flash.c
++++ b/drivers/mtd/maps/lantiq-flash.c
+@@ -45,6 +45,7 @@ struct ltq_mtd {
+ };
+ static char ltq_map_name[] = "ltq_nor";
++static const char *ltq_probe_types[] __devinitconst = { "cmdlinepart", NULL };
+ static map_word
+ ltq_read16(struct map_info *map, unsigned long adr)
+@@ -168,7 +169,7 @@ ltq_mtd_probe(struct platform_device *pd
+       cfi->addr_unlock1 ^= 1;
+       cfi->addr_unlock2 ^= 1;
+-      err = mtd_device_parse_register(ltq_mtd->mtd, NULL, 0,
++      err = mtd_device_parse_register(ltq_mtd->mtd, ltq_probe_types, 0,
+                       ltq_mtd_data->parts, ltq_mtd_data->nr_parts);
+       if (err) {
+               dev_err(&pdev->dev, "failed to add partitions\n");
diff --git a/queue-3.2/mtd-nand-gpmi-use-correct-member-for-checking-nand_bbt_use_flash.patch b/queue-3.2/mtd-nand-gpmi-use-correct-member-for-checking-nand_bbt_use_flash.patch
new file mode 100644 (file)
index 0000000..9fd6762
--- /dev/null
@@ -0,0 +1,39 @@
+From 5289966ea576a062b80319975b31b661c196ff9d Mon Sep 17 00:00:00 2001
+From: Wolfram Sang <w.sang@pengutronix.de>
+Date: Tue, 31 Jan 2012 13:10:43 +0100
+Subject: mtd: nand: gpmi: use correct member for checking NAND_BBT_USE_FLASH
+
+From: Wolfram Sang <w.sang@pengutronix.de>
+
+commit 5289966ea576a062b80319975b31b661c196ff9d upstream.
+
+This has been moved from .options to .bbt_options meanwhile. So, it
+currently checks for something totally different (NAND_OWN_BUFFERS) and
+decides according to that.
+
+Artem Bityutskiy: the options were moved in
+a40f734 mtd: nand: consolidate redundant flash-based BBT flags
+
+Artem Bityutskiy: CCing -stable
+
+Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
+Acked-by: Huang Shijie <b32955@freescale.com>
+Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
+Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/mtd/nand/gpmi-nand/gpmi-nand.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
++++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
+@@ -1124,7 +1124,7 @@ static int gpmi_block_markbad(struct mtd
+               chip->bbt[block >> 2] |= 0x01 << ((block & 0x03) << 1);
+       /* Do we have a flash based bad block table ? */
+-      if (chip->options & NAND_BBT_USE_FLASH)
++      if (chip->bbt_options & NAND_BBT_USE_FLASH)
+               ret = nand_update_bbt(mtd, ofs);
+       else {
+               chipnr = (int)(ofs >> chip->chip_shift);
diff --git a/queue-3.2/mtd-sst25l-initialize-writebufsize.patch b/queue-3.2/mtd-sst25l-initialize-writebufsize.patch
new file mode 100644 (file)
index 0000000..3bf25e2
--- /dev/null
@@ -0,0 +1,36 @@
+From c4cc625ea5958d065c21cc0fcea29e9ed8f3d2bc Mon Sep 17 00:00:00 2001
+From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
+Date: Fri, 3 Feb 2012 10:16:50 +0200
+Subject: mtd: sst25l: initialize writebufsize
+
+From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
+
+commit c4cc625ea5958d065c21cc0fcea29e9ed8f3d2bc upstream.
+
+The writebufsize concept was introduce by commit
+"0e4ca7e mtd: add writebufsize field to mtd_info struct" and it represents
+the maximum amount of data the device writes to the media at a time. This is
+an important parameter for UBIFS which is used during recovery and which
+basically defines how big a corruption caused by a power cut can be.
+
+Set writebufsize to the flash page size because it is the maximum amount of
+data it writes at a time.
+
+Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
+Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/mtd/devices/sst25l.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/mtd/devices/sst25l.c
++++ b/drivers/mtd/devices/sst25l.c
+@@ -402,6 +402,7 @@ static int __devinit sst25l_probe(struct
+       flash->mtd.flags        = MTD_CAP_NORFLASH;
+       flash->mtd.erasesize    = flash_info->erase_size;
+       flash->mtd.writesize    = flash_info->page_size;
++      flash->mtd.writebufsize = flash_info->page_size;
+       flash->mtd.size         = flash_info->page_size * flash_info->nr_pages;
+       flash->mtd.erase        = sst25l_erase;
+       flash->mtd.read         = sst25l_read;
index 72129f6f5acd4b6cdadf329f8964df3dc4564066..0333e028e26db206e4709da81eeb7964f264e33d 100644 (file)
@@ -4,3 +4,11 @@ sky2-dont-overwrite-settings-for-phy-quick-link.patch
 rose_dev-fix-memcpy-bug-in-rose_set_mac_address.patch
 net-usb-cdc_eem-fix-mtu.patch
 fix-non-tbi-phy-access-a-bad-merge-undid-bug-fix-in-a-previous-commit.patch
+asoc-wm8994-update-wm8994-dcs-calibration.patch
+mtd-ixp4xx-oops-in-ixp4xx_flash_probe.patch
+mtd-mips-lantiq-reintroduce-support-for-cmdline-partitions.patch
+mtd-nand-gpmi-use-correct-member-for-checking-nand_bbt_use_flash.patch
+mtd-sst25l-initialize-writebufsize.patch
+mtd-block2mtd-initialize-writebufsize.patch
+mtd-lart-initialize-writebufsize.patch
+mtd-m25p80-set-writebufsize.patch