rt5682-sdw.c (cf36ae3e5802716617b9e4d902a31048240396b0) rt5682-sdw.c (917df025e1db1286afb6e46914ae3e8b40241568)
1// SPDX-License-Identifier: GPL-2.0-only
2//
3// rt5682-sdw.c -- RT5682 ALSA SoC audio component driver
4//
5// Copyright 2019 Realtek Semiconductor Corp.
6// Author: Oder Chiou <oder_chiou@realtek.com>
7//
8

--- 779 unchanged lines hidden (view full) ---

788
789 if (!slave->unattach_request)
790 goto regmap_sync;
791
792 time = wait_for_completion_timeout(&slave->initialization_complete,
793 msecs_to_jiffies(RT5682_PROBE_TIMEOUT));
794 if (!time) {
795 dev_err(&slave->dev, "Initialization not complete, timed out\n");
1// SPDX-License-Identifier: GPL-2.0-only
2//
3// rt5682-sdw.c -- RT5682 ALSA SoC audio component driver
4//
5// Copyright 2019 Realtek Semiconductor Corp.
6// Author: Oder Chiou <oder_chiou@realtek.com>
7//
8

--- 779 unchanged lines hidden (view full) ---

788
789 if (!slave->unattach_request)
790 goto regmap_sync;
791
792 time = wait_for_completion_timeout(&slave->initialization_complete,
793 msecs_to_jiffies(RT5682_PROBE_TIMEOUT));
794 if (!time) {
795 dev_err(&slave->dev, "Initialization not complete, timed out\n");
796 sdw_show_ping_status(slave->bus, true);
797
796 return -ETIMEDOUT;
797 }
798
799regmap_sync:
800 slave->unattach_request = 0;
801 regcache_cache_only(rt5682->regmap, false);
802 regcache_sync(rt5682->regmap);
803

--- 24 unchanged lines hidden ---
798 return -ETIMEDOUT;
799 }
800
801regmap_sync:
802 slave->unattach_request = 0;
803 regcache_cache_only(rt5682->regmap, false);
804 regcache_sync(rt5682->regmap);
805

--- 24 unchanged lines hidden ---