Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3618514pxb; Mon, 24 Jan 2022 13:38:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJpl1M5jqgXMZxyQ+nqIHFzJ4+80lBlhp19yXBIDnvK/0BWai2QmbWrPJf3fezwS0p05Cy X-Received: by 2002:aa7:8394:0:b0:4be:ab79:fcfa with SMTP id u20-20020aa78394000000b004beab79fcfamr15775371pfm.3.1643060317424; Mon, 24 Jan 2022 13:38:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643060317; cv=none; d=google.com; s=arc-20160816; b=UOg2UD002Sv7PWKbFH01rO3xMXul3Q3tWpqLLQRRdIs4CdX0HQ03EQtWE/WBcwZzcR RUPEyWKszJjLg5FY2nCKdZzgOm40aGS5Gwc3gq/9yzS+diZHKhrTi9+BryCiqISoN9Vz rAAyEMZTJilVUDV+eCxEVZYF/66bnJy41/PH1gjNaXhxZndwWl3bkU8hIySOPFr6GqnR sEKnN8OaSC76N31ffRPIiFfj3Zg3EIjEA+S8H/Wd62Sf17iuM6UANrVyQHABYdQBBLai v3hc7mGHMpbCQf5qnFNHsarOUUuJxPq3LISPisIPCrY8vd9H5EiDuRS4CRAvFbtBl7nR 6Kaw== 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=QOMvhmEn3+9+LJRWKKjtJCGGLA+If5ASKUutKNJgOL4=; b=uaLSjiMnUPRKP5XOU9fDDRWw0cFJrUi5+La+8PNlYjWdgQykOt2RHwmsPcVW3PRlR3 RHMyEUkJeuAjv/ukRXLRGzJmR6hfAqqLQ1Tlqf1m33V4ueC4kRQMffy223n/VWNQ5yfh rO5Ie5tXH3GgIzkFdpinGRQLyCxQeS/Il497UW7uev26h8xfsgan8/AMQ9CViL9STw3S jWSY2eeeY01z080NWct6McytWzQS6o41zQdOIkQAka02Yea8yV8wCEQO9QIgbGjs1Bem 92+OqwQ5xNzmN2M3YtBSJofyST7dOShOSZ1BAel/rpWDG8EH4ym7kPvnZ6KIJN8msFsK QWDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=spNLVKN8; 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 8si407880pju.162.2022.01.24.13.38.25; Mon, 24 Jan 2022 13:38:37 -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=spNLVKN8; 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 S1377652AbiAXVTQ (ORCPT + 99 others); Mon, 24 Jan 2022 16:19:16 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:42638 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1392244AbiAXUu4 (ORCPT ); Mon, 24 Jan 2022 15:50:56 -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 1972660B0B; Mon, 24 Jan 2022 20:50:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D22F0C340E5; Mon, 24 Jan 2022 20:50:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057455; bh=qUzPwoD8luyL20rDQ9zTz7gFj1WnVztB4linAqs+gbM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=spNLVKN8+7pkV/fBGCpjOO2GH/thD5O5MBfbhO1MtlG2s2jrjvDZt+AZwYDRxXTfl PNSQTrHc5GbpeJF9vuUfraUcIIMcZME21zO0aUynude+l56OfAxhDQWvQN2IpD8DCw Hys2U8lI+y8mb2xYO9pQmAHNF4L/f6kelOSrE2xA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tudor Ambarus , Vinod Koul Subject: [PATCH 5.15 817/846] dmaengine: at_xdmac: Print debug message after realeasing the lock Date: Mon, 24 Jan 2022 19:45:34 +0100 Message-Id: <20220124184129.089588433@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 @@ -473,10 +473,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; }