From patchwork Wed Aug 21 12:05:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Dahl X-Patchwork-Id: 13771284 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 87957C52D6F for ; Wed, 21 Aug 2024 12:06:22 +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=Yd9f/abI0GPcRIqot7aIukn3A28N94HWzjWiU6z6HyE=; b=koaqOnPA80FkQW qaXjWyDkeDQdqv8/Z1OT395A9Ty9kPgWC7HuV947w99QSrxNx/we17pGTIiMeX+K9WuPaW+v51HeA BSQD5C1SbYbaMuT1c+JGaBP756C9MW56BYTO2Ch0OyrUYIclw7d+OifOY7NrseAZRd/puHmiQrLrG eOCxZOnJMRwTdR4OuczBa4K/9u72M2j+4/Q/dE8DhTliQKjxTSWudUuEDNm5WcZsBKzlt1W/aC2X8 pyiUQdqfP597MKI2n/1OL5H/Y+xVrFs6qZEl6Cb0TvwRhpzRdjxXv3tZYvfkeKv2XaEHBPrpOtx0J PwEL92k1E9Sf8vGIGdzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgk6O-00000008qIu-1w51; Wed, 21 Aug 2024 12:06:12 +0000 Received: from mail.thorsis.com ([217.92.40.78]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgk5f-00000008qCV-3pGh; Wed, 21 Aug 2024 12:05:29 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 43CE11483DED; Wed, 21 Aug 2024 14:05:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=dkim; t=1724241925; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=Yd9f/abI0GPcRIqot7aIukn3A28N94HWzjWiU6z6HyE=; b=bO0SA43tlbA4YxhM/DGIJwpIOxdL6BjKB4NyYp10pzrBySjKTTIg5WubVeb5rFwLADXfLy t2lU8WT39x3w/T+twzAj5jQqSQMPrEEKoLDp3nFMnX5iCJmf425JAxJk9j9i2bdDIDhR51 9YFrtz1fLR/z3VgEgbTWCpVLc0Pt8aEHnMU+7XCpX5oZS3veIn3u7PzoW76CP12qggehiW 7fWA5Unb1K114xTGozac8axiE82Jfie5Vv0qtIdCHQyXewibxYQYaLA1ltxJSYjNzUdtVk YvQhjIXLvxpQ0cXJ+Bv5YteqOpOnUe4oCdHqfJyUSufFj9ScyoKK0dRl6JZleQ== From: Alexander Dahl To: linux-mtd@lists.infradead.org Subject: [PATCH] mtd: nand: raw: atmel: Add message on DMA usage Date: Wed, 21 Aug 2024 14:05:16 +0200 Message-Id: <20240821120517.330868-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-20240821_050528_396589_E444A1CC X-CRM114-Status: UNSURE ( 7.96 ) 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 --- drivers/mtd/nand/raw/atmel/nand-controller.c | 2 ++ 1 file changed, 2 insertions(+) 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..9e6dea2cf140 100644 --- a/drivers/mtd/nand/raw/atmel/nand-controller.c +++ b/drivers/mtd/nand/raw/atmel/nand-controller.c @@ -2051,6 +2051,8 @@ static int atmel_nand_controller_init(struct atmel_nand_controller *nc, nc->dmac = dma_request_channel(mask, NULL, NULL); if (!nc->dmac) dev_err(nc->dev, "Failed to request DMA channel\n"); + dev_info(nc->dev, "using %s for DMA transfers\n", + dma_chan_name(nc->dmac)); } /* We do not retrieve the SMC syscon when parsing old DTs. */