From patchwork Tue Dec 17 11:00:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 181859 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp5577624ile; Tue, 17 Dec 2019 03:00:21 -0800 (PST) X-Google-Smtp-Source: APXvYqytQeLL7WF6BQaLAmO2O97pHXLHQjRo4MDUfJ9HMOZb8VZPWy+IrWO0ok3PrmzP7R1cUbyB X-Received: by 2002:aca:db41:: with SMTP id s62mr1166023oig.87.1576580421654; Tue, 17 Dec 2019 03:00:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576580421; cv=none; d=google.com; s=arc-20160816; b=Sctd9hqnreYRiVzKc5VfNeesZFjM01xpm1cXtf9RDAznQ/LXyaZoWKGgmcU2Epo3KG Woo01+/XwEWRZbL7kSPAjPDP4kiIdH7geGKrkPuWHFns6glAZElubXpe3EgVFRBIcWXt 37HLtgzibbqEEmHoge2vt5G4YfqzAp7XCrwdqToa2fBM9b0IODhc6omkUk6N+32+6DvG GZcTVdsU1etScOW/HrypdGbpcBNjkkokNyoaCRrusZlRufsHfK5VXAnA8A9Bs7+HobEa hkbuzqOMOyo+7xLDRIVIJSnTSB0JaZbVkh7Ho/+qQNjjMbD40kJQyuLl5FbvkanWQI5S QmqQ== 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=WFu2bhCsbcS8Ji82jkf6TOz+cf1OP42p/0gNDCCLLiE=; b=Z+MWkcV65KIZtbVXJZF3mD6Mo69/mWDy93vihBcW//Nuk3HP0bYBTJvwJsyZlZj9Pf zgk1hSUWGXO1ofnJCX/urw7T2rTBgcfO+CC9CN92v9Qt5CtzOup5jst7b0uWgP3tjD9p AGOfv88xq+9EgtCwbO0b8LQfm+mxE+naYnujeCenWNXzTWhOr0osDI+WG4DP22D/QcBw G7jubCpEj4gJ+YfFxKwQiXJL9kFsqmNtspjPApIgFTV6RWTMtN4A8Gtu/5g2D+7p4ozb b9KY277TCphzCWdRMkM5fHlTuf69OoHOgATsbKgPMW/pYTy9R1DHfwXKRY8tbUo1epF0 IArg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=hN2EmYI6; 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 d6si11700385oic.86.2019.12.17.03.00.21; Tue, 17 Dec 2019 03:00:21 -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=hN2EmYI6; 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 S1726937AbfLQLAU (ORCPT + 27 others); Tue, 17 Dec 2019 06:00:20 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:49000 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726383AbfLQLAT (ORCPT ); Tue, 17 Dec 2019 06:00:19 -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 xBHB0IeJ024842; Tue, 17 Dec 2019 05:00:18 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1576580418; bh=WFu2bhCsbcS8Ji82jkf6TOz+cf1OP42p/0gNDCCLLiE=; h=From:To:CC:Subject:Date; b=hN2EmYI6fo8B+cctFerAaiz7Y/5cT2kRgVpERx3LSNeWW4epYL0YwV/pZMYGwr4TJ Mwv4wO71mEDxsAefEvsP2Svv9lFkUNKEOxi9goTj9YJ5hL3WRWDzWl85p6GcPrqZgq LnmWA8VrF0W8LG9Xz4YULh2hPMrH2W+MSfU3Mufc= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xBHB0I3D080597 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 17 Dec 2019 05:00:18 -0600 Received: from DFLE108.ent.ti.com (10.64.6.29) 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; Tue, 17 Dec 2019 05:00:17 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE108.ent.ti.com (10.64.6.29) 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:00:17 -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 xBHB0F7x038240; Tue, 17 Dec 2019 05:00:16 -0600 From: Peter Ujfalusi To: , CC: , , Subject: [PATCH] usb: musb/ux500: Use dma_request_chan() instead dma_request_slave_channel() Date: Tue, 17 Dec 2019 13:00:30 +0200 Message-ID: <20191217110030.26887-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. Signed-off-by: Peter Ujfalusi --- drivers/usb/musb/ux500_dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/usb/musb/ux500_dma.c b/drivers/usb/musb/ux500_dma.c index d19bb3e89da6..d5cf5e8bb1ca 100644 --- a/drivers/usb/musb/ux500_dma.c +++ b/drivers/usb/musb/ux500_dma.c @@ -310,9 +310,9 @@ static int ux500_dma_controller_start(struct ux500_dma_controller *controller) dma_channel->max_len = SZ_16M; ux500_channel->dma_chan = - dma_request_slave_channel(dev, chan_names[ch_num]); + dma_request_chan(dev, chan_names[ch_num]); - if (!ux500_channel->dma_chan) + if (IS_ERR(ux500_channel->dma_chan)) ux500_channel->dma_chan = dma_request_channel(mask, data ?