From patchwork Tue Dec 17 11:28:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 181864 Delivered-To: patch@linaro.org Received: by 2002:ac9:44c4:0:0:0:0:0 with SMTP id t4csp5565130och; Tue, 17 Dec 2019 03:28:47 -0800 (PST) X-Google-Smtp-Source: APXvYqw57fZYWjxzXEoGX58hmd1/ZBHWOpKBFXsbscHPpOQE6gDpWNs0mWtR+JMiM4CrPJg/p+YH X-Received: by 2002:a05:6830:10d7:: with SMTP id z23mr37055956oto.114.1576582127815; Tue, 17 Dec 2019 03:28:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576582127; cv=none; d=google.com; s=arc-20160816; b=GQdV2sERS7DAf+btPqbB0l3KjrC5N0vck3n2rkN6IHl27DjBQWk1xqzQS8LHgemj5q WSSZjPn/tg38fsG73hWM3QQcHAjiTuO12fzOKmprl7NSAHMISUO/W7szZBmylvylQgVX I3egl29/ha15PMnp6JyIOIs6a8eMmp61DlxI09b0iQuvauuNkfX+luT7XXDfotHZb741 ReEgFTGwZuwR3h93OnvtncHEJUPjXQsOJra9iJ5h0UV6s0Nn4aa4jQYULTRlS5TPsWp1 OupI9gPffmmd70SeJzkdsevpg4EJKZC2gsEvgEqAqryAyUQ+DpcMGI7IaZxowL9hSC8G HeWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=WL0T9j68qwDD2LuB0VajA7vfBQNu8J+ddVt41j8JUFw=; b=w5k9KeHERv4J9xlGx4WzlJ78QcIkOSzD8YbW8FI25uYjweeilWshtcD15k5fa0V973 Dp1N+IKz1+NpEbi13hcDITPk68//4KdpognVHU3CKqyic/uqvj5vnkme3zeA3ZBZG5wW YW8t4zhg1IowjmV3fioBQITFOZMgQ6qRLcqH/PCkZcTfKP9892CJFkOJNAjV0I1/Zafs I5J5ANiJMulBH7iKBWrwxrCv3ebG0+uh0Ymh4Fvk1hdyD3rwoNFJ7nYoCvp/vr6/wR68 p6YFK3lstd8dFhP3ke1jtX4vLpv3TBovtrL00/z8Fo3WDEjsaxMmwzp19pwDGtsxuU2u jq3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ealmZETn; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p26si12862876oto.240.2019.12.17.03.28.47; Tue, 17 Dec 2019 03:28:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ealmZETn; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727127AbfLQL2r (ORCPT + 5 others); Tue, 17 Dec 2019 06:28:47 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:39534 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726729AbfLQL2r (ORCPT ); Tue, 17 Dec 2019 06:28:47 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBHBSZh1071148; Tue, 17 Dec 2019 05:28:35 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1576582115; bh=WL0T9j68qwDD2LuB0VajA7vfBQNu8J+ddVt41j8JUFw=; h=From:To:CC:Subject:Date; b=ealmZETnusIhW6fnlwU3yO/8BlRM0TFyfgAJluEMsyDAjcm4KrI/fQp985xeyjOAi 1htmq6faMHMj7nrTa/04EygPzDB6CMSk1rK2Nw+7Cu3ce8rCK61UiEs9zde4Fu4Co/ F01Ji5Qjv/ro7PDj3juublEsNUNvR9Vs5m09bTjc= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBHBSZMD124925; Tue, 17 Dec 2019 05:28:35 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 17 Dec 2019 05:28:35 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE115.ent.ti.com (157.170.170.26) 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; Tue, 17 Dec 2019 05:28:35 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBHBSWdS090173; Tue, 17 Dec 2019 05:28:33 -0600 From: Peter Ujfalusi To: , , CC: , , , Subject: [PATCH] mmc: mxs: Use dma_request_chan() instead dma_request_slave_channel() Date: Tue, 17 Dec 2019 13:28:47 +0200 Message-ID: <20191217112847.31351-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org dma_request_slave_channel() is a wrapper on top of dma_request_chan() eating up the error code. By using dma_request_chan() directly the driver can support deferred probing against DMA. Signed-off-by: Peter Ujfalusi --- drivers/mmc/host/mxs-mmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/mmc/host/mxs-mmc.c b/drivers/mmc/host/mxs-mmc.c index 4031217d21c3..d82674aed447 100644 --- a/drivers/mmc/host/mxs-mmc.c +++ b/drivers/mmc/host/mxs-mmc.c @@ -623,11 +623,11 @@ static int mxs_mmc_probe(struct platform_device *pdev) goto out_clk_disable; } - ssp->dmach = dma_request_slave_channel(&pdev->dev, "rx-tx"); - if (!ssp->dmach) { + ssp->dmach = dma_request_chan(&pdev->dev, "rx-tx"); + if (IS_ERR(ssp->dmach)) { dev_err(mmc_dev(host->mmc), "%s: failed to request dma\n", __func__); - ret = -ENODEV; + ret = PTR_ERR(ssp->dmach); goto out_clk_disable; }