Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp514390ybx; Tue, 5 Nov 2019 01:02:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzEBQP7SDFdiveTYRDLxgeZUAHPUTzEBF0MTqvL5TRyR8d5KECwt3F8sfWwUhHc0bA+O1g9 X-Received: by 2002:a50:f987:: with SMTP id q7mr31598126edn.205.1572944541967; Tue, 05 Nov 2019 01:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572944541; cv=none; d=google.com; s=arc-20160816; b=YDHo+57knl4l3/t0JCLD6d5opxjrxDP+k2ucl6AJnyu0PalnDuOcE/AYMrF44tzTkY YCRT22NCPjXZ1b2vVtMB8PdQjoohhkkMA5n+aASf109yjhV9K517nUAUCDtnIucQUNp7 bJVXFawV+L6DjEWP2YZ/CHLM8zz3d7ZmvfxFyQKc4Z3LrO/QrC1ca3SERQSVTolEX1yX x3vsFYXQ60QKjsKdtYe1JbzfpdcricYUltKn2BWfNq0k86N8TN3cd+CsGLv9CXOYgCvj CLfopV7ARUWFzUAww0ooRisELx+kPxs/EMXAdSJDJNBYf+x7+JYweJR1AeTs5WJtXiD2 IA1w== 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 :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=z8eGloal3wFITROlsa+3+OEoqn/01a4l5HxLb1IPvlI=; b=U5hcQ/l30AOuuvFDKz1SfqPaexj6LPb1ooHxtX4CtNaDZ0bmFl9FOHDnHFBeLZlByo 2BRZAoRr21t6p4/0PU1aawo3rcB3Bl8yt6OFW5l7iYMVBsHPo8bZ5iNruskCJl37ZM5v TUvehSYkhGrYekoklsMXRLG/51c08Ce5wBbRHapQTc4ukAUVBal1VuZASYsSbFZZW3l9 Eir3ERrG6RPYu/ltJytC05EF93GZxUrLpNWBUuGjBQTG9mN3V+WIUFnnEpDgHesGrCji tjU6bBE2b739SYGEGW0pGSZwdLX0VGxDUSYxTUk8SY+s9EMgO3WOK+DNd/yWOk29VPr9 tcLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=muXT0KAn; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dv23si4469352ejb.338.2019.11.05.01.01.58; Tue, 05 Nov 2019 01:02:21 -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=fail header.i=@crapouillou.net header.s=mail header.b=muXT0KAn; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730637AbfKEJBV (ORCPT + 99 others); Tue, 5 Nov 2019 04:01:21 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:45378 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727925AbfKEJBV (ORCPT ); Tue, 5 Nov 2019 04:01:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1572944478; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=z8eGloal3wFITROlsa+3+OEoqn/01a4l5HxLb1IPvlI=; b=muXT0KAne3fIchktcCiubXpRWz4RTA2/K59EnXVeQ2SNYowo2Y8cbMixJGV6Jr9xWQ0y/r 56HBfxGMi2gH5qR6sRobiRUam9LGOJFHtMJFBdHru0/89gXcxkNI399MluwpRfCgNPnyi0 LacMIwU4owZQyTYmQUCuz8EpSHT67zo= Date: Tue, 05 Nov 2019 10:01:12 +0100 From: Paul Cercueil Subject: Re: [PATCH] dmaengine: dma-jz4780: add missed clk_disable_unprepare in remove To: Chuhong Yuan Cc: Zubair Lutfullah Kakakhel , Dan Williams , Vinod Koul , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: <1572944472.3.0@crapouillou.net> In-Reply-To: <20191104161622.11758-1-hslester96@gmail.com> References: <20191104161622.11758-1-hslester96@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Le mar., nov. 5, 2019 at 00:16, Chuhong Yuan a=20 =E9crit : > The remove misses to disable and unprepare jzdma->clk. > Add a call to clk_disable_unprepare to fix it. >=20 > Signed-off-by: Chuhong Yuan Acked-by: Paul Cercueil Thanks. > --- > drivers/dma/dma-jz4780.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c > index cafb1cc065bb..66ab76b9520f 100644 > --- a/drivers/dma/dma-jz4780.c > +++ b/drivers/dma/dma-jz4780.c > @@ -987,6 +987,7 @@ static int jz4780_dma_remove(struct=20 > platform_device *pdev) >=20 > of_dma_controller_free(pdev->dev.of_node); >=20 > + clk_disable_unprepare(jzdma->clk); > free_irq(jzdma->irq, jzdma); >=20 > for (i =3D 0; i < jzdma->soc_data->nb_channels; i++) > -- > 2.23.0 >=20 =