From patchwork Wed Mar 4 15:25:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 45426 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C0A1521486 for ; Wed, 4 Mar 2015 15:26:15 +0000 (UTC) Received: by labhs14 with SMTP id hs14sf19626856lab.0 for ; Wed, 04 Mar 2015 07:26:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=v9IKkXT7i34ptNjK3HYOg0Sq+v6XgDLVH8xRDNH9Vxo=; b=gTBOfo/3pMJvjHsePbekiKhNORnbNB7PgC/klb1j6zx48T2zvIdOdl7FDrRHa0oejt KjfvGbzTdMt9DKhTV6WrJQ3EhGw7BNiIb08ba0imm/DHuxa3WJnAWpiLhOzMyKQ2+HJs W95pgE2bp+0R8rS5BtW9x9KOgW7t4Tq8DVEhRZikbCLHcWzAGWpMMexk2D5Ocb9E68Z3 KBZHOHzqeMIQZGg6csu/oWqWyq/6VZ7VNRYFV3J33ChFETmiHEslwnQHAsBWkbJzOivW 8vwRArQ92iFqeOZjh8epnGiAbYaaenfjyta7iM/W1OVWhSnuO8Fvx6pJ+/CXukEr0huH GS7w== X-Gm-Message-State: ALoCoQnpJmTfYeScjGPT89ZPzoupV5ERanC+UISX/Q8Cck7GLnbngHzJ/21+Mag4qIyJtVemItHH X-Received: by 10.112.167.98 with SMTP id zn2mr758245lbb.6.1425482774112; Wed, 04 Mar 2015 07:26:14 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.67 with SMTP id o3ls55795laj.67.gmail; Wed, 04 Mar 2015 07:26:13 -0800 (PST) X-Received: by 10.152.19.228 with SMTP id i4mr3959175lae.77.1425482773874; Wed, 04 Mar 2015 07:26:13 -0800 (PST) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id yt11si2649338lbb.173.2015.03.04.07.26.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Mar 2015 07:26:13 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by lamq1 with SMTP id q1so22098572lam.0 for ; Wed, 04 Mar 2015 07:26:13 -0800 (PST) X-Received: by 10.152.87.3 with SMTP id t3mr3979653laz.19.1425482773745; Wed, 04 Mar 2015 07:26:13 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1287572lbj; Wed, 4 Mar 2015 07:26:12 -0800 (PST) X-Received: by 10.66.151.5 with SMTP id um5mr7590265pab.43.1425482771875; Wed, 04 Mar 2015 07:26:11 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x8si5459975pdk.135.2015.03.04.07.26.11; Wed, 04 Mar 2015 07:26:11 -0800 (PST) Received-SPF: none (google.com: linux-arm-msm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758829AbbCDPZm (ORCPT + 5 others); Wed, 4 Mar 2015 10:25:42 -0500 Received: from mail-we0-f172.google.com ([74.125.82.172]:42688 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757920AbbCDPZ1 (ORCPT ); Wed, 4 Mar 2015 10:25:27 -0500 Received: by wesw62 with SMTP id w62so47079230wes.9 for ; Wed, 04 Mar 2015 07:25:26 -0800 (PST) X-Received: by 10.180.206.20 with SMTP id lk20mr15440701wic.27.1425482726341; Wed, 04 Mar 2015 07:25:26 -0800 (PST) Received: from localhost.localdomain ([37.157.136.206]) by mx.google.com with ESMTPSA id v6sm7556476wix.8.2015.03.04.07.25.24 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Mar 2015 07:25:25 -0800 (PST) From: Stanimir Varbanov To: Vinod Koul Cc: Dan Williams , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Stanimir Varbanov Subject: [PATCH] dmaengine: bam-dma: fill slave directions bit mask Date: Wed, 4 Mar 2015 17:25:10 +0200 Message-Id: <1425482710-23052-1-git-send-email-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 1.7.0.4 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stanimir.varbanov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This will avoid warning during async device registration. Signed-off-by: Stanimir Varbanov --- drivers/dma/qcom_bam_dma.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/dma/qcom_bam_dma.c b/drivers/dma/qcom_bam_dma.c index c3113e3..cc9e5ee 100644 --- a/drivers/dma/qcom_bam_dma.c +++ b/drivers/dma/qcom_bam_dma.c @@ -1143,6 +1143,7 @@ static int bam_dma_probe(struct platform_device *pdev) dma_cap_set(DMA_SLAVE, bdev->common.cap_mask); /* initialize dmaengine apis */ + bdev->common.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); bdev->common.device_alloc_chan_resources = bam_alloc_chan; bdev->common.device_free_chan_resources = bam_free_chan; bdev->common.device_prep_slave_sg = bam_prep_slave_sg;