From patchwork Tue Sep 11 08:35:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 146964 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3386198ljw; Tue, 11 Sep 2018 01:36:36 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbOdIZDWlz/niVXW+1wknXKvKBQ6ReuqwomBRfB+79ns1aFrfOFxkZW4WPGc6JF4A7Ggp38 X-Received: by 2002:a63:4d21:: with SMTP id a33-v6mr27038732pgb.408.1536654996526; Tue, 11 Sep 2018 01:36:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536654996; cv=none; d=google.com; s=arc-20160816; b=G+w1Z6JQEa28a8HvHGhKprBIhEOWCIppZtmx3ZwWAavc/+0+6mlLqBXwYqsdcfyKNX KiE0zrSZ6gqKvUz/kT115G5fHsJPApp5e9TWvbw+wmOrlBI98FAtOLNKjopTBvpPsHdQ 24rO2tbUZDlAeqDrs8Qhe95hAfTb5qTvMiaXBmlAO5oE2xfbLiHGkCUyc5vJC0/0aMii Kg3XeHXjMkevUYsdc1AWojaRDN3aY4KaGp7NZbcosZa90mWdp2GhYmqk6p+1EGdgr2+b NdunyntkHd4aeb8sAfMaDBGWG1Em6b/E4uyGOSdoR7GAxYWAa977t/ZJ9RVAMW3hltsY upmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=HzSa65QQYMUMj8tlm4TMzhIqsnGN1mxbY0GYxM4DT7o=; b=uP8/NliHJnVa8zwGZoeypW9GrjgQiWIm7QLTwdKpImK3RBz11rC/GpJQU7Fg0bkLYO d+n/DtqEMKuIosPfqyl/cK6evkDbX2wUF2TxNcMGBNFxayvV9b1bqfwjeKQekZ0F4zL6 /+N9QNV6dZmLTh3PXrGxQMbG/Q1VM3yMe/u2v3zuiJKxhWRVuPHSeh9wCjIKBEpfNv1x EJxtCix8z1mGZrIRRaTuc9gtmMo6S+1WO7j4tCZy5mwjhAq16KDj7D0WVZyccPDxt3N0 0L14oXa+nm/Ntp/qwA3tf9fbWgMK0ncY50bDXULkdv+T5VjFukkjMfe+qnBnxgLeodUX b5KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ihP0WhOo; spf=pass (google.com: best guess record for domain of dmaengine-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=dmaengine-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 21-v6si19613906pfy.169.2018.09.11.01.36.36; Tue, 11 Sep 2018 01:36:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dmaengine-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=@kernel.org header.s=default header.b=ihP0WhOo; spf=pass (google.com: best guess record for domain of dmaengine-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=dmaengine-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726556AbeIKNeu (ORCPT + 3 others); Tue, 11 Sep 2018 09:34:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:52240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726387AbeIKNeu (ORCPT ); Tue, 11 Sep 2018 09:34:50 -0400 Received: from localhost.localdomain (unknown [171.76.126.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A538520870; Tue, 11 Sep 2018 08:36:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536654995; bh=YwcRFHdufay0K2mEkRq7eAMIN4m903B1r3ZsP3D8ETg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ihP0WhOosHVy8uokkl5q6dZdlEFhKAwHOxlcmnlL6qG6MoVjSn86A8nk17Fm+6v5v 6XWemjLQsbw+ke0ziRpisPWq5rlCEdRtmSsMvirCKNQHBlKj/PcFAXX+BhM+ia1gjV mO9NgkVXqwAo59iGwXpIRuwvrrT+CO3BMVsrLp90= From: Vinod Koul To: dmaengine@vger.kernel.org Cc: Vinod Koul , Viresh Kumar , Andy Shevchenko Subject: [PATCH 05/12] dmaengine: dw: remove dma_slave_config direction usage Date: Tue, 11 Sep 2018 14:05:29 +0530 Message-Id: <20180911083536.16482-6-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180911083536.16482-1-vkoul@kernel.org> References: <20180911083536.16482-1-vkoul@kernel.org> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org dma_slave_config direction was marked as deprecated quite some time back, remove the usage from this driver so that the field can be removed Signed-off-by: Vinod Koul --- CC: Viresh Kumar CC: Andy Shevchenko drivers/dma/dw/core.c | 5 ----- 1 file changed, 5 deletions(-) -- 2.14.4 Acked-by: Andy Shevchenko diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c index f43e6dafe446..d0c3e50b39fb 100644 --- a/drivers/dma/dw/core.c +++ b/drivers/dma/dw/core.c @@ -886,12 +886,7 @@ static int dwc_config(struct dma_chan *chan, struct dma_slave_config *sconfig) */ u32 s = dw->pdata->is_idma32 ? 1 : 2; - /* Check if chan will be configured for slave transfers */ - if (!is_slave_direction(sconfig->direction)) - return -EINVAL; - memcpy(&dwc->dma_sconfig, sconfig, sizeof(*sconfig)); - dwc->direction = sconfig->direction; sc->src_maxburst = sc->src_maxburst > 1 ? fls(sc->src_maxburst) - s : 0; sc->dst_maxburst = sc->dst_maxburst > 1 ? fls(sc->dst_maxburst) - s : 0;