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: 183939 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4463116ile; Thu, 27 Feb 2020 04:40:04 -0800 (PST) X-Google-Smtp-Source: APXvYqzP+jlx1R72IaTZfL1unWiXzsLkaWD8XqMQHNejyA5WiVIb1C0ktXwnUycPUJ0lLcJpxFtn X-Received: by 2002:a62:1456:: with SMTP id 83mr3953231pfu.186.1582807204714; Thu, 27 Feb 2020 04:40:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582807204; cv=none; d=google.com; s=arc-20160816; b=Ex7HmuNSCvYsvvMLZpIepMoq361ISsnFLoIkgafZvmG5IskoBgL/hpHNoN2BIxdGWk WCZkOLyCIiwlG1MNbKWfvCkhz99Gd/TFr6pVaAeZcHo2f0RTujMEYnxnp7e7/H30Gf4A Mi2dFCb9M+/stEO0kADdwdgjVWrcu9a7tMrlqqbcbfLEDQ/6l1aQiEC8A7wJKCbG1597 6AJ1XfXuRDhY8bcT89JXIFuRvCsArcBwbZnivDip+gp2j4Y9W5U/P5DxwPzFXuovrvjx v6XWsxvJDhaEYATlylzcaK1ITK+mf5CFU66fiYhZe+L/CNZKminLkBjQSk5+TxEo/n/F dVug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature:dkim-signature; bh=/9JC2TYkrHYGncq773gkID85UYXGCSQKDYuuZgu92Z0=; b=coZw/Yjjflvb/E0okz+U3YIScsTvtyvE2oOHIjC0gSsHNlt/mnIdmzJLc2eWkDn4G/ mghM5ZubRk3UFMz8nez+w3a516ARUuX+xi4F9ezJm5TAyc2/w5AChzfd9YswqfNYcuUU ZvKR+5pZv7jLEPZznkdGQOTLWUiUKno+WYW1pIvDjYbjM8yEjdalVeumyju7/58n16sL V2stLuHNqwFwY3t32T+BxamTXKxp3DF6C1xmf8XgJ3BlOTWdR23RF4VM6CTP4aMA6sxJ jWy2YmBsiaFjynRQArGk4bmobGzvCjh0841ALe6ICit3IpuJsAwaMVSMCKaIM/vxf1ub tHEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=UzUrqpHv; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=QjZeglP3; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id i26si1214184pgn.475.2020.02.27.04.40.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 04:40:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=UzUrqpHv; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=QjZeglP3; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com 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=/9JC2TYkrHYGncq773gkID85UYXGCSQKDYuuZgu92Z0=; b=UzUrqpHvkfXS8T FTpmGNWCy0tJVtAUtFtU+1UVUqU3t8/p+leBmZfFZErYA55K38L+1dzJyDVDM1X2vBKX6dIUhYTue +RH6evjDqhmWZyVpjQ6WFeq6N+4oiFHPhrvw3B420V1VRFXhQV40bJpk1cvXw1lt0iGhXlvhKEwb3 kawJCROG82vmjCWEXOTGgzMGpTWWKoxoE3fVPd9jXgbmqWJnSs2txT7FzVzq8qI7NkiTuwZoHhEhM HtWBhbbNOufzWqV6CTpDx3iMuCMcmkESBhTn+nnhWLTx4uKF9EYPD6zFYjXO/lPJhxcV5IAUe2omv AFZOkf8xdb9A378yDIxQ==; 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 1j7ISG-0003HL-D3; Thu, 27 Feb 2020 12:39:52 +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-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list 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-mtd" Errors-To: linux-mtd-bounces+patch=linaro.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(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/