rt1308-sdw.c (942baad211336efefb93a8369478888ab845c450) | rt1308-sdw.c (30e102dab5fad1db71684f8ac5e1ac74e49da06d) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2// 3// rt1308-sdw.c -- rt1308 ALSA SoC audio driver 4// 5// Copyright(c) 2019 Realtek Semiconductor Corp. 6// 7// 8#include <linux/delay.h> --- 695 unchanged lines hidden (view full) --- 704#define RT1308_PROBE_TIMEOUT 5000 705 706static int __maybe_unused rt1308_dev_resume(struct device *dev) 707{ 708 struct sdw_slave *slave = dev_to_sdw_dev(dev); 709 struct rt1308_sdw_priv *rt1308 = dev_get_drvdata(dev); 710 unsigned long time; 711 | 1// SPDX-License-Identifier: GPL-2.0 2// 3// rt1308-sdw.c -- rt1308 ALSA SoC audio driver 4// 5// Copyright(c) 2019 Realtek Semiconductor Corp. 6// 7// 8#include <linux/delay.h> --- 695 unchanged lines hidden (view full) --- 704#define RT1308_PROBE_TIMEOUT 5000 705 706static int __maybe_unused rt1308_dev_resume(struct device *dev) 707{ 708 struct sdw_slave *slave = dev_to_sdw_dev(dev); 709 struct rt1308_sdw_priv *rt1308 = dev_get_drvdata(dev); 710 unsigned long time; 711 |
712 if (!rt1308->hw_init) | 712 if (!rt1308->first_hw_init) |
713 return 0; 714 715 if (!slave->unattach_request) 716 goto regmap_sync; 717 718 time = wait_for_completion_timeout(&slave->initialization_complete, 719 msecs_to_jiffies(RT1308_PROBE_TIMEOUT)); 720 if (!time) { --- 32 unchanged lines hidden --- | 713 return 0; 714 715 if (!slave->unattach_request) 716 goto regmap_sync; 717 718 time = wait_for_completion_timeout(&slave->initialization_complete, 719 msecs_to_jiffies(RT1308_PROBE_TIMEOUT)); 720 if (!time) { --- 32 unchanged lines hidden --- |