i2c: s3c2410: fix oops in suspend callback for non-dt platforms
Subsystems (2)
PATCH 1/1 i2c: s3c2410: fix oops in suspend callback for non-dt platforms
Initialize sysreg by default, otherwise driver will crash in suspend callback.
--- 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 platform_device *pdev)return -ENOMEM ; i2c->quirks =s3c24xx_get_device_quirks (pdev); + i2c->sysreg =ERR_PTR (-ENOENT );if (pdata)memcpy (i2c->pdata, pdata,sizeof (*pdata));else
Signature · 1 line
2.3.5
2015-05-04 3:13 GMT+09:00 Vasily Khoruzhick <[email protected]>:
Quoted 3 lines
Initialize sysreg by default, otherwise driver will crash in suspend callback.
Signed-off-by Vasily Khoruzhick <[email protected]>
I think the crash is possible if device node is missing in DT or pdata is supplied. If you agree, could you add this information to commit message, along with Cc-stable and Fixes tag?
Anyway, the patch itself looks good:
Best regards,
Krzysztof
A message that is not in the archive (sent off-list or not yet received): CAJKOXPd71vnup-RZYAh7UM2Tky2M64tA=u0Ydy=ti0yOC6h5aQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 7 lines · Krzysztof Kozlowski
2015-05-04 3:13 GMT+09:00 Vasily Khoruzhick <[email protected]>:
Quoted 3 lines
Initialize sysreg by default, otherwise driver will crash in suspend callback.
Signed-off-by Vasily Khoruzhick <[email protected]>I think the crash is possible if device node is missing in DT or pdata is supplied.
And it's exactly the case for non-DT boot, right?
Quoted 2 lines
If you agree, could you add this information to commit message, along with Cc-stable and Fixes tag?
How do I add "Fixes tag"?
Quoted 5 lines
Anyway, the patch itself looks good:
Reviewed-by Krzysztof Kozlowski <[email protected]>Best regards,
Krzysztof
A message that is not in the archive (sent off-list or not yet received): CA+E=qVdjvx=0PSh-ead_pABd9D=bG3ua1FFRTSN2U5BVf2a=Og-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
2015-05-05 2:52 GMT+09:00 Vasily Khoruzhick <[email protected]>:
Quoted 11 lines
Quoted 7 lines · Krzysztof Kozlowski
2015-05-04 3:13 GMT+09:00 Vasily Khoruzhick <[email protected]>:
Quoted 3 lines
Initialize sysreg by default, otherwise driver will crash in suspend callback.
Signed-off-by Vasily Khoruzhick <[email protected]>I think the crash is possible if device node is missing in DT or pdata is supplied.
And it's exactly the case for non-DT boot, right?
Right, please add this to commit message.
Quoted 5 lines
Quoted 3 lines
If you agree, could you add this information to commit message, along with Cc-stable and Fixes tag?
How do I add "Fixes tag"?
In tbe commit message just add below Signed-off-by:
1. Cc: <[email protected]>
2. Fixes: abbreviated SHA ("commit subject")
The SHA of commit which introduced this error. It indicates how far your patch should be backported.
Look for examples in kernel GIT and Documentation/stable_kernel_rules.txt. For example:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1c363c7cccf64128087002b0779986ad16aff6dc
Best regards,
Krzysztof
Quoted 12 lines · Krzysztof Kozlowski
2015-05-04 3:13 GMT+09:00 Vasily Khoruzhick <[email protected]>:
Quoted 3 lines
Initialize sysreg by default, otherwise driver will crash in suspend callback.
Signed-off-by Vasily Khoruzhick <[email protected]>I think the crash is possible if device node is missing in DT or pdata is supplied. If you agree, could you add this information to commit message, along with Cc-stable and Fixes tag?
Anyway, the patch itself looks good:
Reviewed-by Krzysztof Kozlowski <[email protected]>
Can you please add me in Cc in your next posting?
I can't see the patch in my mail box...
- Kukjin
Quoted 10 lines · Kukjin Kim
Quoted 9 lines · Krzysztof Kozlowski
2015-05-04 3:13 GMT+09:00 Vasily Khoruzhick <[email protected]>:
Quoted 3 lines
Initialize sysreg by default, otherwise driver will crash in suspend callback.
Signed-off-by Vasily Khoruzhick <[email protected]>I think the crash is possible if device node is missing in DT or pdata is supplied. If you agree, could you add this information to commit message, along with Cc-stable and Fixes tag?
Quoted 7 lines
Quoted 3 lines
Anyway, the patch itself looks good:
Reviewed-by Krzysztof Kozlowski <[email protected]>Can you please add me in Cc in your next posting?
I can't see the patch in my mail box...
Oops, sorry for the noise. My email client had a problem and I can see the patch now. Please kindly ignore the request :)
Thanks,
Kukjin
A message that is not in the archive (sent off-list or not yet received): 1430676790-30500-1-git-send-email-anarsoul-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Wolfram Sang
AppliedQuoted 3 lines · Vasily Khoruzhick
Initialize sysreg by default, otherwise driver will crash in suspend callback.
Signed-off-by Vasily Khoruzhick <[email protected]>
Applied to for-current, thanks!
Added stable and the fixes tag, too.