From patchwork Thu Feb 27 12:37:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 11408487 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CF2CD930 for ; Thu, 27 Feb 2020 12:39:15 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id AC3C0246A3 for ; Thu, 27 Feb 2020 12:39:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="upiq7opW"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ti.com header.i=@ti.com header.b="QjZeglP3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC3C0246A3 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id: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=rHzEK+Cg6Ucm9LMaqaJgXPSYceX7xAvgvkH8D9PXbGM=; b=upiq7opWW4pZ8X 6N+lRLjCfCG5xa1jmKkFw+8xbNMQIH7CEZbmtDa/md3alb0yb3lRj2Glbltk5V268jrV5I4ss7ZCN FriaMVVpTHo5G3u1yfaE/uDZvC7DDVr1i3LMFhr7zospyN7VdGbMT7O6mG2+fyseZ0g+jEyYa7nBk PzeWbslLYfExrl1M1KZEoigiBD8VXdjpNwnl3LS/s+TgIexcq2uStVnEZFo8QppxYSuX418aWv4Hp AqTCK7rMbttxXN0M1skUFzynGs4DU7vKuRdnEdZXviF1nfe6/6AmTPNeTJPNKcgIyhjksZAU9zI4Z aXK0ZmNESQI0BVjylw6A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j7IRe-0002bc-W4; Thu, 27 Feb 2020 12:39:15 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j7IQa-0001ij-Ag; Thu, 27 Feb 2020 12:38:11 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 01RCbrEZ089743; Thu, 27 Feb 2020 06:37:53 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1582807073; bh=N0ZTnsWAGol2AuTpDnmtxbZq6ogLFkSohABUVzcd+sE=; h=From:To:CC:Subject:Date; b=QjZeglP3AIt+Vfhur4e95S7ux4fT6vGQuuR59x4CU4MDfozKzCGK7gX6k01I/FJo/ 3B/CfbHDM8esY4J4EqdSOh0tSnxweSOHKtl/x15h1+3Q70VvdK4FV2gbbtoS0swBfq DZndI5YUx/MGSer6tbBQ1yeUzNCaEC1TmDZ1EQEg= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 01RCbrsE130414; Thu, 27 Feb 2020 06:37:53 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 27 Feb 2020 06:37:52 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Thu, 27 Feb 2020 06:37:52 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 01RCbnvN100207; Thu, 27 Feb 2020 06:37:49 -0600 From: Peter Ujfalusi To: , , , , , , , Subject: [PATCH 0/7] mtd: rawnand: Convert drivers to use dma_request_chan() Date: Thu, 27 Feb 2020 14:37:42 +0200 Message-ID: <20200227123749.24064-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200227_043808_643833_7103286D X-CRM114-Status: UNSURE ( 6.22 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [198.47.23.248 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: vkoul@kernel.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hi, With dma_request_chan() drivers can know why the channel request failed and depending on how they are implemented can handle the failure in a best effort, either deferring or falling back to PIO mode. Regards, Peter --- Peter Ujfalusi (7): mtd: rawnand: gpmi: Use dma_request_chan() instead dma_request_slave_channel() mtd: rawnand: marvell: Release DMA channel on error mtd: rawnand: marvell: Use dma_request_chan() instead dma_request_slave_channel() mtd: rawnand: sunxi: Use dma_request_chan() instead dma_request_slave_channel() mtd: rawnand: qcom: Release resources on failure within qcom_nandc_alloc() mtd: rawnand: qcom: Use dma_request_chan() instead dma_request_slave_channel() mtd: rawnand: stm32_fmc2: Use dma_request_chan() instead dma_request_slave_channel() drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 21 +++-- drivers/mtd/nand/raw/marvell_nand.c | 38 +++++--- drivers/mtd/nand/raw/qcom_nandc.c | 105 +++++++++++++-------- drivers/mtd/nand/raw/stm32_fmc2_nand.c | 44 +++++++-- drivers/mtd/nand/raw/sunxi_nand.c | 15 ++- 5 files changed, 149 insertions(+), 74 deletions(-)