Skip to contentSkip to conversation

mtd updates

RFC PATCH New Shubhrajyoti D 5 participants 14 messages Jan 23, 2012 – Feb 2, 2012 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

cover mtd updates

This patch series does the following
Patch 1:

- Prevents the null pointer access
Also fixes the following crash
echo mem > /sys/power/state

[  263.507019] PM: Syncing filesystems ... done.
[  263.516876] PM: Preparing system for mem sleep
[  263.548065] Freezing user space processes ... (elapsed 0.02 seconds) done.
[  263.578308] Freezing remaining freezable tasks ... (elapsed 0.02
seconds) done.
[  263.609374] PM: Entering mem sleep
[  263.620361] Unable to handle kernel NULL pointer dereference at
virtual address 000000a0
[  263.628997] pgd = c7034000
[  263.631866] [000000a0] *pgd=87b9e831, *pte=00000000, *ppte=00000000
[  263.638580] Internal error: Oops: 17 [#1] SMP
[  263.643157] Modules linked in:
[  263.646392] CPU: 0    Tainted: G        W     (3.3.0-rc1-gda9a8ca #12)
[  263.653289] PC is at mtd_cls_suspend+0x8/0x20
[  263.657897] LR is at mtd_cls_suspend+0x8/0x20
[  263.662475] pc : [<c02e7804>]    lr : [<c02e7804>]    psr: a0000113
[  263.662506] sp : c7011e60  ip : 22222222  fp : c06e52a0
[  263.674591] r10: c06e5250  r9 : 00000000  r8 : c02e77fc
[  263.680084] r7 : 00000000  r6 : 00000000  r5 : 00000002  r4 : c7afec00
[  263.686950] r3 : c7afbac0  r2 : 00000000  r1 : 00000002  r0 : 00000000
[  263.693847] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  263.701354] Control: 10c5387d  Table: 87034019  DAC: 00000015
[  263.707397] Process sh (pid: 654, stack limit = 0xc70102f8)
[  263.713287] Stack: (0xc7011e60 to 0xc7012000)
[  263.717864] 1e60: 00000000 c02c2dc0 00000000 c7afec00 00000000
00000000 c7afec00 c0c47ed8
[  263.726501] 1e80: c7afec34 00000002 c06d0fc0 c02c32b8 c02c3464
0047325c c7afec00 c7afec00
[  263.735107] 1ea0: c0c47ed8 00000004 c06e5250 c02c33e0 c7001c00
00000002 60a157bf 0000003d
[  263.743743] 1ec0: 60a157bf 0000003d 00000002 c0710698 00000000
00000003 c06fb910 00000000
[  263.752349] 1ee0: c049bf78 c78019a0 00000002 c007fec8 00000003
c0587e94 00000000 00000004
[  263.760986] 1f00: 00000000 c049bf78 c78019a0 c0080264 c7bd3000
00000003 c0587e94 c007f008
[  263.769592] 1f20: c7b90aa0 c7b90ab8 c7011f80 c783e7a0 c02528b0
c02528c8 00000004 c0166cd4
[  263.778198] 1f40: c7bfb6e0 00000004 b6f88000 c7011f80 00000000
00000000 00000000 c01071b4
[  263.786834] 1f60: c0014280 c7b34240 c7bfb6e0 b6f88000 00000004
00000004 00000000 c0107308
[  263.795440] 1f80: 00000000 00000000 00000004 00000000 00000004
001f6e80 00000004 c0014328
[  263.804077] 1fa0: c7010000 c0014160 00000004 001f6e80 00000001
b6f88000 00000004 00000000
[  263.812683] 1fc0: 00000004 001f6e80 00000004 00000004 b6f88000
001fcfc8 b6f88000 00000002
[  263.821289] 1fe0: 00000000 be8895e0 000fded8 0000921c 60000010
00000001 00000000 00000000
[  263.829956] [<c02e7804>] (mtd_cls_suspend+0x8/0x20) from
[<c02c2dc0>] (legacy_suspend+0x30
/0x78)
[  263.839202] [<c02c2dc0>] (legacy_suspend+0x30/0x78) from
[<c02c32b8>] (__device_suspend+0x
2c8/0x30c)
[  263.848846] [<c02c32b8>] (__device_suspend+0x2c8/0x30c) from
[<c02c33e0>] (dpm_suspend+0x5
8/0x214)
[  263.858306] [<c02c33e0>] (dpm_suspend+0x58/0x214) from [<c007fec8>]
(suspend_devices_and_e
nter+0x78/0x2d8)
[  263.868499] [<c007fec8>] (suspend_devices_and_enter+0x78/0x2d8)
from [<c0080264>] (enter_s
tate+0x13c/0x17c)
[  263.878753] [<c0080264>] (enter_state+0x13c/0x17c) from
[<c007f008>] (state_store+0xd0/0x1
70)
[  263.887756] [<c007f008>] (state_store+0xd0/0x170) from [<c02528c8>]
(kobj_attr_store+0x18/
0x1c)
[  263.896942] [<c02528c8>] (kobj_attr_store+0x18/0x1c) from
[<c0166cd4>] (sysfs_write_file+0
xfc/0x180)
[  263.906585] [<c0166cd4>] (sysfs_write_file+0xfc/0x180) from
[<c01071b4>] (vfs_write+0xb0/0
x134)
[  263.915771] [<c01071b4>] (vfs_write+0xb0/0x134) from [<c0107308>]
(sys_write+0x40/0x70)
[  263.924224] [<c0107308>] (sys_write+0x40/0x70) from [<c0014160>]
(ret_fast_syscall+0x0/0x3
c)
[  263.933105] Code: e3a00000 e8bd8008 e92d4008 ebff57f9 (e59030a0)
[  263.939849] ---[ end trace 1b75b31a2719ed20 ]---

Patch 2:

- Currently mtd_suspend returns an error value -EOPNOTSUPP if the suspend function is not implemented which prevents the suspend. This patch prevents the nack of suspend if suspend is not implemented

Shubhrajyoti D (2):
mtd : Prevent the NULL pointer access
mtd : Make the mtd_suspend return 0 if the suspend is not implemented

 drivers/mtd/mtdcore.c   |    5 +++--
 include/linux/mtd/mtd.h |    6 +++---
 2 files changed, 6 insertions(+), 5 deletions(-)
#1 lore raw

RFC PATCH 1/2 mtd : Prevent the NULL pointer access

This patch intends to fix the null pointer access.

---
 drivers/mtd/mtdcore.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/mtd/mtdcore.c +3 -2
index 6ae9ca0..2b3bda7 100644
@@ -118,8 +118,9 @@ static void mtd_release(struct device *dev)
 static int mtd_cls_suspend(struct device *dev, pm_message_t state)
 {
 	struct mtd_info *mtd = dev_get_drvdata(dev);
-
-	return mtd_suspend(mtd);
+	if (mtd)
+		return mtd_suspend(mtd);
+	return 0;
 }
 
 static int mtd_cls_resume(struct device *dev)
Signature · 1 line
1.7.1
#2 lore raw

RFC PATCH 1/2 mtd : Prevent the NULL pointer access

Quoted 13 lines · Shubhrajyoti D

This patch intends to fix the null pointer access.

---
?drivers/mtd/mtdcore.c | ? ?5 +++--
?1 files changed, 3 insertions(+), 2 deletions(-)

drivers/mtd/mtdcore.c +0 -0
index 6ae9ca0..2b3bda7 100644
@@ -118,8 +118,9 @@ static void mtd_release(struct device *dev)
 ?static int mtd_cls_suspend(struct device *dev, pm_message_t state)

drivers/mtd/mtdcore.c static void mtd_release(struct device *dev) · line 126

Quoted 10 lines
drivers/mtd/mtdcore.c +3 -2
 ?{
 ? ? ? ?struct mtd_info *mtd = dev_get_drvdata(dev);
-
- ? ? ? return mtd_suspend(mtd);
+ ? ? ? if (mtd)
+ ? ? ? ? ? ? ? return mtd_suspend(mtd);
+ ? ? ? return 0;
 ?}
 
 ?static int mtd_cls_resume(struct device *dev)

Forgot this patch was here; this fix is also covered in l2-mtd-2.6.git, waiting for inclusion in the 3.3-rcX release cycle. Thanks for the work though!

Brian

#3 lore raw

RFC PATCH 2/2 mtd : Make the mtd_suspend return 0 if the suspend is not implemented

In reply to Shubhrajyoti D

Currently mtd_suspend returns an error value -EOPNOTSUPP if the suspend function is not implemented which prevents the suspend. This patch prevents the nack of suspend if suspend is not implemented.

---
 include/linux/mtd/mtd.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
include/linux/mtd/mtd.h +3 -3
index 1a81fde..c717bb6 100644
@@ -427,9 +427,9 @@ static inline int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 
 static inline int mtd_suspend(struct mtd_info *mtd)
 {
-	if (!mtd->suspend)
-		return -EOPNOTSUPP;
-	return mtd->suspend(mtd);
+	if (mtd->suspend)
+		return mtd->suspend(mtd);
+	return 0;
 }
 
 static inline void mtd_resume(struct mtd_info *mtd)
Signature · 1 line
1.7.1
#4 lore raw

RFC PATCH 2/2 mtd : Make the mtd_suspend return 0 if the suspend is not implemented

Hi,

On Mon, Jan 23, 2012 at 12:12 AM, Shubhrajyoti D <[email protected]> wrote:
...

Quoted 10 lines

?include/linux/mtd/mtd.h | ? ?6 +++---
?1 files changed, 3 insertions(+), 3 deletions(-)

include/linux/mtd/mtd.h +0 -0
index 1a81fde..c717bb6 100644
@@ -427,9 +427,9 @@ static inline int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 
 ?static inline int mtd_suspend(struct mtd_info *mtd)

include/linux/mtd/mtd.h static inline int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) · line 435

