From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C0A4C49EAB for ; Tue, 5 Nov 2019 09:01:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1579B20869 for ; Tue, 5 Nov 2019 09:01:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=crapouillou.net header.i=@crapouillou.net header.b="muXT0KAn" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730433AbfKEJBV (ORCPT ); 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: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@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 =