From patchwork Tue Dec 17 07:40:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 181837 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp5401390ile; Mon, 16 Dec 2019 23:40:16 -0800 (PST) X-Google-Smtp-Source: APXvYqzAcbHRGyedUzyDO42xNAFWv95hsLIBq1MDJR7QtnFQ/eb9+wKPAFv7C60BSxlNfCyxlLvf X-Received: by 2002:a9d:6a98:: with SMTP id l24mr37579836otq.160.1576568416247; Mon, 16 Dec 2019 23:40:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576568416; cv=none; d=google.com; s=arc-20160816; b=Izzh0LptXZkSQ4Pwobfuy/rP16SdweJh821ZRzngridhdgEEfaqqcDE2yBGUvvXdMV WNkW691bOGlcAYXUHz5qYydllGGPG+BdhJb+gL6UR+WOGWTojuW+LIODgw0rRkHyq9fV GcVoJCZMA1zoRMg2pEOVwHBounUcNjqQS/iLXsACzDAb17NlWdVTD5D1h0oxzMmbLXh/ /w+257ww3NZdkmAmcbMSSP59GWgfshCv9k+7ROD4Jo5IZsAab+SgDsILaGIRp/slzEtw dYqS7QtfuW43eaM9sU/mkrOhNXPUvzL9HmzV39b4Sx0t9/U0Pq+g6xs5l1eyS2epZtk9 IHEA== 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=uq4M6dCHylxyKFwJawgtPdUJOCVELJz3UBxlL6ZzTc4=; b=krKqgp/BLXMo2dyJHl5onU4b7NPDL4h6Gndi5YI4CASf4vx5C7JArPChOLrStVWfD9 SaEuOFZHLLxxA/qw38CvcXuQVI4VFsJ1cKESvkkrWsKDsXNTjVIOl4TTtQiPbrO6xz9R hvSO5bo7B66G3/TKw3gX9uqOn4asECT9/OgniTPg3bNYFXrxm9f+JEoM1U+3EHqrea3M C+P7+DBqvGWLfWMFIL54BWf/6oABB/QUueYFUtADZjLEINB1S0XVeSJlNjJ//8z2yVZu U7GREmVAk5HxcZi+ONtqmHLy69KOm6KN7qKvvZkrjdKWUz5xKWg0oY7bGtOF92fCqbSZ KW4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=bsRuuoIl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 v76si11559064oif.207.2019.12.16.23.40.16; Mon, 16 Dec 2019 23:40:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=bsRuuoIl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1728204AbfLQHkO (ORCPT + 27 others); Tue, 17 Dec 2019 02:40:14 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:52202 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726072AbfLQHkO (ORCPT ); Tue, 17 Dec 2019 02:40:14 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBH7e9rZ078256; Tue, 17 Dec 2019 01:40:09 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1576568409; bh=uq4M6dCHylxyKFwJawgtPdUJOCVELJz3UBxlL6ZzTc4=; h=From:To:CC:Subject:Date; b=bsRuuoIlTAcTANxTUA93MNeEk6AlrLlacQuZUuuTdAuYflPCeCKQVuCJ2wx9h7/U5 ZC8YzMvL9xdjrRFq+BssFMK3mHPrB4u6ZXnMlGEwJhyVuxRZDnGwilUyxRoLDaBWSC WC4i8K8wrVAnwB4DzS2vU9iY8YT79quJ3CDxpN+M= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xBH7e9d4031094 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 17 Dec 2019 01:40:09 -0600 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE103.ent.ti.com (157.170.170.33) 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 01:40:06 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE111.ent.ti.com (157.170.170.22) 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 01:40:06 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBH7e4t0093908; Tue, 17 Dec 2019 01:40:05 -0600 From: Peter Ujfalusi To: , CC: , , Subject: [PATCH] powerpc/512x: Use dma_request_chan() instead dma_request_slave_channel() Date: Tue, 17 Dec 2019 09:40:19 +0200 Message-ID: <20191217074019.21732-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- arch/powerpc/platforms/512x/mpc512x_lpbfifo.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/arch/powerpc/platforms/512x/mpc512x_lpbfifo.c b/arch/powerpc/platforms/512x/mpc512x_lpbfifo.c index 13631f35cd14..04bf6ecf7d55 100644 --- a/arch/powerpc/platforms/512x/mpc512x_lpbfifo.c +++ b/arch/powerpc/platforms/512x/mpc512x_lpbfifo.c @@ -434,9 +434,9 @@ static int mpc512x_lpbfifo_probe(struct platform_device *pdev) memset(&lpbfifo, 0, sizeof(struct lpbfifo_data)); spin_lock_init(&lpbfifo.lock); - lpbfifo.chan = dma_request_slave_channel(&pdev->dev, "rx-tx"); - if (lpbfifo.chan == NULL) - return -EPROBE_DEFER; + lpbfifo.chan = dma_request_chan(&pdev->dev, "rx-tx"); + if (IS_ERR(lpbfifo.chan)) + return PTR_ERR(lpbfifo.chan); if (of_address_to_resource(pdev->dev.of_node, 0, &r) != 0) { dev_err(&pdev->dev, "bad 'reg' in 'sclpc' device tree node\n");