ASoC: wcd9xxx: check gpio pinctrl state in wcd9xxx_reset
As different kinds of gpio may be used for wcd codec reset. Check the common pinctrl state instead of the gpio hw state in wcd9xxx_reset. CRs-Fixed: 1115065 Change-Id: Ife3578a778b0612767facbc79c126be145035cde Signed-off-by: Walter Yang <yandongy@codeaurora.org>
This commit is contained in:
parent
ce6b9b7308
commit
6250fc8f7d
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -669,7 +669,7 @@ int wcd9xxx_reset(struct device *dev)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
value = msm_cdc_get_gpio_state(wcd9xxx->wcd_rst_np);
|
||||
value = msm_cdc_pinctrl_get_state(wcd9xxx->wcd_rst_np);
|
||||
if (value > 0) {
|
||||
wcd9xxx->avoid_cdc_rstlow = 1;
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue