Received: by 10.223.185.116 with SMTP id b49csp6601249wrg; Thu, 8 Mar 2018 10:02:27 -0800 (PST) X-Google-Smtp-Source: AG47ELs5uoLbxEjDhqbL9Qa1No95JEL7UVLBvWVEIQA6bBXAP6HzzT0M2jxObWgYiIfBmj0moN1j X-Received: by 10.98.253.17 with SMTP id p17mr27151602pfh.105.1520532147477; Thu, 08 Mar 2018 10:02:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520532147; cv=none; d=google.com; s=arc-20160816; b=uUFYDQuse4gMUTRK4/4xXeR2zLRp4tits5lWKyomlqtGiznpVqJ1px30HAcHrHTMLO MPwrn8ibNbQeLnKSiclkMPKOEJqbprzPjqpp8qxC4Mwc4sElTANH3CU5r4MyS7Tb919i Lef87L65z+BF+R2AT5vH709ZorK8OVRTgJPeK7qdPNm37OwDtiKGkSjpmBErbT+uUdyU 9nbpCrFV3enmQtbiIpBNbN+Np6SrWgcxz4HKGNTwcsRdUmSEhEpy/v/RHvmKMnd/HGkW UYjWulFUdNhpZ0Da2JKbrT3VqEan4Uo1xGGljTtxbXMyLo2bFwTD2FscXMTobks5JD4/ jZFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:arc-authentication-results; bh=LamSXoJ1+NDUlwQ6VHpmyvlmSlBWqu9iJolAb4DHO1w=; b=tiGLtcY63ekX4Z+X+sYKyHSdleyyDslexYvwe8HfECH0eR2tGLrudiIK8Jjgs6nX31 67QU8Onh8aOkZnIlWAbxeRoPQ8aP7E18PXzPznupuCgqDSi8LpXbUhRzuH/ngE2Zu4gq 3Qhu3BqtkbghcYhgWaML3yCMz9lAd5Rvdu4EWVWJ4foCy7JM8YliaEfoY5lL5PagT+v1 u7a8g9I3y2r7EBXUGdqXs5VjXl5QEc7Hl3ByHDwMMnq+Gymhu75VXqFVG0C6flLV6IVD qzGbUK0lSfexZhxBz35uPdYFgMamkP5jei5B3oELwJqVbtv3kMEs6QWHnqPXWQ1O/UZa HjrA== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b100-v6si15488889pli.417.2018.03.08.10.02.10; Thu, 08 Mar 2018 10:02:27 -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; 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 S936121AbeCHSAe (ORCPT + 99 others); Thu, 8 Mar 2018 13:00:34 -0500 Received: from nala.villavu.com ([188.165.243.101]:47099 "EHLO nala.villavu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933700AbeCHSAc (ORCPT ); Thu, 8 Mar 2018 13:00:32 -0500 Received: from a82-161-36-93.adsl.xs4all.nl ([82.161.36.93] helo=[0.0.0.0]) by nala.villavu.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1etzq7-00007Z-Kb; Thu, 08 Mar 2018 19:00:31 +0100 Subject: Re: [RFC PATCH] usb: musb: Fix external abort in musb_remove To: Bin Liu , 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> From: Merlijn Wajer Message-ID: <1b280405-5af6-ef64-f8a2-cc8865487e0a@wizzup.org> Date: Thu, 8 Mar 2018 19:00:16 +0100 User-Agent: Mozilla/5.0 (X11; Linux armv7l; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180308164613.GH14921@uda0271908> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hZm75pODmaTlC2rCo1648J4tazCEjJbCy" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --hZm75pODmaTlC2rCo1648J4tazCEjJbCy Content-Type: multipart/mixed; boundary="Erz2WJu99MJKUZTagPtI0FRF5jcanhWAv"; protected-headers="v1" From: Merlijn Wajer To: Bin Liu , ivo.g.dimitrov.75@gmail.com, linux-omap@vger.kernel.org, Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <1b280405-5af6-ef64-f8a2-cc8865487e0a@wizzup.org> Subject: Re: [RFC PATCH] usb: musb: Fix external abort in musb_remove References: <20180308093121.11943-1-merlijn@wizzup.org> <20180308164613.GH14921@uda0271908> In-Reply-To: <20180308164613.GH14921@uda0271908> --Erz2WJu99MJKUZTagPtI0FRF5jcanhWAv Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable Hi, On 08/03/18 17:46, Bin Liu wrote: > No need to flush, the work is already cancelled at this point. >=20 >> + >> musb_writeb(musb->mregs, MUSB_DEVCTL, 0); >> + musb_platform_exit(musb); >=20 > This can be move down to out side of holding the spinlock, >=20 >> spin_unlock_irqrestore(&musb->lock, flags); >=20 > 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. Cheers, Merlijn --Erz2WJu99MJKUZTagPtI0FRF5jcanhWAv-- --hZm75pODmaTlC2rCo1648J4tazCEjJbCy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQRM5LT7NbLF9yb6a/UGN09rynK8WgUCWqF6MAAKCRAGN09rynK8 WnwlAQDgI+riQNOpGw/F6Y5s/lB5gMX/BlHIaF/xZYU0qhhGHAD/aH7m4PUJjiXH vhZzxUJi3W4oTueuQMh2b5UeRmpG/AY= =A+1J -----END PGP SIGNATURE----- --hZm75pODmaTlC2rCo1648J4tazCEjJbCy--