lkml.org 
[lkml]   [2017]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 15/19] ASoC: tlv320aic31xx: Reset registers during power up
On Wed, Nov 29, 2017 at 03:32:56PM -0600, Andrew F. Davis wrote:

> + gpiod_set_value(aic31xx->gpio_reset, 1);
> + ndelay(10); /* At least 10ns */
> + gpiod_set_value(aic31xx->gpio_reset, 0);

_cansleep(), this isn't being done from interrupt context.

> + } else {
> + ret = regmap_write(aic31xx->regmap, AIC31XX_RESET, 1);
> + if (ret < 0)
> + dev_err(aic31xx->dev, "Could not reset device\n");

Print the error to help people doing debug.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2017-12-01 14:37    [W:0.260 / U:0.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site