Skip to contentSkip to conversation

Patch "i2c: s3c2410: fix oops in suspend callback for non-dt" has been added to the 4.0-stable tree

PATCH [email protected] 1 participant 1 message Jun 19, 2015

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

i2c: s3c2410: fix oops in suspend callback for non-dt

to the 4.0-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:

     i2c-s3c2410-fix-oops-in-suspend-callback-for-non-dt.patch

and it can be found in the queue-4.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 8d487a43c36b54a029d74ad3b0a6a9d1253e728a Mon Sep 17 00:00:00 2001

From: Vasily Khoruzhick <[email protected]>
Date: Sun, 3 May 2015 21:13:10 +0300
Subject: i2c: s3c2410: fix oops in suspend callback for non-dt
platforms

From: Vasily Khoruzhick <[email protected]>

commit 8d487a43c36b54a029d74ad3b0a6a9d1253e728a upstream.

Initialize sysreg by default, otherwise driver will crash in suspend callback when not using DT.

Fixes a7750c3ef01223 ("i2c: s3c2410: Handle i2c sys_cfg register in i2c driver")
---
 drivers/i2c/busses/i2c-s3c2410.c |    1 +
 1 file changed, 1 insertion(+)
drivers/i2c/busses/i2c-s3c2410.c +1 -0
@@ -1143,6 +1143,7 @@ static int s3c24xx_i2c_probe(struct plat
 		return -ENOMEM;
 
 	i2c->quirks = s3c24xx_get_device_quirks(pdev);
+	i2c->sysreg = ERR_PTR(-ENOENT);
 	if (pdata)
 		memcpy(i2c->pdata, pdata, sizeof(*pdata));
 	else

Patches currently in stable-queue which might be from [email protected] are

queue-4.0/i2c-s3c2410-fix-oops-in-suspend-callback-for-non-dt.patch --
To unsubscribe from this list: send the line "unsubscribe stable" in