summaryrefslogtreecommitdiff
path: root/drivers/mfd/m4sensorhub-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mfd/m4sensorhub-core.c')
-rw-r--r--drivers/mfd/m4sensorhub-core.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mfd/m4sensorhub-core.c b/drivers/mfd/m4sensorhub-core.c
index f6f56229ac0..168b59f7bd0 100644
--- a/drivers/mfd/m4sensorhub-core.c
+++ b/drivers/mfd/m4sensorhub-core.c
@@ -194,7 +194,10 @@ static int m4sensorhub_hw_init(struct m4sensorhub_data *m4sensorhub,
gpio, err);
goto error_reset;
}
- gpio_direction_output(gpio, 1);
+ /* hold M4 reset till M4 load firmware procduce starts
+ * this is needed for snowflake touch determination
+ */
+ gpio_direction_output(gpio, 0);
m4sensorhub->hwconfig.reset_gpio = gpio;
gpio = of_get_named_gpio_flags(node, "mot,wake-gpio", 0, NULL);
@@ -237,8 +240,6 @@ static int m4sensorhub_hw_init(struct m4sensorhub_data *m4sensorhub,
gpio_direction_output(gpio, 0);
m4sensorhub->hwconfig.mpu_9150_en_gpio = gpio;
- m4sensorhub_hw_reset(m4sensorhub);
-
return 0;
error_enable: