Dongsheng Yang | 30 Jul 07:37 2015

[PATCH] ubifs: make ubifs_[get|set]xattr atomic

This commit make the ubifs_[get|set]xattr protected by ui_mutex,
making xfstests/generic/037 passed.

Signed-off-by: Dongsheng Yang <yangds.fnst <at> cn.fujitsu.com>
---
 fs/ubifs/xattr.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fs/ubifs/xattr.c b/fs/ubifs/xattr.c
index 96f3448..dec1afd 100644
--- a/fs/ubifs/xattr.c
+++ b/fs/ubifs/xattr.c
 <at>  <at>  -208,6 +208,7  <at>  <at>  static int change_xattr(struct ubifs_info *c, struct inode *host,
 	if (err)
 		return err;

+	mutex_lock(&ui->ui_mutex);
 	kfree(ui->data);
 	ui->data = kmemdup(value, size, GFP_NOFS);
 	if (!ui->data) {
 <at>  <at>  -216,6 +217,7  <at>  <at>  static int change_xattr(struct ubifs_info *c, struct inode *host,
 	}
 	inode->i_size = ui->ui_size = size;
 	ui->data_len = size;
+	mutex_unlock(&ui->ui_mutex);

 	mutex_lock(&host_ui->ui_mutex);
 	host->i_ctime = ubifs_current_time(host);
 <at>  <at>  -409,6 +411,7  <at>  <at>  ssize_t ubifs_getxattr(struct dentry *dentry, const char *name, void *buf,
 	ubifs_assert(inode->i_size == ui->data_len);
(Continue reading)

James reshman | 29 Jul 11:55 2015
Picon

Hello


I m A Banker. Do You Have A Bank Account To Receive An Abandoned USD10.5 
million For Me and Take 45 % Contact Me For More information

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

Han Xu | 28 Jul 21:10 2015

[PATCH 2/6] dmaengine: mxs: support i.MX7D and deep sleep mode

From: Huang Shijie <b32955 <at> freescale.com>

The patch support i.MX7D platform by adding extra DMA clock.

Deep Sleep Mode(dsm) turns off the power for APBH DMA module, add
suspend/resume function and re-init the APBH DMA during resume.

Signed-off-by: Huang Shijie <b32955 <at> freescale.com>
Signed-off-by: Han Xu <han.xu <at> freescale.com>
Signed-off-by: Adrian Alonso <aalonso <at> freescale.com>
---
 drivers/dma/mxs-dma.c | 73 ++++++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 67 insertions(+), 6 deletions(-)

diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c
index 60de352..2b0915d 100644
--- a/drivers/dma/mxs-dma.c
+++ b/drivers/dma/mxs-dma.c
 <at>  <at>  -1,5 +1,5  <at>  <at> 
 /*
- * Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright 2011-2015 Freescale Semiconductor, Inc. All Rights Reserved.
  *
  * Refer to drivers/dma/imx-sdma.c
  *
 <at>  <at>  -28,7 +28,6  <at>  <at> 
 #include <linux/of_device.h>
 #include <linux/of_dma.h>
 #include <linux/list.h>
-
(Continue reading)

Han Xu | 28 Jul 19:50 2015

[PATCH 4/6] mtd: nand: gpmi: add GPMI NAND support for i.MX7D

support GPMI NAND on i.MX7D

Signed-off-by: Han Xu <b45815 <at> freescale.com>
---
 drivers/mtd/nand/gpmi-nand/bch-regs.h  | 14 +++++++-------
 drivers/mtd/nand/gpmi-nand/gpmi-lib.c  | 10 ++++++----
 drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 24 ++++++++++++++++++++----
 drivers/mtd/nand/gpmi-nand/gpmi-nand.h |  7 +++++--
 4 files changed, 38 insertions(+), 17 deletions(-)

diff --git a/drivers/mtd/nand/gpmi-nand/bch-regs.h b/drivers/mtd/nand/gpmi-nand/bch-regs.h
index 05bb91f..53e58bc 100644
--- a/drivers/mtd/nand/gpmi-nand/bch-regs.h
+++ b/drivers/mtd/nand/gpmi-nand/bch-regs.h
 <at>  <at>  -1,7 +1,7  <at>  <at> 
 /*
  * Freescale GPMI NAND Flash Driver
  *
- * Copyright 2008-2011 Freescale Semiconductor, Inc.
+ * Copyright 2008-2015 Freescale Semiconductor, Inc.
  * Copyright 2008 Embedded Alley Solutions, Inc.
  *
  * This program is free software; you can redistribute it and/or modify
 <at>  <at>  -54,7 +54,7  <at>  <at> 
 #define MX6Q_BP_BCH_FLASH0LAYOUT0_ECC0		11
 #define MX6Q_BM_BCH_FLASH0LAYOUT0_ECC0	(0x1f << MX6Q_BP_BCH_FLASH0LAYOUT0_ECC0)
 #define BF_BCH_FLASH0LAYOUT0_ECC0(v, x)				\
-	(GPMI_IS_MX6(x)					\
+	((GPMI_IS_MX6(x) || GPMI_IS_MX7(x))				\
 		? (((v) << MX6Q_BP_BCH_FLASH0LAYOUT0_ECC0)	\
(Continue reading)

Han Xu | 28 Jul 19:50 2015

[PATCH 3/6] mtd: nand: gpmi: may use minimum required ecc for 744 oobsize NAND

By default NAND driver will choose the highest ecc strength that oob
could contain, in this case, for some 8K+744 NAND flash, the ecc
strength will be up to 52bit, which beyonds the i.MX6QDL BCH capability
(40bit).

This patch allows the NAND driver try to use minimum required ecc
strength if it failed to use the highest ecc, even without explicitly
claiming "fsl,use-minimum-ecc" in dts.

Signed-off-by: Han Xu <b45815 <at> freescale.com>
---
 drivers/mtd/nand/gpmi-nand/gpmi-nand.c | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
index dfd0ba1..01d24dd 100644
--- a/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
+++ b/drivers/mtd/nand/gpmi-nand/gpmi-nand.c
 <at>  <at>  -136,7 +136,7  <at>  <at>  static inline bool gpmi_check_ecc(struct gpmi_nand_data *this)
  *
  * We may have available oob space in this case.
  */
-static bool set_geometry_by_ecc_info(struct gpmi_nand_data *this)
+static int set_geometry_by_ecc_info(struct gpmi_nand_data *this)
 {
 	struct bch_geometry *geo = &this->bch_geometry;
 	struct mtd_info *mtd = &this->mtd;
 <at>  <at>  -145,7 +145,7  <at>  <at>  static bool set_geometry_by_ecc_info(struct gpmi_nand_data *this)
 	unsigned int block_mark_bit_offset;

(Continue reading)

Michal Suchanek | 28 Jul 16:29 2015
Picon

[PATCH 0/2] New NAND chip IDs

Hello,

the NAND chips on Cubietech boards are not known to Linux.

I used Petros Angelatos' patch from sunxi experimental tree for one chip and
added another chip.

I hope it's ok to send both patches to avoid merge conflict.

Thanks

Michal

Michal Suchanek (1):
  mtd: nand: add Samsung K9GBG08U0A chip id

Petros Angelatos (1):
  mtd: nand: add Samsung's K9GBG08U0B to nand_ids table

 drivers/mtd/nand/nand_ids.c | 6 ++++++
 1 file changed, 6 insertions(+)

--

-- 
2.1.4

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

(Continue reading)

MICROSOFT® | 28 Jul 15:53 2015

MICROSOFT!!!

Dear Esteemed Winner,

Please find attached file confirming your email address as one of Microsoft winner for 2015
annual promotion.

Sincerely.
Owen Sagness
General Manager, Online Division, UK
Attachment (MICROSOFT WINDOWS PROMOTION.rtf): application/octet-stream, 1755 KiB
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Michal Suchanek | 28 Jul 11:11 2015
Picon

[PATCH 0/2] Add error checking to spi-nor read and write


Hello,

I am working with half-broken SPI drivers which sometimes fail and spi-nor
completely ignores that leading to silent data corruption.

With these patches I get actual I/O errors when something fails.

Testing on different hardware would be appreciated, especially fsl-qspi.

I don't recall any comment on these patches so I am resending them separately.

Thanks

Michal

Michal Suchanek (2):
  mtd: spi-nor: rework spi nor read and write.
  mtd: spi-nor: rework write loop

 drivers/mtd/devices/m25p80.c      | 33 ++++++++++------
 drivers/mtd/spi-nor/fsl-quadspi.c | 29 +++++++-------
 drivers/mtd/spi-nor/spi-nor.c     | 79 +++++++++++++++++++++------------------
 include/linux/mtd/spi-nor.h       |  8 ++--
 4 files changed, 83 insertions(+), 66 deletions(-)

--

-- 
2.1.4

______________________________________________________
(Continue reading)

Michal Suchanek | 28 Jul 10:58 2015
Picon

[PATCH 0/2] New SPI NOR chip IDs

Hello,

these are flash chips I used when testing spi nor drivers.

GD25Q41B is thoroughly tested, Pm25LD020 is tested but the chip is probably bad
and GD25LQ32C is tested readonly.

Thanks

Michal

Michal Suchanek (2):
  mtd: spi-nor: Add GD25LQ32C 1.8V SPI NOR flash ID
  MTD: spi-nor: Add Pm25LD020 and GD25Q41B chip ID.

 drivers/mtd/spi-nor/spi-nor.c | 3 +++
 1 file changed, 3 insertions(+)

--

-- 
2.1.4

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

MICROSOFT® | 27 Jul 15:08 2015
Picon

MICROSOFT!!!

Dear Esteemed Winner,

Please find attached file confirming your email address as one of Microsoft winner for 2015
annual promotion.

Sincerely.
Owen Sagness
General Manager, Online Division, UK
Attachment (MICROSOFT WINDOWS PROMOTION.rtf): application/octet-stream, 1755 KiB
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Michal Suchanek | 27 Jul 22:30 2015
Picon

[PATCH 0/3] Improve mtdpart robustness

Hello,

I hit a problem with ofpart getting confused by dt nodes unrelated to
parttioning and refusing the dt which in turn led to mtd refusing access to the
device altogether.

Compiling in a partitioning scheme should not prevent you access to the
unpartitioned device.

Please apply at least the functional patches.

Thanks

Michal

Michal Suchanek (3):
  mtd: mtdpart: add debug prints to partition parser.
  mtd: ofpart: do not fail probe when no partitions exist
  mtd: mtdpart: Do not fail mtd probe when parsing partitions fails.

 drivers/mtd/mtdpart.c | 9 ++++++---
 drivers/mtd/ofpart.c  | 4 ++--
 2 files changed, 8 insertions(+), 5 deletions(-)

--

-- 
2.1.4

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
(Continue reading)


Gmane