Device state is updated incorrectly during codec probe when
the wsa881x soundwire slave device is in suspend state, resulting
in register read/write failures. Update the device state during
device probe instead of codec probe.
Change-Id: I46afe2a08495c2ed06806b0568b1c44a6ffd947f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
"%s.%x", "wsatz", (u8)dev->addr);
wsa881x->bg_cnt = 0;
wsa881x->clk_cnt = 0;
- wsa881x->state = WSA881X_DEV_UP;
wsa881x->tz_pdata.codec = codec;
wsa881x->tz_pdata.wsa_temp_reg_read = wsa881x_temp_reg_read;
wsa881x_init_thermal(&wsa881x->tz_pdata);
goto err;
}
wsa881x_gpio_ctrl(wsa881x, true);
+ wsa881x->state = WSA881X_DEV_UP;
if (!debugfs_wsa881x_dent) {
dbgwsa881x = wsa881x;