Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp1699741rwe; Sat, 15 Apr 2023 04:33:59 -0700 (PDT) X-Google-Smtp-Source: AKy350a55DIdLZhigs1XgD9V7tYbPhYGy+lv8q+9dzOHOBgeSITED28pu12rlappUSdhTH2wOlHm X-Received: by 2002:a05:6a20:1610:b0:ee:e922:6747 with SMTP id l16-20020a056a20161000b000eee9226747mr1577777pzj.56.1681558439533; Sat, 15 Apr 2023 04:33:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681558439; cv=none; d=google.com; s=arc-20160816; b=dcCO5z2z+V5Gykb/6pSGZXV8z2RGhni7Wz13sp01aTvHTPk/o9QUaGT9uZzcxlaj2B 3apeIhBwsMY2L+5JKceEIoHL6Y1gD8zNwU1U9C2kVxRJuKuMY1Gqj8vC7XIH1//sT1RY ubxkGhoNaWrgT38hLtD31T9XrdAX0gt79p2TB+3W/741ATJHJmI4Pdw5Fjxrh52dzTSD Y4ohyXvkokAEGchzeJMQxwL+RFpYv9i6bm63ql9SLmG5YftjCjmn2VytBPCgRRNb/OsI uA6qsRBRWxn70hdwbSRcBFyMvU+TLYUMkjuNnq8dvo37gdQQyE1q8ftYGUh2xy2ehkHj hrRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=6kaf3rGwzUSGiOuakOdFpdA/lkeHpTJO3jWJqdHdQRU=; b=0/6NdnTcnSoK3xf+S0NlpY3Wmsqn8QNen/pbBtC3GOTdPEz4Dj3OTTq5RUR/3YCSt4 4UAZGw9ZGF93kThT+t9vjeb5vGxS4EFwA0bQdjst1VXd8VIoYsM5sjd8yMWhIj58oec3 dGWOEZ8ezd8LNl/pH5UwqyauHNsIFyNf7ZdfVoJuVb2X3ScWTP8471l5iRGITfmiy3Q4 H+1DSNP3SujknxCHlvG72obRu6TjRoAJjzYVN+g+SieiIcU1PVweVrJJlvpLSDOgC5rS UW20OuWFnTthPDBfpYeSf671e/VP6FFGarcbvDh3AtFYgjxvdompFSPg/Kfxwk2x3yZC ep4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cyAvtD+S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 143-20020a630095000000b0051b930ef848si798924pga.142.2023.04.15.04.33.28; Sat, 15 Apr 2023 04:33:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cyAvtD+S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230377AbjDOKtL (ORCPT + 99 others); Sat, 15 Apr 2023 06:49:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230364AbjDOKsc (ORCPT ); Sat, 15 Apr 2023 06:48:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66CD59ED5; Sat, 15 Apr 2023 03:48:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 01B2E60A47; Sat, 15 Apr 2023 10:47:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70B6AC433EF; Sat, 15 Apr 2023 10:46:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681555619; bh=18h7yJ4dungwOKffwnbsdGXL7tiydULOEDbCcZ66iBs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cyAvtD+Suf4/SUkan//MnSBSdyqeFc0SonNaw8cHANd/q6xFnbtfbXkNq3L/DSIdC 02a/m4s1pGiCiRiyGt8mr9mShw4DmlXKrkyZ1Maw5wGstS3AGB/POejilB/aYwzV7F Z5eDVmdxlHL0+wVaBtZGiFvl+pAdOrfJWqlzicZw98O9j+nRyvZ3bA9ELMvn8xxydx 0Kyu5wCQcJTRqfU4KTt0s/69NzQ3oaXJaXH6REqYFdYp5XeXU4+Fgb/6/RHUlxDhjK mMwPLTwOA3ClxowjcZntLdLbkPPgiDdj/kDJZv7WgVGljcUrw+1DnacvxBxZNwuspD wtufttvDj0ozw== From: Jisheng Zhang To: Eugeniy Paltsev , Vinod Koul Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 02/11] dmaengine: dw-axi-dmac: remove unnecessary devm_free_irq() calling Date: Sat, 15 Apr 2023 18:35:52 +0800 Message-Id: <20230415103601.2979-3-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230415103601.2979-1-jszhang@kernel.org> References: <20230415103601.2979-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In dw_remove(), We have disabled the irq from the dw-axi-dma side, so we are safe against the case "The irq is still ON when devices remove is executed and irq should be quiesced before remove is completed." Signed-off-by: Jisheng Zhang --- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c index 23a10dbdecb7..56f12dfa410d 100644 --- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c +++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c @@ -1542,8 +1542,6 @@ static int dw_remove(struct platform_device *pdev) pm_runtime_disable(chip->dev); axi_dma_suspend(chip); - devm_free_irq(chip->dev, chip->irq, chip); - of_dma_controller_free(chip->dev->of_node); list_for_each_entry_safe(chan, _chan, &dw->dma.channels, -- 2.39.2