Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3556004pxb; Mon, 24 Jan 2022 12:08:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCgpPTwk9PuAvqc82ZpiA9yd3hYex8Ot5mNMgB+a0d3hNPjT/cnbBVIz73l3Gy8qgSZm8m X-Received: by 2002:a63:ce4c:: with SMTP id r12mr12913618pgi.21.1643054890127; Mon, 24 Jan 2022 12:08:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054890; cv=none; d=google.com; s=arc-20160816; b=a/OwYjhwTrFvmxAbh/YT9uIG38bmI22enE95Fl3EzB0hGcjAtbljjq3gAD+3ZmmNMj iMaFNtPhNMOGFHu317j3JUzSqqw+/zsgKXqV+41FRzTHFGk7urCBHNhcniPZE+jcRVWO PvkywRnPpQXjEWFo6bHXXe+j/s3ASefD9riYiqqNCl/kOqk67HOYsdB0Ia0EdOvjZN61 SiX6MT9gfguBYbfPUQ3Z5Fj4CzKrqWvYwy0cAX7cdS3Hhy06hPdSKLjE9xrQMMvAq409 559RbpB0xlq+CHh+4yamikWVtE1PNWASDa4+yVPPH+IWZPqMDtcdKbnTnpO/d6R3CL/o LIvA== 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=N2IQem0dtOVlaTyks6S1m8nczmAa8tVZnhzB6KVxbuOYjiymh46Y+d/2DLOA9R0+iz 2UYpJyia2HWn93KkGR2cairyoIgZhBRK6rloNDSGhVNp63Vr/TO6FYAuOY/5fw3+DSD1 6lKRYukrmo7VwGv+58MAnlThbgRbh+p5XE/wUh7w8rEZOnuFH2tNEOFlyH5MwF0itFhw hgGcr2SbPEOn9J49uf1Mx84r5pvNOFtBQp8T4WJTsntfjBVLB8d3SpqC6dp5g3HJrH8B H/8KbGCnX91lKwUdBuRUzG1818wZOx5syHcaCBgJolCihl2qlwZDceiquZYbMJxPAzOT Ec9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=V42SbJcC; 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 a3si7786749pgv.252.2022.01.24.12.07.57; Mon, 24 Jan 2022 12:08:10 -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=V42SbJcC; 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 S238285AbiAXTHZ (ORCPT + 99 others); Mon, 24 Jan 2022 14:07:25 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:58834 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345881AbiAXTBO (ORCPT ); Mon, 24 Jan 2022 14:01:14 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 4090F60917; Mon, 24 Jan 2022 19:01:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE3D7C340E5; Mon, 24 Jan 2022 19:01:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050873; bh=28gUiN8z0/7XjkyiXCAPk6JN17+wymAYbKOfXAnxsLg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V42SbJcCATKTCEezWbpqlzmN9ASjiPxhdDU9xqyloK9cPXRfUMjUKURLgnhoWiUNG 18lOSNcX/Utp1pQo7G+HLCcbXHXiz/VSEUxQErrMY50+9S0eGGIhMRoaRRxzHcciGI XfyHj8PH07L4Mk04mTYavIjZ44c0bNzlZ5eOWfFM= 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.9 139/157] dmaengine: at_xdmac: Print debug message after realeasing the lock Date: Mon, 24 Jan 2022 19:43:49 +0100 Message-Id: <20220124183937.180314167@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183932.787526760@linuxfoundation.org> References: <20220124183932.787526760@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; }