From patchwork Tue Feb 14 15:18:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 5407 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3037866wrn; Tue, 14 Feb 2023 07:21:50 -0800 (PST) X-Google-Smtp-Source: AK7set8jjZCgetS9z6TfwzRfU93hnkgsCT6a7MWJ+t/cDzOyYDsQXI7Ongx9wx4/VhcCClvp8I+x X-Received: by 2002:a17:906:c259:b0:88d:5fd1:3197 with SMTP id bl25-20020a170906c25900b0088d5fd13197mr3229938ejb.50.1676388110643; Tue, 14 Feb 2023 07:21:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676388110; cv=none; d=google.com; s=arc-20160816; b=F7SGsNEgXoFtktzWSuEq+6Gs8WacM5pgEFjn+JfPm7+fzp0jl+zNVZJI8ERF1DGRTd 2j/MJ81Anqx8sXm8dw10psgHDrpPDANie360gIvtEHpgydphuVIaqNd2Q+I4JRaBa2E7 UYjgbSH2gLFo6j4k+W2KD+lzK1rxhOS2RXQPId3zlH4GQBgirz1dRR/6hNCQAcEb8qdz l+d1iAmNfUJ3PfpsJLUCprRne6n5Kqs6dW7Fdf8h/1x2cck+wM9PW5fCxXpjl0eVziQo 01eVRHlILRHhJM90y5mZLpJ+qmNhAG0tzfjK85FCPuGitl/dGZiIHXAe30VzBWbEHMQn hVCQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=IicuAr6u2qodKXHl1GCFwC9Pb1Ms/oXLaAX/g1GbV7g=; b=BY9S6Hy0ZhXc2vR/GMkKco/m9Ws3TPYd9kROrd7JE3RVtXU6SPbuHa1YVl+1YJpLf4 4868Lj4pXCqejTFXIkaJXxdeUVdgx+OL4cV8U0Y5j48rjEHLCBTBIDFz3aeXL7mJ7C6Q jeMycEdSmqez6fMG93p4XXgADYuJLUlSgqKWsgZ9e4xptEv+kkjDZJ9pb3qfmImwPY4n ZHwNSnTtnHOT/VVsqnlWZUSNzB9pjw9wSD6IYs23tJ8Zoh84SWL52Mfbp+0+B+5vOh/N nmDFbAoHDmFRCg5ft8ujCOlB1uQ1xpnOS6e2/N5tCgZXvpmW7A83YiJerfajCPmvDa0Y RG1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="Lip/3XGj"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v18-20020a17090610d200b008af42fad70bsi17257242ejv.75.2023.02.14.07.21.26; Tue, 14 Feb 2023 07:21:50 -0800 (PST) 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=@microchip.com header.s=mchp header.b="Lip/3XGj"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233094AbjBNPUm (ORCPT + 99 others); Tue, 14 Feb 2023 10:20:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232772AbjBNPUk (ORCPT ); Tue, 14 Feb 2023 10:20:40 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA5E326CEC; Tue, 14 Feb 2023 07:20:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1676388036; x=1707924036; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GXFAjE3w5Hp1MZO7kiirgXaatEQp4T5QdFRWugDaxAk=; b=Lip/3XGjJ4CI01g0lFmyrVtgHPNfpAmabe6vgStz4Bzi6E59pJHiPQ1B 70qcAKr6LbdaBX3wdcuFluOSzNLFMHs3eX49+Ad4L6z3vov3KecB+KY2W fmUcSfyeh55/4IdYTjKVDdJ2x7/YQJpwsuPUsTdV8rd7RvOiapYErhaXs Its1QQvORL2mdFJkYorW0aGPYo91tQHGTOZNXR8fPzB8V+dREpsap1J/5 sU5veshW8N4VMrdfaaSueIVpP7SfEAUExhy8AW3bb1VrZRQvpOaf+OzFE wXdmv1YqOgiOBpkVAb6FDfh116vgjxYBtIrsgzG/uZAPGseZnkodVuxx+ A==; X-IronPort-AV: E=Sophos;i="5.97,296,1669100400"; d="scan'208";a="200632632" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 14 Feb 2023 08:20:36 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 14 Feb 2023 08:20:35 -0700 Received: from m18063-ThinkPad-T460p.mchp-main.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Tue, 14 Feb 2023 08:20:33 -0700 From: Claudiu Beznea To: , , , CC: , , , Claudiu Beznea Subject: [PATCH 0/7] dmaengine: at_xdmac: fixes for suspend/resume Date: Tue, 14 Feb 2023 17:18:20 +0200 Message-ID: <20230214151827.1050280-1-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757820339343905733?= X-GMAIL-MSGID: =?utf-8?q?1757820339343905733?= Hi, Series adds fixes identified on suspend/resume of at_xdmac driver (patches 1/7-5/7). Patch 6/7 just adds a warning message that could be used for debugging purposes. Patch 7/7 is a minor cleanup. Thank you, Claudiu Beznea Claudiu Beznea (7): dmaengine: at_xdmac: disable/enable clock directly on suspend/resume dmaengine: at_xdmac: fix imbalanced runtime PM reference counter dmaengine: at_xdmac: do not resume channels paused by consumers dmaengine: at_xdmac: restore the content of grws register dmaengine: at_xdmac: do not enable all cyclic channels dmaengine: at_xdmac: add a warning message regarding for unpaused channels dmaengine: at_xdmac: align declaration of ret with the rest of variables drivers/dma/at_xdmac.c | 107 +++++++++++++++++++++++++++++++---------- 1 file changed, 82 insertions(+), 25 deletions(-)