Received: by 10.223.185.116 with SMTP id b49csp6626864wrg; Thu, 8 Mar 2018 10:25:42 -0800 (PST) X-Google-Smtp-Source: AG47ELswU/v6qpWvDpR7WKfAyA2eAjvWhPA3gzX9CndsEaNu7PsSRWQdTeCPOaSRR6zjzF8yl+HH X-Received: by 10.98.82.144 with SMTP id g138mr26806283pfb.239.1520533542449; Thu, 08 Mar 2018 10:25:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520533542; cv=none; d=google.com; s=arc-20160816; b=z/cMzrirzKUns/082Hq75tEKoTici+kDihhE5m/ktop2IZsVp7yGgFq3GdnNL/SfX/ 06ixQLXmHS4rQ/LbXkO6QA/oCVSLhaeViCR5wV4hKUxGipvvuVwnC7pln7tH8bGjFRkR /Nz5qI3QX/iOVWDr734SwwG8+zh0+WNAEbmqBxDd2ToQsUWEqiJgNFtUzN+ASCgm9Jku 9r1acZsGOAQ5uZB2F6BseEw/wVOG6w7cKhylo6DnHxtf1B/kUOPxQSHXHxAqMDOZjmyt 5rbFT3fBsILnW8Cbmz9dO3igrsFmh9hRH0SXgdldLecpCDWR49Ra3pxXp1hoGp33Z2bn JTMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=UpRwYmqjcUOg+AoiVSryBY8RGl4ND8C4O253CXlkL7I=; b=0VQY8HfcgsyvGsa5wvnapJFQcHi2fVMquhLBCSJAQCDRN8/NmSdLD2zfFySIqv/wf1 nk9p2KW8KAXjBB9jFVwGsFdCw+cg1cz9wQLyPAoxidm2xnfKLNBOEw/dvEdyRJ5jYdU0 JWoxM5rD2uNigQ7/1P201sUXqehA3H00rRCPmL5JZQdXGFFxuuU+ixSHsDr4VXOWa0kw ZYCBa7t/M5jlV2Cxyom3NM9+mKxlBmEGQHnA4W2v8tFkPKBB5eoXqzJpHObSaqz5hNzo T5r6AAl+/S+IBlxgpXge/r4LVE7XHItXt31fj2uyhqqIuCRHo1bmo2byAPRTjCLo+W23 O44A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=R4tCNak2; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z7si16067101pfg.278.2018.03.08.10.25.27; Thu, 08 Mar 2018 10:25:42 -0800 (PST) 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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=R4tCNak2; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756147AbeCHSWm (ORCPT + 99 others); Thu, 8 Mar 2018 13:22:42 -0500 Received: from lelnx193.ext.ti.com ([198.47.27.77]:50438 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754458AbeCHSWj (ORCPT ); Thu, 8 Mar 2018 13:22:39 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w28IMcUH012784; Thu, 8 Mar 2018 12:22:38 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1520533358; bh=kJW5tyFPikT2GAtEcSCT9y6yrGovdK9+RFlM9YwHjGw=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=R4tCNak2xWc5Hs4i3n981RS9bCckDKmAQ7/7WGdvdcBsPIpaZwXx6jJtwfz6zqvyV hWAOIFk+OIQUtvpFAdXa6nily02S/ycWXVFnkegNFKmL0C0Bmj8D4GmrmNvpAU5qoJ pvpQ2V0N5+jdOi7EmWOE5yNr85+z9DTv+v39Qvoo= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w28IMcbb004874; Thu, 8 Mar 2018 12:22:38 -0600 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 8 Mar 2018 12:22:38 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 8 Mar 2018 12:22:38 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w28IMccG009616; Thu, 8 Mar 2018 12:22:38 -0600 Date: Thu, 8 Mar 2018 12:22:38 -0600 From: Bin Liu To: Merlijn Wajer CC: , , Greg Kroah-Hartman , , Subject: Re: [RFC PATCH] usb: musb: Fix external abort in musb_remove Message-ID: <20180308182238.GI14921@uda0271908> Mail-Followup-To: Bin Liu , Merlijn Wajer , ivo.g.dimitrov.75@gmail.com, linux-omap@vger.kernel.org, Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180308093121.11943-1-merlijn@wizzup.org> <20180308164613.GH14921@uda0271908> <1b280405-5af6-ef64-f8a2-cc8865487e0a@wizzup.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1b280405-5af6-ef64-f8a2-cc8865487e0a@wizzup.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 08, 2018 at 07:00:16PM +0100, Merlijn Wajer wrote: > Hi, > > On 08/03/18 17:46, Bin Liu wrote: > > > > No need to flush, the work is already cancelled at this point. > > > >> + > >> musb_writeb(musb->mregs, MUSB_DEVCTL, 0); > >> + musb_platform_exit(musb); > > > > This can be move down to out side of holding the spinlock, > > > >> spin_unlock_irqrestore(&musb->lock, flags); > > > > to here. > > Thank you - with I've verified that it works with these changes. I'm > surprised, because I believe that I had tried this already. I must have > missed a step in my testing-routine. > > I will send a patch shortly. Thank you for fixing this up. Regards, -Bin.