Quoted 10 lines
include/linux/mtd/mtd.h +3 -3
 ?{
- ? ? ? if (!mtd->suspend)
- ? ? ? ? ? ? ? return -EOPNOTSUPP;
- ? ? ? return mtd->suspend(mtd);
+ ? ? ? if (mtd->suspend)
+ ? ? ? ? ? ? ? return mtd->suspend(mtd);
+ ? ? ? return 0;
 ?}
 
 ?static inline void mtd_resume(struct mtd_info *mtd)

I believe this fix is already accounted for in Artem Bityutskiy's l2-mtd-2.6 repository as:

commit 091a7fe219ee8d3e76be9e02221433af10c6f574
mtd: fix MTD suspend
(http://git.infradead.org/users/dedekind/l2-mtd-2.6.git/commit/091a7fe219ee8d3e76be9e02221433af10c6f574)

However, the bug made it into the 3.3 merge window, so shouldn't this bugfix be sent upstream immediately?

Brian

#5 lore raw

RFC PATCH 2/2 mtd : Make the mtd_suspend return 0 if the suspend is not implemented

Quoted 27 lines · Brian Norris

Hi,

On Mon, Jan 23, 2012 at 12:12 AM, Shubhrajyoti D <[email protected]> wrote:
...

Quoted 10 lines
 include/linux/mtd/mtd.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
include/linux/mtd/mtd.h +0 -0
index 1a81fde..c717bb6 100644
@@ -427,9 +427,9 @@ static inline int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 
 static inline int mtd_suspend(struct mtd_info *mtd)

include/linux/mtd/mtd.h static inline int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) · line 435

