Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp431568imm; Sat, 26 May 2018 02:55:25 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqjyKu6+t6vB7hdNd8tAS/AsuwPeJfyN3+uniPcN1+bmD83nsGa5JlpCnlp8trpdYLocp/A X-Received: by 2002:a17:902:a60d:: with SMTP id u13-v6mr6007039plq.40.1527328525752; Sat, 26 May 2018 02:55:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527328525; cv=none; d=google.com; s=arc-20160816; b=PbzqHqh3qs9fo/rFAqDq0ieMb9V7JpcAms//bUfXBb1ENdgvqCP+O90DM//aHcD+bj itkjRkQqS+FrdsI3jVqNyQ3XFSSmvdvZLeaJwQMzJrmWewj1cYNvD7X43k6z4EdKqhgK m0ErXPwDvwVuWlRLWcqMPY8lSnT9CuFdzftQiII0HSg0Yi892gFot4+lXBZ9wObERjhH oTozNixG1vse3ZnEQJeYcyal9CigXH+bJSFx/iSpRLVRKtO9WTQcqszAwykfLd97ybmJ 0Xe+s1Kne3BKYuJXKRtB88LyO1xlikEk3YTw+DAdCljv1h0oCIYjYdrbo5d9uS6mErXb ZBAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=+bO9RU4G24IjEGNFCZjqffOfAkxNyoKN/UXUaNDreoU=; b=QE/IziQRCHp5pjXGcuc9USS6qSF1p9wyguvWysZPI8nZ3kq36EwUKeuCNClwLXV8g7 0Bao8gVZMjDOYJZfbDiqbsXQxhBj3FpQld5qjPio1EBG04nnT6MXbJx5c/dnaNWvtvZg QU441TC3uWU4RTaGDA8pfmAlU3AEUyCEqxHGPiYn/1BKxjfSYybkI5Z20Og4ffMsa1Qg /x1MdgijeYYyYg54xr7irosBt8WRB08yD1Gvufjbzrbc6lTKHL5f9FGhRIDQrKhfFQId Y4mHluxyXCqasoY/E2wla3ZhqdhsBCCkm/FzNhBOkkR15V5C/X1gh1t5u3fHWR35oFmc usRQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n79-v6si25397291pfj.152.2018.05.26.02.54.58; Sat, 26 May 2018 02:55:25 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031628AbeEZJyp (ORCPT + 99 others); Sat, 26 May 2018 05:54:45 -0400 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:46924 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031498AbeEZJyo (ORCPT ); Sat, 26 May 2018 05:54:44 -0400 Received: from belgarion.home ([90.55.202.35]) by mwinf5d83 with ME id qxuW1x00K0mKt3N03xuZXW; Sat, 26 May 2018 11:54:42 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Sat, 26 May 2018 11:54:42 +0200 X-ME-IP: 90.55.202.35 From: Robert Jarzmik To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Vinod Koul , Vinod Koul Cc: linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [RESEND PATCH] dmaengine: pxa: add a default requestor policy Date: Sat, 26 May 2018 11:54:18 +0200 Message-Id: <20180526095418.22960-1-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As what former drcmr -1 value meant, add a this as a default to each channel, ie. that by default no requestor line is used. This is specifically used for network drivers smc91x and smc911x, and needed for their port to slave maps. Cc: Arnd Bergmann Signed-off-by: Robert Jarzmik --- drivers/dma/pxa_dma.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/dma/pxa_dma.c b/drivers/dma/pxa_dma.c index 9505334f9c6e..604df1bdadf7 100644 --- a/drivers/dma/pxa_dma.c +++ b/drivers/dma/pxa_dma.c @@ -762,6 +762,8 @@ static void pxad_free_chan_resources(struct dma_chan *dchan) dma_pool_destroy(chan->desc_pool); chan->desc_pool = NULL; + chan->drcmr = (u32)-1; + chan->prio = PXAD_PRIO_LOWEST; } static void pxad_free_desc(struct virt_dma_desc *vd) @@ -1386,6 +1388,9 @@ static int pxad_init_dmadev(struct platform_device *op, c = devm_kzalloc(&op->dev, sizeof(*c), GFP_KERNEL); if (!c) return -ENOMEM; + + c->drcmr = (u32)-1; + c->prio = PXAD_PRIO_LOWEST; c->vc.desc_free = pxad_free_desc; vchan_init(&c->vc, &pdev->slave); init_waitqueue_head(&c->wq_state); -- 2.11.0