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: 5937241 Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ED178BF440 for ; Wed, 4 Mar 2015 15:25:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3C5CD2024F for ; Wed, 4 Mar 2015 15:25:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B6AAC202DD for ; Wed, 4 Mar 2015 15:25:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758829AbbCDPZm (ORCPT ); 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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=iM56n/QlCNFwnHsx1Mq9fzOId7NCzYzPMR9Z7OhyWE8=; b=lmiZOyDF1OVQg9P7A4itq0lUE0yYWCPQFM2crMnOFpHU8iB0dqYcN7CdWr4qbZRqfz FLlKNwyB7uz6QS9IJtFY9Mr160S1VcxYilCRcJNsvUiVZ1+M7Gw+X+YIOQS+yabflDUz BLDLGM5OaISXLtEdCQz2D0MrdphJ1IukGUG2omH3p9N6t542HcOLVVkfM1KUdDfBkhsh UVD6hF/Y/XR0vges0RNC/cGpbI4WDDvf0454sc+mTaAsxIyA9Ru7oyMBT6OC07awJP9d ZEEugPuq+rcYArYDLOOWS7jHOuToB6Z6+WwZvZEcQOoEJaFnpD2aJPZPeSXLLbhqrW89 wSHQ== X-Gm-Message-State: ALoCoQm/Qpr4bI0FaoxaIoIBISr36jsSydecXKTZhCjG3GTIII5B5JtFzLFXFhV/OiuqycHA0fpr 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: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;