Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3548793pxb; Mon, 24 Jan 2022 11:59:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEv8lVUyh76y3eOPpi0byDL+JNXEUafbeMlrHpdVZQHIwjseGGBrH6xorYStVg7Twxd+xn X-Received: by 2002:a17:90b:3808:: with SMTP id mq8mr3384935pjb.197.1643054364429; Mon, 24 Jan 2022 11:59:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054364; cv=none; d=google.com; s=arc-20160816; b=kZGi0cNtDhAksGpDr5QI+5EMjnh7TEDZQBGiue3ty5+LOcriGCA8m48YGJNRPUVrbA YqMVepLbXxB1tILyi9KVRuikGqz6vbOmSb/L+11EAJPDSrEWikB1+PMrvfT8zJay6HRQ JzI2k4l0ftM90hhsKFMHffNSph2WAcNRM7sufkxRV+NYW/bgV/Xwe/tiLW757u+iWLN5 TxVEDVHEIoY9aGBGkbreUe5qTd2K+ceNEsTMwlxtocqkXY02U2unXkzvCu7Nq4JfHq9r JCJO6CXKrt/o9irMPN/5FUCqrzAanvDHMfeYzmR6DvrFFL15TXi4znRZnQyCRtUprD6r OV0g== 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=skak/9zOf0+Q3ERXp1bC8dfKdEkn19I+SIbS0k8VohM=; b=yil6UnXZNDR/4U638BRXBJTjRavZDKNqoVzG1R/zvRvgHx1a/UGxY39AN4Ku3qdS8W C3+SHmXmtDYwRbi9eCDSIuWtSEp6BnoFDfISxuldhPKCVRnei4kLCMrFiJYQlRzVciNZ x19BDky3L4BKYON8izJtYV3BAspHN6ZACfpSs6KSMiYBBLVW+YwTYKlK+p4Rn2YAvwy6 huURs3hgYkvts5gzzh3NLKfEjGvNs6AzYgiUiLGALzT93Q0Uhn9zB7/V2Vrls7vcVmYZ 7HPhOq09UFnAj+Lzdrvlr7Gmnpxtf1hLMxRcqKP6Un5M3NYyz9QCOwMW2SWndnvpTk5G liTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j6R1T9vu; 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 q6si1495664plr.359.2022.01.24.11.59.08; Mon, 24 Jan 2022 11:59:24 -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=j6R1T9vu; 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 S1343840AbiAXS5N (ORCPT + 99 others); Mon, 24 Jan 2022 13:57:13 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:52318 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343851AbiAXSxe (ORCPT ); Mon, 24 Jan 2022 13:53:34 -0500 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 ams.source.kernel.org (Postfix) with ESMTPS id 4242EB8121F; Mon, 24 Jan 2022 18:53:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BAF5C340E7; Mon, 24 Jan 2022 18:53:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050412; bh=28gUiN8z0/7XjkyiXCAPk6JN17+wymAYbKOfXAnxsLg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j6R1T9vuCcwGxMlxBJmYjIC2pvG2IuP5MLYd8G87rB5t83ZHf4y9HkuoJqnqwXuvW l9cGUFXFAC0xmwiYjOLgH2OiY7h2W7tdTLfCL0zukkbj+diSKxu0KmYFQc48rMiqnv 3nHG+kbJyHkqdQeG6PHKRAgqyQXmEG52DF3HOsfA= 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.4 109/114] dmaengine: at_xdmac: Print debug message after realeasing the lock Date: Mon, 24 Jan 2022 19:43:24 +0100 Message-Id: <20220124183930.469406895@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183927.095545464@linuxfoundation.org> References: <20220124183927.095545464@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 @@ -425,10 +425,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; }