platform/chrome: fix crash during suspend
Subsystems (2)
PATCH 1/1 platform/chrome: fix crash during suspend
Kernel crashes during suspend due to wrong conversion in suspend and resume functions.
Use the proper helper to get ishtp_cl_device instance.
--- drivers/platform/chrome/cros_ec_ishtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/platform/chrome/cros_ec_ishtp.c +2 -2
@@ -707,7 +707,7 @@ static int cros_ec_ishtp_reset(struct ishtp_cl_device *cl_device)*/ static int __maybe_unused cros_ec_ishtp_suspend (struct device *device) { -struct ishtp_cl_device *cl_device =dev_get_drvdata (device); +struct ishtp_cl_device *cl_device =ishtp_dev_to_cl_device (device);struct ishtp_cl *cros_ish_cl =ishtp_get_drvdata (cl_device);struct ishtp_cl_data *client_data =ishtp_get_client_data (cros_ish_cl);
@@ -722,7 +722,7 @@ static int __maybe_unused cros_ec_ishtp_suspend(struct device *device)*/ static int __maybe_unused cros_ec_ishtp_resume (struct device *device) { -struct ishtp_cl_device *cl_device =dev_get_drvdata (device); +struct ishtp_cl_device *cl_device =ishtp_dev_to_cl_device (device);struct ishtp_cl *cros_ish_cl =ishtp_get_drvdata (cl_device);struct ishtp_cl_data *client_data =ishtp_get_client_data (cros_ish_cl);
Signature · 1 line
1.9.1
Hi,
Many thanks for this patch
Quoted 25 lines · Hyungwoo Yang
Kernel crashes during suspend due to wrong conversion in suspend and resume functions.
Use the proper helper to get
ishtp_cl_deviceinstance.Signed-off-by Hyungwoo Yang <[email protected]>--- drivers/platform/chrome/cros_ec_ishtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/platform/chrome/cros_ec_ishtp.c +1
-1@@ -707,7 +707,7 @@ static int cros_ec_ishtp_reset(struct ishtp_cl_device *cl_device)*/ static int __maybe_unused cros_ec_ishtp_suspend (struct device *device) { -struct ishtp_cl_device *cl_device =dev_get_drvdata (device); +struct ishtp_cl_device *cl_device =ishtp_dev_to_cl_device (device);struct ishtp_cl *cros_ish_cl =ishtp_get_drvdata (cl_device);struct ishtp_cl_data *client_data =ishtp_get_client_data (cros_ish_cl);
drivers/platform/chrome/cros_ec_ishtp.c static int __maybe_unused cros_ec_ishtp_suspend(struct device *device) · line 728
Quoted 8 lines
drivers/platform/chrome/cros_ec_ishtp.c +1
-1@@ -722,7 +722,7 @@ static int __maybe_unused cros_ec_ishtp_suspend(struct device *device)*/ static int __maybe_unused cros_ec_ishtp_resume (struct device *device) { -struct ishtp_cl_device *cl_device =dev_get_drvdata (device); +struct ishtp_cl_device *cl_device =ishtp_dev_to_cl_device (device);struct ishtp_cl *cros_ish_cl =ishtp_get_drvdata (cl_device);struct ishtp_cl_data *client_data =ishtp_get_client_data (cros_ish_cl);
As this patch is a fix for '26a14267aff2 platform/chrome: Add ChromeOS EC ISHTP driver' which is still for-next material, do you mind if I squash both patches?
If you don't mind I'll add your Signed-off and a small comment saying that you fixed this.
Thanks,
Enric
Quoted 38 lines · Hyungwoo Yang
Quoted 26 lines
Kernel crashes during suspend due to wrong conversion in suspend and resume functions.
Use the proper helper to get
ishtp_cl_deviceinstance.Signed-off-by Hyungwoo Yang <[email protected]>--- drivers/platform/chrome/cros_ec_ishtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/platform/chrome/cros_ec_ishtp.c +1
-1@@ -707,7 +707,7 @@ static int cros_ec_ishtp_reset(struct ishtp_cl_device *cl_device)*/ static int __maybe_unused cros_ec_ishtp_suspend (struct device *device) { -struct ishtp_cl_device *cl_device =dev_get_drvdata (device); +struct ishtp_cl_device *cl_device =ishtp_dev_to_cl_device (device);struct ishtp_cl *cros_ish_cl =ishtp_get_drvdata (cl_device);struct ishtp_cl_data *client_data =ishtp_get_client_data (cros_ish_cl);drivers/platform/chrome/cros_ec_ishtp.c static int __maybe_unused cros_ec_ishtp_suspend(struct device *device) · line 727
Quoted 7 lines
drivers/platform/chrome/cros_ec_ishtp.c +1
-1@@ -722,7 +722,7 @@ static int __maybe_unused cros_ec_ishtp_suspend(struct device *device)*/ static int __maybe_unused cros_ec_ishtp_resume (struct device *device) { -struct ishtp_cl_device *cl_device =dev_get_drvdata (device); +struct ishtp_cl_device *cl_device =ishtp_dev_to_cl_device (device);struct ishtp_cl *cros_ish_cl =ishtp_get_drvdata (cl_device); struct ishtp_cl_data *client_data =
ishtp_get_client_data(cros_ish_cl);Quoted 2 lines
Quoted 3 lines
As this patch is a fix for '
26a14267aff2platform/chrome: Add ChromeOS EC ISHTP driver' which is still for-next material, do you mind if I squash both patches?If you don't mind I'll add your Signed-off and a small comment saying that you fixed this.
I don't mind. please do whatever you want. but it has dependency with https://patchwork.kernel.org/project/linux-input/list/?series=124780
Quoted 3 lines
Thanks,
Enric
Hi,
Quoted 38 lines · Hyungwoo
Quoted 38 lines · Hyungwoo Yang
Quoted 26 lines
Kernel crashes during suspend due to wrong conversion in suspend and resume functions.
Use the proper helper to get
ishtp_cl_deviceinstance.Signed-off-by Hyungwoo Yang <[email protected]>--- drivers/platform/chrome/cros_ec_ishtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/platform/chrome/cros_ec_ishtp.c +1
-1@@ -707,7 +707,7 @@ static int cros_ec_ishtp_reset(struct ishtp_cl_device *cl_device)*/ static int __maybe_unused cros_ec_ishtp_suspend (struct device *device) { -struct ishtp_cl_device *cl_device =dev_get_drvdata (device); +struct ishtp_cl_device *cl_device =ishtp_dev_to_cl_device (device);struct ishtp_cl *cros_ish_cl =ishtp_get_drvdata (cl_device);struct ishtp_cl_data *client_data =ishtp_get_client_data (cros_ish_cl);drivers/platform/chrome/cros_ec_ishtp.c static int __maybe_unused cros_ec_ishtp_suspend(struct device *device) · line 727
Quoted 7 lines
drivers/platform/chrome/cros_ec_ishtp.c +1
-1@@ -722,7 +722,7 @@ static int __maybe_unused cros_ec_ishtp_suspend(struct device *device)*/ static int __maybe_unused cros_ec_ishtp_resume (struct device *device) { -struct ishtp_cl_device *cl_device =dev_get_drvdata (device); +struct ishtp_cl_device *cl_device =ishtp_dev_to_cl_device (device);struct ishtp_cl *cros_ish_cl =ishtp_get_drvdata (cl_device); struct ishtp_cl_data *client_data =
ishtp_get_client_data(cros_ish_cl);Quoted 2 lines
Quoted 5 lines
Quoted 3 lines
As this patch is a fix for '
26a14267aff2platform/chrome: Add ChromeOS EC ISHTP driver' which is still for-next material, do you mind if I squash both patches?If you don't mind I'll add your Signed-off and a small comment saying that you fixed this.
I don't mind. please do whatever you want. but it has dependency with https://patchwork.kernel.org/project/linux-input/list/?series=124780
What patches exactly? The link points me to a big list of patches. And do you mean that this patch is a fix for a patch that didn't land yet and current code is not wrong?
Thanks,
Enric
Quoted 7 lines
Quoted 4 lines
Thanks,
Enric
Quoted 8 lines
-----Original Message-----
From: Enric Balletbo i Serra <[email protected]>
Sent: Tuesday, June 4, 2019 8:04 AM
To: Yang, Hyungwoo <[email protected]>
Cc: [email protected]; Kadam, Rushikesh S <[email protected]>; [email protected]
Subject: Re: [PATCH] platform/chrome: fix crash during suspendQuoted 2 lines
Quoted 2 lines
Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
As this patch is a fix for '
26a14267aff2platform/chrome: Add ChromeOS EC ISHTP driver' which is still for-next material, do you mind if I squash both patches?If you don't mind I'll add your Signed-off and a small comment saying that you fixed this.
I don't mind. please do whatever you want. but it has dependency with
https://patchwork.kernel.org/project/linux-input/list/?series=124780What patches exactly? The link points me to a big list of patches. And do you mean that this patch is a fix for a patch that didn't land yet and current code is not wrong?
I'm sorry I didn't know I made mistake with "send-mail". I've submitted new one(v4) as they asked me.
https://patchwork.kernel.org/project/linux-input/list/?series=126697
Thanks,
Hyungwoo
Hi,
cc'ing: Benson and Guenter
Please don't forget to add all the chrome-platform maintainers in the cc list.
Quoted 6 lines · Hyungwoo Yang
Kernel crashes during suspend due to wrong conversion in suspend and resume functions.
Use the proper helper to get
ishtp_cl_deviceinstance.Signed-off-by Hyungwoo Yang <[email protected]>
I added the cros_ec_ishtp prefix in the subject and cc'ied stable to apply this for 5.2+ (the patch depends on "b12bbdc5: HID: intel-ish-hid: fix wrong driver_data usage")
The patch will be pushed to the chrome-platform-5.3-fixes branch for the autobuilders to play with, if all goes well we will do a fixes PR during this cycle.
Thanks,
~ Enric
Quoted 27 lines
--- drivers/platform/chrome/cros_ec_ishtp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/platform/chrome/cros_ec_ishtp.c +2
-2@@ -707,7 +707,7 @@ static int cros_ec_ishtp_reset(struct ishtp_cl_device *cl_device)*/ static int __maybe_unused cros_ec_ishtp_suspend (struct device *device) { -struct ishtp_cl_device *cl_device =dev_get_drvdata (device); +struct ishtp_cl_device *cl_device =ishtp_dev_to_cl_device (device);struct ishtp_cl *cros_ish_cl =ishtp_get_drvdata (cl_device);struct ishtp_cl_data *client_data =ishtp_get_client_data (cros_ish_cl);@@ -722,7 +722,7 @@ static int __maybe_unused cros_ec_ishtp_suspend(struct device *device)*/ static int __maybe_unused cros_ec_ishtp_resume (struct device *device) { -struct ishtp_cl_device *cl_device =dev_get_drvdata (device); +struct ishtp_cl_device *cl_device =ishtp_dev_to_cl_device (device);struct ishtp_cl *cros_ish_cl =ishtp_get_drvdata (cl_device);struct ishtp_cl_data *client_data =ishtp_get_client_data (cros_ish_cl);