Commit ce97126d authored by Alexander Usyskin's avatar Alexander Usyskin Committed by Daniele Ceraolo Spurio

mei: gsc: setup char driver alive in spite of firmware handshake failure

Setup char device in spite of firmware handshake failure.
In order to provide host access to the firmware status registers and other
information required for the manufacturing process.
Signed-off-by: default avatarAlexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: default avatarTomas Winkler <tomas.winkler@intel.com>
Reviewed-by: default avatarDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: default avatarDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220419193314.526966-4-daniele.ceraolospurio@intel.com
parent a98c30fd
...@@ -79,11 +79,12 @@ static int mei_gsc_probe(struct auxiliary_device *aux_dev, ...@@ -79,11 +79,12 @@ static int mei_gsc_probe(struct auxiliary_device *aux_dev,
pm_runtime_set_active(device); pm_runtime_set_active(device);
pm_runtime_enable(device); pm_runtime_enable(device);
if (mei_start(dev)) { /* Continue to char device setup in spite of firmware handshake failure.
dev_err(device, "init hw failure.\n"); * In order to provide access to the firmware status registers to the user
ret = -ENODEV; * space via sysfs.
goto irq_err; */
} if (mei_start(dev))
dev_warn(device, "init hw failure.\n");
pm_runtime_set_autosuspend_delay(device, MEI_GSC_RPM_TIMEOUT); pm_runtime_set_autosuspend_delay(device, MEI_GSC_RPM_TIMEOUT);
pm_runtime_use_autosuspend(device); pm_runtime_use_autosuspend(device);
...@@ -97,7 +98,6 @@ static int mei_gsc_probe(struct auxiliary_device *aux_dev, ...@@ -97,7 +98,6 @@ static int mei_gsc_probe(struct auxiliary_device *aux_dev,
register_err: register_err:
mei_stop(dev); mei_stop(dev);
irq_err:
devm_free_irq(device, hw->irq, dev); devm_free_irq(device, hw->irq, dev);
err: err:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment