From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com ([192.55.52.88]:50216 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934300AbdGTLJI (ORCPT ); Thu, 20 Jul 2017 07:09:08 -0400 Subject: Re: [PATCH 1/1] usb: xhci: fix spinlock recursion for USB2 test mode To: Peter Chen , mathias.nyman@intel.com References: <1500449288-21009-1-git-send-email-peter.chen@nxp.com> Cc: linux-usb@vger.kernel.org, stable@vger.kernel.org From: Mathias Nyman Message-ID: <5970900F.5000006@linux.intel.com> Date: Thu, 20 Jul 2017 14:12:15 +0300 MIME-Version: 1.0 In-Reply-To: <1500449288-21009-1-git-send-email-peter.chen@nxp.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: On 19.07.2017 10:28, Peter Chen wrote: > Both xhci_hub_control and xhci_disable_slot tries to hold spinlock, the > spinlock recursion occurs when enters USB2 test mode. Fix it by unlock > spinlock before calling xhci_disable_slot. > > Cc: > Fixes: 0f1d832ed1fb ("usb: xhci: Add port test modes support for usb2") > Signed-off-by: Peter Chen Thanks, adding -Mathias