From patchwork Wed Apr 6 14:01:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 65184 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1071327lbc; Wed, 6 Apr 2016 07:01:52 -0700 (PDT) X-Received: by 10.98.33.91 with SMTP id h88mr38052458pfh.54.1459951312320; Wed, 06 Apr 2016 07:01:52 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i14si4867778pat.47.2016.04.06.07.01.52; Wed, 06 Apr 2016 07:01:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752105AbcDFOBu (ORCPT + 29 others); Wed, 6 Apr 2016 10:01:50 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:58442 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751153AbcDFOBs (ORCPT ); Wed, 6 Apr 2016 10:01:48 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id u36E1hf2012640; Wed, 6 Apr 2016 09:01:43 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id u36E1hiD021674; Wed, 6 Apr 2016 09:01:43 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.224.2; Wed, 6 Apr 2016 09:01:42 -0500 Received: from lta0400828d.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id u36E1fTY018162; Wed, 6 Apr 2016 09:01:41 -0500 From: Roger Quadros To: , CC: , Roger Quadros Subject: [PATCH] extcon: usb-gpio: Don't miss event during suspend/resume Date: Wed, 6 Apr 2016 17:01:39 +0300 Message-ID: <1459951299-20578-1-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 2.5.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pin state might have changed during suspend/resume while our interrupts were disabled. Scan for change during resume. Signed-off-by: Roger Quadros --- drivers/extcon/extcon-usb-gpio.c | 1 + 1 file changed, 1 insertion(+) -- 2.5.0 diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c index 2b2fecf..20175ec 100644 --- a/drivers/extcon/extcon-usb-gpio.c +++ b/drivers/extcon/extcon-usb-gpio.c @@ -192,6 +192,7 @@ static int usb_extcon_resume(struct device *dev) } enable_irq(info->id_irq); + usb_extcon_detect_cable(&info->wq_detcable.work); return ret; }