Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3596037pxb; Mon, 24 Jan 2022 13:07:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4p40WXWGclH7fNt9a912awqOu6VY/i7XnP+/dUaiypsmFLi+kIR8uxxJPMXW6Y7KJpqoE X-Received: by 2002:a17:90a:b791:: with SMTP id m17mr157256pjr.239.1643058444555; Mon, 24 Jan 2022 13:07:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643058444; cv=none; d=google.com; s=arc-20160816; b=yB093c0aebcKl9w6X2inC3SS3QyDbsxqIfPxlUr3VcgCNIsANe/bvgI6QDFmw5dUKF kk0gcOIJWZ2srI/0PlR2qNQCotSQaSW9JS2S65wqVlWulanhUtzFLFZ7aU1SK5aohS3k ASlYtVJwPO0zS1Sp+VjOhFiF0n1aeXXeGCv7f6HJ2LwW5ow18xaNv2mZiay4jtCpXTwh d9KIFy+5Pf3y75vcOBKCQbxb3ypM03haedQxT/+d89Xq4RYAITLKcrRabDiickCeaoHR fri1NQKnjHFIqVz7BLldYBg03OUgS42YnnKhceUridbTEJhtzGAT5N5uiC9a9TXqB2m9 2Kdg== 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=HN8XLmf81hchYxmIQ9lRHxf3vZHph0rw1e0xmhsBPrKfbd82FGLL3CuZ1et2+Qqbdw 9b/EPVbJxQilUcq63VKzoXDJdmDNdCat0fyck4dlKI1KjwgSABZw9H/glZUwed1xAbgw iLQm1NDvzzWYzu+AAzhpV0UrKe7SWtKgEaCO5keRIps+ickJAaMYDYzy19kxZP9GVcgd ojWc2nTaweRS80NAqNhhQvlXZzIDDCWXspqH8u7lm9N40Kwkcgg/BU2qG386sAiC0YoA OtdFK7V/125dlTqtR1A78DyZzqKbg0E7G6JzacJplXibPG4i2bOKlEG7n+jSFKBUylQo VnWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=P2VV+QU2; 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 v29si15254465pga.476.2022.01.24.13.07.11; Mon, 24 Jan 2022 13:07: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=P2VV+QU2; 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 S1350354AbiAXUc0 (ORCPT + 99 others); Mon, 24 Jan 2022 15:32:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355385AbiAXUNh (ORCPT ); Mon, 24 Jan 2022 15:13:37 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04C3FC06127A; Mon, 24 Jan 2022 11:11:18 -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 ams.source.kernel.org (Postfix) with ESMTPS id 9D448B81235; Mon, 24 Jan 2022 19:11:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1917C340E5; Mon, 24 Jan 2022 19:11:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051476; bh=XvKunCyUTqhoDJttVMh5EWZ4rnj0JNBQ0NSEL9yv4Ak=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P2VV+QU2c/avSAMVpPclprtkbwBr9Q5HAgQJwDPZrXJ0CcjEhxn7gmlc2yMNa5AJF yrPa3sJm+3bkfN1ER0r3f16Jn4/Oy1w1c+WFIcAeGIdyX8ZsMH6Ye13SyibcJuVbdl iAceqWJdqlmqOHvwaQv4V1fA8EmSZwO1FLfqJOsM= 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.14 173/186] dmaengine: at_xdmac: Print debug message after realeasing the lock Date: Mon, 24 Jan 2022 19:44:08 +0100 Message-Id: <20220124183942.674933103@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183937.101330125@linuxfoundation.org> References: <20220124183937.101330125@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; }