Quoted 10 lines
include/linux/mtd/mtd.h +3 -3
 {
-       if (!mtd->suspend)
-               return -EOPNOTSUPP;
-       return mtd->suspend(mtd);
+       if (mtd->suspend)
+               return mtd->suspend(mtd);
+       return 0;
 }
 
 static inline void mtd_resume(struct mtd_info *mtd)

I believe this fix is already accounted for in Artem Bityutskiy's l2-mtd-2.6 repository as:

Quoted 6 lines

commit 091a7fe219ee8d3e76be9e02221433af10c6f574
mtd: fix MTD suspend
(http://git.infradead.org/users/dedekind/l2-mtd-2.6.git/commit/091a7fe219ee8d3e76be9e02221433af10c6f574)

However, the bug made it into the 3.3 merge window, so shouldn't this bugfix be sent upstream immediately?

OK thanks for pointing that.

Quoted 1 line

Brian

#6 lore raw

RFC PATCH 2/2 mtd : Make the mtd_suspend return 0 if the suspend is not implemented

In reply to Brian Norris
Quoted 28 lines · Brian Norris

Hi,

On Mon, Jan 23, 2012 at 12:12 AM, Shubhrajyoti D <[email protected]> wrote:
...

Quoted 10 lines

?include/linux/mtd/mtd.h | ? ?6 +++---
?1 files changed, 3 insertions(+), 3 deletions(-)

include/linux/mtd/mtd.h +0 -0
index 1a81fde..c717bb6 100644
@@ -427,9 +427,9 @@ static inline int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 
 ?static inline int mtd_suspend(struct mtd_info *mtd)

include/linux/mtd/mtd.h static inline int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) · line 435

