Received: by 10.192.165.148 with SMTP id m20csp577007imm; Wed, 25 Apr 2018 04:34:11 -0700 (PDT) X-Google-Smtp-Source: AIpwx49FeK9fwKFugbc/3TI/iRniKXkDaEBl+tkMoXCxDrbvDNDKHJcUKulF/Q/NtKOiSKYm8Y5w X-Received: by 10.99.8.135 with SMTP id 129mr17791370pgi.17.1524656051154; Wed, 25 Apr 2018 04:34:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524656051; cv=none; d=google.com; s=arc-20160816; b=eEtlj4JqLkqV5KM4VtvURtbUyhkv4aV+jgDDb1vn3UZG6pPntWrG68BN4ilbdmrZ1p YFFW0Kfr32jBcW9xz3foW59OXqC5jNhmJ16xQwBkh7+180IS1ORkPm7XA3MlM/OD20Hx 7RkbhtnCL1rpHo9vteNE+T2sOWva+YpacSYCAY470KKrCEtL8d2dnx3FgD0o7l4OHzyw EMJq3K6xzuPjmYZTSY5BgCHy5QMieSx1iVukxQRVE3x0Fofs1u/Vn7kUO2WAYtC6HdE0 Nq8+29olFjxb64aaPgJAGPpTav8zWKgBjYqzEkd3j00ncuD8Qv8pueaXa8ZwhBIJB4ei K08Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=6T0igkkuRGX655TtkJaraG5OR0DTCLPGXY5EnZAv/Cg=; b=DnwRIyeanMTHUJsoeHfzRSH3xFGbAm5I/f5YbcJO92oUyj72eD/njh8fKIBMVqjqXf oqjo5rKwvhdgaxc1jgaFQU5HiqsZ9LGO50Piy7mSEVSwttV8qoJpaHASXtHwVHkV149l fNy9dlbF5uwk9nbY+4fXDCJ5iLQkXM4x50sy/hUv9Djcm1arNkytQJNDfG5AVV4oOT4V BevKMmdLvnn30Q+nPVygv8nvaCbsV66uzgV3u5aIhi+I0n6K88fAgx/CeWtkjutDwbAe NBVwtoK3LqNYk+FowG0mDJnU+FQ553zSPzJOZw/8c932N9Nehpm5nigTv/10XfngrIZP OL3Q== 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 o12-v6si16063255plk.264.2018.04.25.04.33.56; Wed, 25 Apr 2018 04:34:11 -0700 (PDT) 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 S1752881AbeDYKhV (ORCPT + 99 others); Wed, 25 Apr 2018 06:37:21 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51076 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752928AbeDYKhQ (ORCPT ); Wed, 25 Apr 2018 06:37:16 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 663F3480; Wed, 25 Apr 2018 10:37:15 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Merlijn Wajer , Bin Liu Subject: [PATCH 4.14 014/183] usb: musb: Fix external abort in musb_remove on omap2430 Date: Wed, 25 Apr 2018 12:33:54 +0200 Message-Id: <20180425103243.184020258@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425103242.532713678@linuxfoundation.org> References: <20180425103242.532713678@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Merlijn Wajer commit 94e46a4f2d5eb14059e42f313c098d4854847376 upstream. This fixes an oops on unbind / module unload (on the musb omap2430 platform). musb_remove function now calls musb_platform_exit before disabling runtime pm. Signed-off-by: Merlijn Wajer Signed-off-by: Bin Liu Signed-off-by: Greg Kroah-Hartman --- drivers/usb/musb/musb_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -2498,11 +2498,11 @@ static int musb_remove(struct platform_d musb_disable_interrupts(musb); musb_writeb(musb->mregs, MUSB_DEVCTL, 0); spin_unlock_irqrestore(&musb->lock, flags); + musb_platform_exit(musb); pm_runtime_dont_use_autosuspend(musb->controller); pm_runtime_put_sync(musb->controller); pm_runtime_disable(musb->controller); - musb_platform_exit(musb); musb_phy_callback = NULL; if (musb->dma_controller) musb_dma_controller_destroy(musb->dma_controller);