FAILED: patch "[PATCH] platform/chrome: cros_ec_ishtp: fix crash during suspend" failed to apply to 5.2-stable tree
[email protected]
maintainerThe patch below does not apply to the 5.2-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 9cdde85804833af77c6afbf7c53f0d959c42eb9f Mon Sep 17 00:00:00 2001
From: Hyungwoo Yang <[email protected]>
Date: Wed, 29 May 2019 21:03:54 -0700
Subject: [PATCH] platform/chrome: cros_ec_ishtp: 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.
Cc <[email protected]> # 5.2.x: b12bbdc5: HID: intel-ish-hid: fix wrong driver_data usage
Signed-off-by Hyungwoo Yang <[email protected]>
Signed-off-by Enric Balletbo i Serra <[email protected]>
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);