Quoted 10 lines
include/linux/mtd/mtd.h +3 -3
 ?{
- ? ? ? if (!mtd->suspend)
- ? ? ? ? ? ? ? return -EOPNOTSUPP;
- ? ? ? return mtd->suspend(mtd);
+ ? ? ? if (mtd->suspend)
+ ? ? ? ? ? ? ? return mtd->suspend(mtd);
+ ? ? ? return 0;
 ?}
 
 ?static inline void mtd_resume(struct mtd_info *mtd)

I believe this fix is already accounted for in Artem Bityutskiy's l2-mtd-2.6 repository as:

Quoted 6 lines

commit 091a7fe219ee8d3e76be9e02221433af10c6f574
mtd: fix MTD suspend
(http://git.infradead.org/users/dedekind/l2-mtd-2.6.git/commit/091a7fe219ee8d3e76be9e02221433af10c6f574)

However, the bug made it into the 3.3 merge window, so shouldn't this bugfix be sent upstream immediately?

David is the MTD maintainer, and Artem just helps out. I believe Artem is waiting for David to finish travelling before asking David (last seen at Hong Kong airport) to pull these fixes. David in turn will pass them onto Linus. Plus, Linus only started adding to -rc1 yesterday, so its a little early to expect this to be fixed.

#7 lore raw

RFC PATCH 2/2 mtd : Make the mtd_suspend return 0 if the suspend is not implemented

Quoted 9 lines · Russell King - ARM Linux
Quoted 2 lines · Brian Norris

However, the bug made it into the 3.3 merge window, so shouldn't this bugfix be sent upstream immediately?

David is the MTD maintainer, and Artem just helps out. ?I believe Artem is waiting for David to finish travelling before asking David (last seen at Hong Kong airport) to pull these fixes. ?David in turn will pass them onto Linus. ?Plus, Linus only started adding to -rc1 yesterday, so its a little early to expect this to be fixed.

Right, thanks for the reality check. I was just ensuring that this bugfix was on the right track. I probably should have said "in 3.3-rcX", not "immediately."

Regards,
Brian

#8 lore raw

RFC PATCH 2/2 mtd : Make the mtd_suspend return 0 if the suspend is not implemented

In reply to Russell King - ARM Linux
Quoted 8 lines · Russell King - ARM Linux
Quoted 2 lines

However, the bug made it into the 3.3 merge window, so shouldn't this bugfix be sent upstream immediately?

David is the MTD maintainer, and Artem just helps out. I believe Artem is waiting for David to finish travelling before asking David (last seen at Hong Kong airport) to pull these fixes. David in turn will pass them onto Linus. Plus, Linus only started adding to -rc1 yesterday, so its a little early to expect this to be fixed.

Hi,

here is the latest version of the fix.

http://git.infradead.org/users/dedekind/l2-mtd-2.6.git/commit/283d43b9ce2952535aa89c0195085e2a1b7e5fce

Also attached.

From 283d43b9ce2952535aa89c0195085e2a1b7e5fce Mon Sep 17 00:00:00 2001
From: Artem Bityutskiy <[email protected]>
Date: Mon, 16 Jan 2012 11:07:16 +0200
Subject: [PATCH] mtd: fix MTD suspend

Commits 3fe4bae88460869a8e553397cd9057a4ee7ca341 and 079c985e7a6f4ce60f931cebfdd5ee3c3 broke MTD suspend in 2 ways:

1. When the '->suspend' method is not present, we return -EOPNOTSUPP, but
the callers of 'mtd_suspend()' expects 0 instead.
2. Checking of the 'mtd' parameter against NULL has been incorrectly removed
in 'mtd_cls_suspend()'.

This patch fixes the breakages. This has been found, analyzed, reported and tested by Rafael J. Wysocki <[email protected]>.

Note, this patch is not needed in the stable tree because it causes a regression introduced during the v3.3 merge window.

---
 drivers/mtd/mtdcore.c   |    2 +-
 include/linux/mtd/mtd.h |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/mtd/mtdcore.c +0 -0
index b265188..de96865 100644
@@ -119,7 +119,7 @@ static int mtd_cls_suspend(struct device *dev,

pm_message_t state)
{
struct mtd_info *mtd = dev_get_drvdata(dev);

- return mtd_suspend(mtd);
+ return mtd ? mtd_suspend(mtd) : 0;
}

static int mtd_cls_resume(struct device *dev)

include/linux/mtd/mtd.h +0 -0
index 1a81fde..d8c7aad 100644
@@ -427,9 +427,7 @@ static inline int mtd_is_locked(struct mtd_info

*mtd, loff_t ofs, uint64_t len)

static inline int mtd_suspend(struct mtd_info *mtd) {
- if (!mtd->suspend)
- return -EOPNOTSUPP;
- return mtd->suspend(mtd);
+ return mtd->suspend ? mtd->suspend(mtd) : 0;
}

static inline void mtd_resume(struct mtd_info *mtd)

Signature · 5 lines
1.7.7.6

-- 
Best Regards,
Artem Bityutskiy

From 283d43b9ce2952535aa89c0195085e2a1b7e5fce Mon Sep 17 00:00:00 2001
From: Artem Bityutskiy <[email protected]>
Date: Mon, 16 Jan 2012 11:07:16 +0200
Subject: [PATCH] mtd: fix MTD suspend

Commits 3fe4bae88460869a8e553397cd9057a4ee7ca341 and 079c985e7a6f4ce60f931cebfdd5ee3c3 broke MTD suspend in 2 ways:

1. When the '->suspend' method is not present, we return -EOPNOTSUPP, but the callers of 'mtd_suspend()' expects 0 instead.
2. Checking of the 'mtd' parameter against NULL has been incorrectly removed in 'mtd_cls_suspend()'.

This patch fixes the breakages. This has been found, analyzed, reported and tested by Rafael J. Wysocki <[email protected]>.

Note, this patch is not needed in the stable tree because it causes a regression introduced during the v3.3 merge window.

---
 drivers/mtd/mtdcore.c   |    2 +-
 include/linux/mtd/mtd.h |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/mtd/mtdcore.c +1 -1
index b265188..de96865 100644
@@ -119,7 +119,7 @@ static int mtd_cls_suspend(struct device *dev, pm_message_t state)
 {
 	struct mtd_info *mtd = dev_get_drvdata(dev);
 
-	return mtd_suspend(mtd);
+	return mtd ? mtd_suspend(mtd) : 0;
 }
 
 static int mtd_cls_resume(struct device *dev)
include/linux/mtd/mtd.h +1 -3
index 1a81fde..d8c7aad 100644
@@ -427,9 +427,7 @@ static inline int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len)
 
 static inline int mtd_suspend(struct mtd_info *mtd)
 {
-	if (!mtd->suspend)
-		return -EOPNOTSUPP;
-	return mtd->suspend(mtd);
+	return mtd->suspend ? mtd->suspend(mtd) : 0;
 }
 
 static inline void mtd_resume(struct mtd_info *mtd)
