From patchwork Tue Sep 11 08:35:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 146949 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3386103ljw; Tue, 11 Sep 2018 01:36:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaWByDmxITfLaOUbGdyPiZW+PPQCiVtoFKEDc8JqEoSvbYpcK1rOm+XAzce2ZeWAqgEyZtD X-Received: by 2002:a17:902:22e:: with SMTP id 43-v6mr26410765plc.118.1536654988940; Tue, 11 Sep 2018 01:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536654988; cv=none; d=google.com; s=arc-20160816; b=p9Cja+vfGlmK6pgkc9Td23IGG33F8F+d6wXWwK+xX6C0nGSilMD72VDh6sPUNAOEV5 4McCmWUEKfUR404L6W377Z7LKq2N16vKxawxDanCEyV5uc4tC2/8jniFID8l7v06odZN AdhFZ1TEn/avP2dFhRLFkJUtcLf/L1ULIXuqDq1BUVDWe67Xl2YAAvqvhUbFIWkKfcvn SKG4nwMbcSP4ym7gERINosLwKOUgu9HOk7wMva3tPW/EDj9l8nAnIRaufc7bpPLH3UOd 24HHUDf4usyL4olqv4rEhUXANk2isWW5IjDDldI35Ar9PUthT4quK8/sBJAuYnxRwym6 qxKg== 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=WDkc5GVdDUW4eCkomCAz/u08ngp6BF8IjPDWI1eBT7Y=; b=w3AimDbPPNCGW8CGtF2lZxHY7n2dEE+RkI2C6DFIX4kLrLj3Wu9XBbUAGX6Il7WRcC v0BgR6AFgTxAG+m2i4LbJqLPOrz1evPO1cKgypMY1wmeMUAw7Ifnplpvn+WSNXwOqMs1 MTPcLybxjlC2JWSFQMZndc42F69rXDcKetC1e8LOtJGChavyLFUCZcO5f1lRXhuqfIml RFTzR0o4VSVLggzMo/R2pwr/HiSEOVpKhAZJY+1SvBZYb/ubERcHDmQDoBxsnKxNBs8s NGvDGPsP299NHYt1l7yw6EcKRmYukT+2zj71zju0A8RDoJeF8bpXK7rCT+bdad/OBz/V /EWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1OXaG596; 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.28; Tue, 11 Sep 2018 01:36:28 -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=1OXaG596; 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 S1726517AbeIKNem (ORCPT + 3 others); Tue, 11 Sep 2018 09:34:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:52174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726387AbeIKNem (ORCPT ); Tue, 11 Sep 2018 09:34:42 -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 181A22086E; Tue, 11 Sep 2018 08:36:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536654987; bh=H7/i6AZfjmiVIvAvKv6kptmRE51UO7Un1sNatdgCGj8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1OXaG5967s2XqRB08YGJCcjDe6Xew7XmBIP9Ly48uOsggiFBspR64Bw9W+sKKCkir 7+BTTEG5pvSTR7tJ1+AROMolYSzqoVov6HLGbaFbe/D89T+GOD5YP680kt7Lw0qdIh MzEe+gMQakuYdU+72Q3oUBE9nKnIc7tTrGgki06Q= From: Vinod Koul To: dmaengine@vger.kernel.org Cc: Vinod Koul , Ray Jui , Scott Branden Subject: [PATCH 02/12] dmaengine: bcm2835: remove dma_slave_config direction usage Date: Tue, 11 Sep 2018 14:05:26 +0530 Message-Id: <20180911083536.16482-3-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: Ray Jui CC: Scott Branden drivers/dma/bcm2835-dma.c | 8 -------- 1 file changed, 8 deletions(-) -- 2.14.4 Acked-by: Scott Branden diff --git a/drivers/dma/bcm2835-dma.c b/drivers/dma/bcm2835-dma.c index 847f84a41a69..cad55ab80d41 100644 --- a/drivers/dma/bcm2835-dma.c +++ b/drivers/dma/bcm2835-dma.c @@ -778,14 +778,6 @@ static int bcm2835_dma_slave_config(struct dma_chan *chan, { struct bcm2835_chan *c = to_bcm2835_dma_chan(chan); - if ((cfg->direction == DMA_DEV_TO_MEM && - cfg->src_addr_width != DMA_SLAVE_BUSWIDTH_4_BYTES) || - (cfg->direction == DMA_MEM_TO_DEV && - cfg->dst_addr_width != DMA_SLAVE_BUSWIDTH_4_BYTES) || - !is_slave_direction(cfg->direction)) { - return -EINVAL; - } - c->cfg = *cfg; return 0;