]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
extcon: cable-xlate: scan cables after 1 sec of extcon init
authorVenkat Reddy Talla <vreddytalla@nvidia.com>
Tue, 10 Feb 2015 11:23:18 +0000 (16:53 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Thu, 12 Feb 2015 07:12:09 +0000 (23:12 -0800)
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>
drivers/extcon/extcon-cable-xlate.c

index f83e5e384066da116b1a9676a0f01290dedd0b80..57eea574725899e45f865476b8342ae875478d7e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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>
  *
@@ -209,6 +209,7 @@ static void ecx_cable_state_update_work(struct work_struct *work)
                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);
 }