Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3585369pxb; Mon, 24 Jan 2022 12:52:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUvMhVeGUi8yWFFtbLyMHcZBFvKFqOaj0Fc/iPxo3YM2Ux9u6wVIrPdS2y9JREJ5YOIAM/ X-Received: by 2002:a62:64d4:0:b0:4c9:6871:59b2 with SMTP id y203-20020a6264d4000000b004c9687159b2mr5525543pfb.31.1643057523195; Mon, 24 Jan 2022 12:52:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643057523; cv=none; d=google.com; s=arc-20160816; b=hif/fj6BYHkmL619M4BTJYOca2oJXn3oo/uk35GDXZ5x2gEKxmVSPadlU4lq4DNjol BbF21c2il7x4yiHLDrcEKtBd/POndIwHZGa6sEj27JGdxQvmtiIUImy43T7yghStJP09 EIfNu8Dg+/cANJ5V/A9Xfj2C96NpF7XbyHbvU5sUZxG3+3QUzXqBL1AQAOY0noc4imRV Yr08Mzl+9Os5YUAsy9GieY3fzYAQzgEIoQskQxS1dYZWgwlRolfG0d+w13fFBf2wsKF2 xeXwn9glOzCpG1FKhpHejF8NKa4wdI3OfgkUwF4+cCNnCGWSbgDmldSqgcUw+NqAUmLe c/HA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VcEgYpe/+XqLhRfD1+O5x1DO3gboDvZJRr1p9/0fdTg=; b=D3U8wzni0w/XiQvlufDLrJYF/PA0qkxr8oreCyi/p/Gqg7wZvIhmmRjkh2PS7yUQ0b 1nSL58yEgRiCnOpJaFSKpT1HshWnjjZdEBwqgmEis9RKdNVC9YR/WV7Ijr+ldjPkL8/B 28GFufbiBmFC8Q6eExL98gGfRY3sQcvJU+ngbyOrwTzlW6Oj1t1Jqdpe35qQsqNG00l8 T0o91+s5EaggTf+si5x43rxTqD/XnR5osHcUylEjvxfUaQ9M/R9pJ75aGlqEM44Ayv6O EQ3uU7bzEmaBTh28G23NeFSd/Y6B3Y6O4ZfzJdX5flTTxTs52Jn2MjAEh+D8P6bz3D5o pL/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BZuPRJQb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h36si15093945pgi.321.2022.01.24.12.51.51; Mon, 24 Jan 2022 12:52:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BZuPRJQb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347066AbiAXUHL (ORCPT + 99 others); Mon, 24 Jan 2022 15:07:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346820AbiAXTsl (ORCPT ); Mon, 24 Jan 2022 14:48:41 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3802C02B8E2; Mon, 24 Jan 2022 11:23:43 -0800 (PST) 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 649906121F; Mon, 24 Jan 2022 19:23:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4628EC340E5; Mon, 24 Jan 2022 19:23:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052222; bh=XvKunCyUTqhoDJttVMh5EWZ4rnj0JNBQ0NSEL9yv4Ak=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BZuPRJQb3930e/gGI83wQTHQ/xHjQxwXHMAyaaVEicelT4diMxYKaGAezsVX1iRdZ JQSnWRIdxA/dfZWg7SSD/0fW+jNpIOY15Z5WsqMi2gcijDtVaS9s3SgYFp0iLID/OP WmDA+hOPU7GWi2hxM2OjIKm4CbXIGLL79fzzj4fE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tudor Ambarus , Vinod Koul Subject: [PATCH 4.19 229/239] dmaengine: at_xdmac: Print debug message after realeasing the lock Date: Mon, 24 Jan 2022 19:44:27 +0100 Message-Id: <20220124183950.387625015@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183943.102762895@linuxfoundation.org> References: <20220124183943.102762895@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tudor Ambarus commit 5edc24ac876a928f36f407a0fcdb33b94a3a210f upstream. It is desirable to do the prints without the lock held if possible, so move the print after the lock is released. Fixes: e1f7c9eee707 ("dmaengine: at_xdmac: creation of the atmel eXtended DMA Controller driver") Signed-off-by: Tudor Ambarus Link: https://lore.kernel.org/r/20211215110115.191749-4-tudor.ambarus@microchip.com Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/dma/at_xdmac.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c @@ -424,10 +424,12 @@ static dma_cookie_t at_xdmac_tx_submit(s spin_lock_irqsave(&atchan->lock, irqflags); cookie = dma_cookie_assign(tx); - dev_vdbg(chan2dev(tx->chan), "%s: atchan 0x%p, add desc 0x%p to xfers_list\n", - __func__, atchan, desc); list_add_tail(&desc->xfer_node, &atchan->xfers_list); spin_unlock_irqrestore(&atchan->lock, irqflags); + + dev_vdbg(chan2dev(tx->chan), "%s: atchan 0x%p, add desc 0x%p to xfers_list\n", + __func__, atchan, desc); + return cookie; }