From patchwork Wed Aug 21 14:20:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Dahl X-Patchwork-Id: 13771678 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 C0500C52D6F for ; Wed, 21 Aug 2024 14:21:16 +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=rH2IExas7+ysZJfgLcAkGVcyYLA/ZokR5nDbTwdEm4M=; b=UGF9WxuFhChdRd lLfMoI9WY1Vb0qibiCs3y2KPD8v158D8lyiuzB/k49IeKIewaAptfHGAuNjEUUPd0Z0pFMTfPHbky ayVusAfVmrXiZZxWEikvgFOjTxI7EtXco5/CQFxFcmi2A/U9i3MLbufhI4T3E32nc+MC9dDp6KOFx YL/hN3HKxlBg5DZ3w7WW4C5U6DtDetffCXODDuTN0M2re/LYSuanOV6Qj/rdxhaR8XUROjBEVv93S PZt6x4ypSu1EA/xonWersZCQFby4tKbAT1viJVf7Ie+SzicjBlXn9joY1U50KIT5oEiNwJjsSe69t cJyN1JPt/xIG3l281ziQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgmCt-00000009GxA-1R2Y; Wed, 21 Aug 2024 14:21:03 +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 1sgmC8-00000009Gec-2Lji; Wed, 21 Aug 2024 14:20:18 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 813651483E12; Wed, 21 Aug 2024 16:20:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=dkim; t=1724250013; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding; bh=rH2IExas7+ysZJfgLcAkGVcyYLA/ZokR5nDbTwdEm4M=; b=LrLPFR5yv9whUHwBmYMOdVDdysHaNknn/HtPgv/G24fqLMzQCDGurnNyqfC2PRzkkxQtGr LAHkBnx4X/nUah3nIeJWY+9321E+kxiCe/lro/OTr7XRtWH/IofFn6M4iAZFre4li2yA/z mBs+UUTwkQTs4TS1nOpczpstpZMQwesp1MauyevjVbTlNirw+DOtjzVCsgTxZBJcimGpxN +L4p66fQNPcF2u0KiB2y7WRNIiQxrnZ4qwPmf1cx71zFAcWM9KyTIuBdNrlVY+WxbLfFC7 jVILzdjy2ncaIShBHB46mTJAKdIc9ufx2TpFzqeILGOAMxuESRty3Ut+k9imtQ== From: Alexander Dahl To: linux-mtd@lists.infradead.org Subject: [PATCH v2] mtd: nand: raw: atmel: Add message on DMA usage Date: Wed, 21 Aug 2024 16:20:05 +0200 Message-Id: <20240821142006.645306-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_072016_789450_D073CDFF X-CRM114-Status: GOOD ( 10.01 ) 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 , open list , Vignesh Raghavendra , Kees Cook , Richard Weinberger , Claudiu Beznea , Tudor Ambarus , 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: v1 -> v2: - make info message conditional (thanks Miquel) 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"); }