Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp800890imu; Tue, 11 Dec 2018 07:48:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/WOhYmtGBGTWRmch0+fCkjaVaPxep2IlALeimjI2s5vgjJaXOqXk595XfQ3O8ahWLpoCb9v X-Received: by 2002:a63:fb46:: with SMTP id w6mr15191918pgj.321.1544543296788; Tue, 11 Dec 2018 07:48:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544543296; cv=none; d=google.com; s=arc-20160816; b=kNGddq0VysQ71rR7092hMxhYzVzrFtxyT16cQSYxeKSLjOTXPuE+HkSTiMU5swgJ0Z p2gNLJOgfGmLUStvmm6wncr6AGpOec/YNkFyNE92kcNAfbSzNkQOk198im1TauYUzkGB zBe3KNCe3DLskNCCInJ/lY5dk6AuOBX9+td/vYhB6RK/RIgsN0u86DBlPN0WAfA07IU1 w8Bpr3y9XW99XRvm5Dcd5NH/0ArEEyGfSIzsPfpJbK4wowpl5O4N4AIeW2gGdvuEUzlz uz9lKaSekf5aD0Y5EB7iZEg/dxEY/VYZdNWRfwas931LBznZ86Oz8BQlmR3HDrltou2y nUkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=+ZuleUdwl3wr/fjG0NFSIlYObOyZI5WPwYdPf6cRpNw=; b=jnDyzCu5+2xo8iVUKl+ArfLm71Ik+4KZYbBOj5bjF8l08vlDNLP+zo6WcO0gaxdJEM gUceeOrqU8QkGAToU4mHXJhbrsig4u9goPP/3TmIrIAFgbMo1sgrATtddCN0slcuwbKa lLAG9qjqCYgbkiOltWS5k18Br2Q+eB22lWstwsucpPgjhXVRKI21zjMEaBzUpOeA2Iho vnHaKRdgM14nZYCKQPgdckG0OGb+FnpmYdr0oRYPoRonNRu4VL3edU+0LRnpW55e8Hl9 jsBWi9Xl3x8fWBPnhX+LVQ4Gtezskr12QDqmgSZ0y7XckvsDWUuCXCblUy2dkDV1wmXv c7bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="dtpakc/j"; 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 d1si12758795pla.412.2018.12.11.07.48.02; Tue, 11 Dec 2018 07:48:16 -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=@kernel.org header.s=default header.b="dtpakc/j"; 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 S1728333AbeLKPqZ (ORCPT + 99 others); Tue, 11 Dec 2018 10:46:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:34758 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728295AbeLKPqV (ORCPT ); Tue, 11 Dec 2018 10:46:21 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A631C20870; Tue, 11 Dec 2018 15:46:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543181; bh=jM1ZnS6O/x00Y+CTfJujThYY02CVMuhWjH+s5A3xR/A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dtpakc/jpGRgBjURp89z2XVamY98DB/oWFhRdm1BLsvWRet1T+DQ7obn/ct0tKfkZ l3KfqL2nad+PO0ofLOwsUMHQX71RbGCLyKqe5HNz28kVFn2M0tLPJrZcKMksTYozSe +ZENHZfiZRHJHnSQYbcK1TWXjv50ryCo0U1ORXYw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ludovic Desroches , Richard Genoud , Vinod Koul Subject: [PATCH 4.4 16/91] dmaengine: at_hdmac: fix module unloading Date: Tue, 11 Dec 2018 16:40:35 +0100 Message-Id: <20181211151607.203912382@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151606.026852373@linuxfoundation.org> References: <20181211151606.026852373@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Richard Genoud commit 77e75fda94d2ebb86aa9d35fb1860f6395bf95de upstream. of_dma_controller_free() was not called on module onloading. This lead to a soft lockup: watchdog: BUG: soft lockup - CPU#0 stuck for 23s! Modules linked in: at_hdmac [last unloaded: at_hdmac] when of_dma_request_slave_channel() tried to call ofdma->of_dma_xlate(). Cc: stable@vger.kernel.org Fixes: bbe89c8e3d59 ("at_hdmac: move to generic DMA binding") Acked-by: Ludovic Desroches Signed-off-by: Richard Genoud Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/dma/at_hdmac.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c @@ -2152,6 +2152,8 @@ static int at_dma_remove(struct platform struct resource *io; at_dma_off(atdma); + if (pdev->dev.of_node) + of_dma_controller_free(pdev->dev.of_node); dma_async_device_unregister(&atdma->dma_common); dma_pool_destroy(atdma->memset_pool);