Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752808AbbHRMNl (ORCPT ); Tue, 18 Aug 2015 08:13:41 -0400 Received: from mga02.intel.com ([134.134.136.20]:53696 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751295AbbHRMNk (ORCPT ); Tue, 18 Aug 2015 08:13:40 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,701,1432623600"; d="scan'208";a="544038758" Message-ID: <55D32258.4060706@intel.com> Date: Tue, 18 Aug 2015 15:17:28 +0300 From: Mathias Nyman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Roger Quadros CC: balbi@ti.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/5] usb: xhci: exit early in xhci_setup_device() if we're halted or dying References: <1439894354-6160-1-git-send-email-rogerq@ti.com> <1439894354-6160-6-git-send-email-rogerq@ti.com> In-Reply-To: <1439894354-6160-6-git-send-email-rogerq@ti.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 610 Lines: 19 On 18.08.2015 13:39, Roger Quadros wrote: > During quick plug/removal of OTG adapter during dual-role testing > it can happen that xhci_alloc_device() is called for the newly > detected device after the DRD library has called xhci_stop to > remove the HCD. > > If that is the case, just fail early to prevent the following warning. > Thanks, applied -Mathias -- 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/