while device booting scan cable states with 1 sec delay after
extcon xlate initialization to avoid reading incorrect cable
state.
Bug
200074493
Change-Id: I7fc15eb7a8a062ce69489f54cff6384960d6b260
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/696340
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
/*
* extcon-cable-xlate: Cable translator based on different cable states.
*
- * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
*
* Author: Laxman Dewangan <ldewangan@nvidia.com>
*
dev_info(ecx->dev, "Extcon Init success\n");
ecx->extcon_init_done = true;
schedule_delayed_work(&ecx->work, msecs_to_jiffies(1000));
+ return;
}
ecx_attach_cable(ecx);
}