Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1337704imm; Thu, 5 Jul 2018 20:59:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcwkudm3OESdX6bDfRchjACBHOr3OQNQSxxXoBMVYJ2VQofrrdxh44hSpnhRsvshoOpKzVq X-Received: by 2002:a17:902:8a8e:: with SMTP id p14-v6mr8728355plo.213.1530849544505; Thu, 05 Jul 2018 20:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530849544; cv=none; d=google.com; s=arc-20160816; b=H/LkUW5pyAWEcwp3QtUV/ZtNWlCAqrb14bqVPeRyro97wmENiXHmagtqsqxZEgDzC7 n7XEbUnXotvzw7N3iMyxmlxhBHoPEMvDNJ3jXHobd9J4YJ0f/HwaziXB9PSaOWQTt3OI sjLLRKbeI7gO5aawT3n/jk8EjKZ7Tzw2Snj4yMxhuILs8BFsTIzb0oT8p2IsDdrPlwaZ 5ZzcPKa6ZSEW6NEB+BxR6davd60hDw2Mao3+PCt3Vec79QvJblTh2lGqDR1XZvjC06I+ Ewf0SUXR1FZaPIshlzCaSNwTIV3HGWAYB5ycdZQ5yHj1qlHCmZbfh9Vo5AJZ5VJveJd0 GWzA== 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 :dkim-signature:arc-authentication-results; bh=bGIHAOxQHzpz/tHAtKYndHInAQlfC+pEEUtDUhXyLaA=; b=O8S3FU0IT9UcGLksnBeoJ8UhLugywgz/DA25+sFdk1pl6qzoBCOSxLF2jQWhG8RjoN EmsUGEh6XdVz+IFmoPrzTQPxZcyQpt9uqxjyTKOLZbO61SpiKSKNpVjaIkczObrbcTVX n24nabHKk9eMuJHGOIysdIFzp5BpL2rjxQ9cKZCsHZturtg30+Zf8NRYgEwyjKJso0ZH Z/RUwCIX8ucevtvnU5qyP8BNfB0TpdqLVBLnk0RsxSbnJ/58t9banpjSv1D34Ct0r5GL qTenzM6Dm9pHJ65Gt82CG90PtA9+bpq+5jHAbaYF4E7SedGYWLOc+Kn2UB/kJ8bxhv3M oR3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KixOeZI8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i62-v6si7336122pfc.255.2018.07.05.20.58.50; Thu, 05 Jul 2018 20:59:04 -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; dkim=pass header.i=@linaro.org header.s=google header.b=KixOeZI8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932180AbeGFDz4 (ORCPT + 99 others); Thu, 5 Jul 2018 23:55:56 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33764 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753974AbeGFDzy (ORCPT ); Thu, 5 Jul 2018 23:55:54 -0400 Received: by mail-pf0-f193.google.com with SMTP id b17-v6so7217496pfi.0 for ; Thu, 05 Jul 2018 20:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=bGIHAOxQHzpz/tHAtKYndHInAQlfC+pEEUtDUhXyLaA=; b=KixOeZI8bvEiHHbmBlUnQ8LVxjuO5BdkDAEfRjFM7Z4yfReVRWkhB6hqxL7eAZ4rto KAtnq9fjQrDdP8/+XQy6GI2zZ7IVkp1qvDdBWDKJNyGO+oTIYK66wMBKQe8PoKjSF67b iBp7iDMuee1COLkhE4XA5CQfHEO+8HpiV441k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bGIHAOxQHzpz/tHAtKYndHInAQlfC+pEEUtDUhXyLaA=; b=geKNNKAsOcd41FiDPOaXiC3NFDUc5tsYqi6wI1onRnwvTBFD7jXNdcASnmZ7QUM0pa FyR8mK2g/y2AZMU7xC3pXRb6fMmM+Y5t/1swoC/t3x5gsFYsyyWnD+eO44j580QNfKLg Y6DnLSmtYfiRkZuGuyoAiq6mH1DWZKLnKTzjpbqOsdfkb4z5u7QX1A8ieYOAQOtnnb1o DZ4P+anV3NHDa8tvvWGo80Qg2fy+R9N+WWro8BjdvRuQ/Z+jLi0bdnfnHRQYeCuv2Cal wVhgA9cBTHgS+WXFNdp6HVDm9JWd916UEMgKlvr6zPkSDE9o7Nii05U4IqEA+lBzU4Yt S9qw== X-Gm-Message-State: APt69E04KlWNQy9rUWsy09/3/pLhX7luQNpY0c2Gw2Mp47zGwCdxBuLB KNlgXiGR+WnE8PXmeYiQ01XZ/Q== X-Received: by 2002:a65:5286:: with SMTP id y6-v6mr7952585pgp.65.1530849353874; Thu, 05 Jul 2018 20:55:53 -0700 (PDT) Received: from localhost.localdomain ([64.64.108.33]) by smtp.gmail.com with ESMTPSA id y14-v6sm12568403pgo.22.2018.07.05.20.55.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Jul 2018 20:55:52 -0700 (PDT) From: Guodong Xu To: vkoul@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, dan.j.williams@intel.com, xuwei5@hisilicon.com, catalin.marinas@arm.com, will.deacon@arm.com Cc: liyu65@hisilicon.com, suzhuangluan@hisilicon.com, xuhongtao8@hisilicon.com, zhongkaihua@huawei.com, xuezhiliang@hisilicon.com, xupeng7@huawei.com, sunliang10@huawei.com, fengbaopeng@hisilicon.com, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu Subject: [PATCH v2 0/4] k3dma: add support to reserved channels Date: Fri, 6 Jul 2018 11:55:17 +0800 Message-Id: <20180706035521.13736-1-guodong.xu@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset fixes bug people found on hikey960 when allocating DMA channels to peripherals such as SPI. It fails because the channel is reserved and not accessible by kernel. Patch 1, 2 and 3 add support to reserved channels for K3 DMA. Patch 4 includes a removal of axi_config who controls DMA secure/non-secure access permission but is actually set in early stage by bootloader. Guodong Xu (1): arm64: dts: hi3660: update property name hisilicon,dma-min-chan Li Yu (3): dt-bindings: k3dma: add optional property hisilicon,dma-min-chan k3dma: add support to reserved minimum channels k3dma: delete axi_config Documentation/devicetree/bindings/dma/k3dma.txt | 6 ++++++ arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 2 +- drivers/dma/k3dma.c | 16 ++++++++-------- 3 files changed, 15 insertions(+), 9 deletions(-) -- 2.17.1