Merge "disp: msm: dp: improve interop experience for fast hotplug scenarios"

This commit is contained in:
qctecmdr
2020-10-06 01:26:25 -07:00
committed by Gerrit - the friendly Code Review server
commit 74f9934cfc
3 muutettua tiedostoa jossa 82 lisäystä ja 3 poistoa

Näytä tiedosto

@@ -2277,6 +2277,37 @@ static int dp_debug_init_feature_toggle(struct dp_debug_private *debug,
return rc;
}
static int dp_debug_init_configs(struct dp_debug_private *debug,
struct dentry *dir)
{
int rc = 0;
struct dentry *file;
file = debugfs_create_ulong("connect_notification_delay_ms", 0644, dir,
&debug->dp_debug.connect_notification_delay_ms);
if (IS_ERR_OR_NULL(file)) {
rc = PTR_ERR(file);
DP_ERR("[%s] debugfs connect_notification_delay_ms failed, rc=%d\n",
DEBUG_NAME, rc);
return rc;
}
debug->dp_debug.connect_notification_delay_ms =
DEFAULT_CONNECT_NOTIFICATION_DELAY_MS;
file = debugfs_create_u32("disconnect_delay_ms", 0644, dir,
&debug->dp_debug.disconnect_delay_ms);
if (IS_ERR_OR_NULL(file)) {
rc = PTR_ERR(file);
DP_ERR("[%s] debugfs disconnect_delay_ms failed, rc=%d\n",
DEBUG_NAME, rc);
return rc;
}
debug->dp_debug.disconnect_delay_ms = DEFAULT_DISCONNECT_DELAY_MS;
return rc;
}
static int dp_debug_init(struct dp_debug *dp_debug)
{
int rc = 0;
@@ -2343,6 +2374,10 @@ static int dp_debug_init(struct dp_debug *dp_debug)
if (rc)
goto error_remove_dir;
rc = dp_debug_init_configs(debug, dir);
if (rc)
goto error_remove_dir;
return 0;
error_remove_dir: