From patchwork Wed Aug 28 06:37:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Dahl X-Patchwork-Id: 13780768 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6A192C5472D for ; Wed, 28 Aug 2024 06:38:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=pwGPCTW5GTwNDQJjy9zJrdb9wJJS09zfm0iMot8uEVY=; b=oyUcFz+0n/d9YL H35U9b/dRUp1zYTn+0bIzN13hhEq0Zcjki6dMfN0/KQkIhYtoxY8ORokgr5g/TvfGy7w81Yd68+3T VQktT69VJvACrpOE78xKFMUMQScDWEXnVLR0/nB0Rsc8VVUMC7lJM3lzpqoDIPI5p0D8SrxDi0XDI ql5jcDfiU+4fYutN1Ka9BQrpic1rcGAuuPRUvmbIOl53H1cyV8LteEvCYs5tPWZ27Rgf1dpDsQ4Nf fnjWutf9/8AcRDS8wrsDu1834GcFbKuBljtOOllmaGbgsdXaDFPCUh0CU2nYjjex8ifGPFjNUPbyj w+fN7IZ39lCr/rmaBHyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjCJn-0000000E7Q1-40dw; Wed, 28 Aug 2024 06:38:12 +0000 Received: from mail.thorsis.com ([2003:a:e28:26e4::10]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjCIy-0000000E7Gc-2ZFZ; Wed, 28 Aug 2024 06:37:22 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id A33ED14832EF; Wed, 28 Aug 2024 08:37:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=dkim; t=1724827035; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=pwGPCTW5GTwNDQJjy9zJrdb9wJJS09zfm0iMot8uEVY=; b=ZPU3OfuhyYGnT0zIEHewtPdHoUXHVR7EcmNyZZZ1DNFSeteFXlfNFywVFjy3NQswHYS6Sw I3RAr94B+uYAEGhGdKoETeyXbOHHrLiswQUZUYJznuoS9o8au9TGv5lepZIF12IcMmVtC2 wD1U0UrVXQlBlMa7ihwtUcDJoPaIKHeBEdYvElEj14KxG3gm1dZgvKyv3GZhKzufCL0N0A aEzWIjVog4Wl4syAe2ThOai0vigb314cwpTpb51L9nUq8U5hOqTGEloc5RFBcLgC3dAd9Y K2eNJsL53A4oYxzBFncjefwZCibeSSQBI9PGsB+s3A5gblbt4EJ8yCvkusfKGw== From: Alexander Dahl To: linux-mtd@lists.infradead.org Subject: [PATCH v3] mtd: rawnand: atmel: Add message on DMA usage Date: Wed, 28 Aug 2024 08:37:06 +0200 Message-Id: <20240828063707.73869-1-ada@thorsis.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240827_233720_922304_F2DDABC1 X-CRM114-Status: UNSURE ( 9.27 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , "Gustavo A. R. Silva" , open list , Vignesh Raghavendra , Kees Cook , Richard Weinberger , Claudiu Beznea , Miquel Raynal , "moderated list:ARM/Microchip AT91 SoC support" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Like for other atmel drivers (serial, crypto, mmc, …), too. Signed-off-by: Alexander Dahl Acked-by: Nicolas Ferre --- Notes: v3: - adapted commit message prefix - collected tags v2: - make info message conditional (thanks Miquel) - Link: https://lore.kernel.org/linux-mtd/20240821142006.645306-1-ada@thorsis.com/ v1: - Link: https://lore.kernel.org/linux-mtd/20240821120517.330868-1-ada@thorsis.com/ drivers/mtd/nand/raw/atmel/nand-controller.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) base-commit: 47ac09b91befbb6a235ab620c32af719f8208399 diff --git a/drivers/mtd/nand/raw/atmel/nand-controller.c b/drivers/mtd/nand/raw/atmel/nand-controller.c index dc75d50d52e8..f9ccfd02e804 100644 --- a/drivers/mtd/nand/raw/atmel/nand-controller.c +++ b/drivers/mtd/nand/raw/atmel/nand-controller.c @@ -2049,7 +2049,10 @@ static int atmel_nand_controller_init(struct atmel_nand_controller *nc, dma_cap_set(DMA_MEMCPY, mask); nc->dmac = dma_request_channel(mask, NULL, NULL); - if (!nc->dmac) + if (nc->dmac) + dev_info(nc->dev, "using %s for DMA transfers\n", + dma_chan_name(nc->dmac)); + else dev_err(nc->dev, "Failed to request DMA channel\n"); }