Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751845AbbHRIEn (ORCPT ); Tue, 18 Aug 2015 04:04:43 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:33640 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751182AbbHRIEh (ORCPT ); Tue, 18 Aug 2015 04:04:37 -0400 Message-ID: <1439885072.2328.1.camel@mm-sol.com> Subject: Re: repeat... Re: BUG: usb: phy: msm: problem with EPROBE defer and extcon cleanup From: "Ivan T. Ivanov" To: Tim Bird Cc: Felipe Balbi , "linux-kernel@vger.kernel.org" , Linux USB List , "linux-arm-msm@vger.kernel.org" , Bjorn Andersson Date: Tue, 18 Aug 2015 11:04:32 +0300 In-Reply-To: <55D2723F.4020709@sonymobile.com> References: <55D27197.8010403@sonymobile.com> <55D2723F.4020709@sonymobile.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.13.7-fta1.2~trusty Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1282 Lines: 28 On Mon, 2015-08-17 at 16:46 -0700, Tim Bird wrote: > Sorry - I mistyped Ivan's e-mail the first time. > > On 08/17/2015 04:43 PM, Tim Bird wrote: > > Ivan, > > > > I'm seeing a bug in the phy-msm-usb.c code, when I get an EPROBE defer during probing the driver. > > The code is statically linked in the kernel, and the dts for my board is specifying an extcon phandle > > for the ID pin. > > > > Below is a fragment of the kernel output for a boot of this code. Messages prefixed with TRB > > are my own debug printks. Note that the notifier block (at ee23513c) that gets registered > > with extcon before the first probe failure, ultimately gets used during an ID pin event > > (status change) by raw_notifier_call_chain(). This notifier block should be unregistered > > if the probe fails, so that only the second one registered is on the call chain. Right, I have missed to send one patch, sorry. Please, could you try this one [1]. Regards, Ivan [1] https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg957405.html -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/