Signature · 1 line
1.7.7.6
#9 lore raw

RFC PATCH 2/2 mtd : Make the mtd_suspend return 0 if the suspend is not implemented

Quoted 36 lines · Artem Bityutskiy
Quoted 8 lines · Russell King - ARM Linux
Quoted 2 lines

However, the bug made it into the 3.3 merge window, so shouldn't this bugfix be sent upstream immediately?

David is the MTD maintainer, and Artem just helps out. I believe Artem is waiting for David to finish travelling before asking David (last seen at Hong Kong airport) to pull these fixes. David in turn will pass them onto Linus. Plus, Linus only started adding to -rc1 yesterday, so its a little early to expect this to be fixed.

Hi,

here is the latest version of the fix.

http://git.infradead.org/users/dedekind/l2-mtd-2.6.git/commit/283d43b9ce2952535aa89c0195085e2a1b7e5fce

Also attached.

From 283d43b9ce2952535aa89c0195085e2a1b7e5fce Mon Sep 17 00:00:00 2001
From: Artem Bityutskiy <[email protected]>
Date: Mon, 16 Jan 2012 11:07:16 +0200
Subject: [PATCH] mtd: fix MTD suspend

Commits 3fe4bae88460869a8e553397cd9057a4ee7ca341 and 079c985e7a6f4ce60f931cebfdd5ee3c3 broke MTD suspend in 2 ways:

1. When the '->suspend' method is not present, we return -EOPNOTSUPP, but
the callers of 'mtd_suspend()' expects 0 instead.
2. Checking of the 'mtd' parameter against NULL has been incorrectly removed
in 'mtd_cls_suspend()'.

This patch fixes the breakages. This has been found, analyzed, reported and tested by Rafael J. Wysocki <[email protected]>.

Quoted 7 lines

Note, this patch is not needed in the stable tree because it causes a regression introduced during the v3.3 merge window.

Thanks, but is anyone actually going to push it to Linus any time soon?

If not, then I can do that through the linux-pm tree. I'll be sending at least one more pull request with fixes for v3.3.

Thanks,
Rafael

Quoted 36 lines
---
 drivers/mtd/mtdcore.c   |    2 +-
 include/linux/mtd/mtd.h |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/mtd/mtdcore.c +1 -1
index b265188..de96865 100644
@@ -119,7 +119,7 @@ static int mtd_cls_suspend(struct device *dev,
 pm_message_t state)
 {
 	struct mtd_info *mtd = dev_get_drvdata(dev);
 
-	return mtd_suspend(mtd);
+	return mtd ? mtd_suspend(mtd) : 0;
 }
 

static int mtd_cls_resume(struct device *dev)

include/linux/mtd/mtd.h +1 -3
index 1a81fde..d8c7aad 100644
@@ -427,9 +427,7 @@ static inline int mtd_is_locked(struct mtd_info
 *mtd, loff_t ofs, uint64_t len)
 
 static inline int mtd_suspend(struct mtd_info *mtd)
 {
-	if (!mtd->suspend)
-		return -EOPNOTSUPP;
-	return mtd->suspend(mtd);
+	return mtd->suspend ? mtd->suspend(mtd) : 0;
 }
 

static inline void mtd_resume(struct mtd_info *mtd)

#10 lore raw

RFC PATCH 2/2 mtd : Make the mtd_suspend return 0 if the suspend is not implemented

Quoted 1 line · Rafael J. Wysocki

Thanks, but is anyone actually going to push it to Linus any time soon?

I agree, but I am not the maintainer so cannot answer. David Woodhouse is aware of this, but I do not know when he gonna send the pull request.

Signature · 2 lines
Best Regards,
Artem Bityutskiy
#11 lore raw

RFC PATCH 2/2 mtd : Make the mtd_suspend return 0 if the suspend is not implemented

Quoted 5 lines · Artem Bityutskiy
Quoted 1 line · Rafael J. Wysocki

Thanks, but is anyone actually going to push it to Linus any time soon?

I agree, but I am not the maintainer so cannot answer. David Woodhouse is aware of this, but I do not know when he gonna send the pull request.

Well, the problem is being reported by more and more people, so I'd like to push the fix quickly.

David, please let me know if you don't want me to include the $subject patch into the next PM fixes pull request. If I don't hear from you, I'll push it next week for -rc4.

Thanks,
Rafael

#12 lore raw

RFC PATCH 2/2 mtd : Make the mtd_suspend return 0 if the suspend is not implemented

Quoted 7 lines · Rafael J. Wysocki
Quoted 5 lines · Artem Bityutskiy
Quoted 1 line · Rafael J. Wysocki

Thanks, but is anyone actually going to push it to Linus any time soon?

I agree, but I am not the maintainer so cannot answer. David Woodhouse is aware of this, but I do not know when he gonna send the pull request.

Quoted 6 lines

Well, the problem is being reported by more and more people, so I'd like to push the fix quickly.

David, please let me know if you don't want me to include the $subject patch into the next PM fixes pull request. If I don't hear from you, I'll push it next week for -rc4.

I too have it in my tree as a patch which Artem sent me, as it's rather fundamental to not oopsing the kernel when you suspend/resume on any ARM platform.

#13 lore raw

RFC PATCH 2/2 mtd : Make the mtd_suspend return 0 if the suspend is not implemented

Quoted 11 lines · Russell King - ARM Linux
Quoted 10 lines · Rafael J. Wysocki
Quoted 5 lines · Artem Bityutskiy
Quoted 1 line · Rafael J. Wysocki

Thanks, but is anyone actually going to push it to Linus any time soon?

I agree, but I am not the maintainer so cannot answer. David Woodhouse is aware of this, but I do not know when he gonna send the pull request.

Well, the problem is being reported by more and more people, so I'd like to push the fix quickly.

Quoted 7 lines
Quoted 3 lines

David, please let me know if you don't want me to include the $subject patch into the next PM fixes pull request. If I don't hear from you, I'll push it next week for -rc4.

I too have it in my tree as a patch which Artem sent me, as it's rather fundamental to not oopsing the kernel when you suspend/resume on any ARM platform.

It actually affects everyone using MTD and suspend (not only ARM) and that's why I thought I'd take it, but I'm fine with any other resolution as long as the patch goes to Linus before 3.3-final.

Thanks,
Rafael