Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1026376imu; Fri, 11 Jan 2019 13:34:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN7TXWgpLHgQZVf7ZZkImp1M9uq9cLYf0+mLQf1YVS8F8855QeU0Vi7ZIaS1wO2c/LKRTXJ4 X-Received: by 2002:a62:3adc:: with SMTP id v89mr15937385pfj.109.1547242455916; Fri, 11 Jan 2019 13:34:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547242455; cv=none; d=google.com; s=arc-20160816; b=OUGKnVr33byl+u6EkdMNoSkcsU1bKhv7YpNk9lFj5i7hFdoJ3D2IirPherMzHaC47d pd34SO10cKmvJuUVpnVWdpjmbFRwCMwoO8hnUxIbwFBMZmpRzlSc9ZwYwOFL6Bj3P1y6 pYl8P8rUL9WHq4QJJUlYSxpXnxAM4OJoSLZ/BcFkkt1Z7rwQ5jGXvzUvtraHy/CPVFr5 LU/lmsmN3kpkfW2bB0u9+BAFf69HLfgTKa7MRtITw1n8HfIcE8Zf0+z0coJyHetn5XlR pvtSsAIynjqOw1xPPiO3FYNP7vw3qLMCeqhenfp2Hb4FevbFMQlMZRlX9uL6yYpcEAaY ABEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5QAqoEHzh6Ejh4bBTGXFMICGj2I4GufJbUObrFyLkr0=; b=FWD3aMA64hNccciHP6TwaJTEuGoixFaV88o9sJ8hv/QnnbGx46tjAD6LAcJu0n38p0 xk/pj/BYEsW5ooRDUqpjHoLpjmW5pgSNMgoo0rNKCxGbgJtkrRfU+mO1YVh8c0g0ddBP gxOtYZbebYAUnRbknPqRJ78vcp6rr7D8fX4Y2xrlniHbLE7q8WLf6FSwESKZX0g9C5Po VFC4pvhLRoDXHC9+Fj+ZLvDuoNDXz8dwq1/0Whx+m5DIvcbOChRQvucJ+BegVg6V+Gl6 1IihsHSsPN20eCqoEGGNzZ+1BlE8eIJEJtIA8yvvSJHZlWq3P4mCCHPYY3XWjfs/bsCy lIcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UAZi7u1A; 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 s4si22000002pfb.190.2019.01.11.13.34.00; Fri, 11 Jan 2019 13:34:15 -0800 (PST) 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=UAZi7u1A; 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 S1726193AbfAKVaw (ORCPT + 99 others); Fri, 11 Jan 2019 16:30:52 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42478 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726016AbfAKVau (ORCPT ); Fri, 11 Jan 2019 16:30:50 -0500 Received: by mail-wr1-f68.google.com with SMTP id q18so16652025wrx.9 for ; Fri, 11 Jan 2019 13:30:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5QAqoEHzh6Ejh4bBTGXFMICGj2I4GufJbUObrFyLkr0=; b=UAZi7u1AadQ3wN3l2N/7z0nUXhf1d5mbG0P04mPwxbjcPRwEkyTBB7gWP7tJTz5zHg ODikHfepWTOfCDtH3cdUcdOH7n/vlQ6zfV62JfKPJVg0B/TOGwtxo65StcAp+uIX3tYq F60zXVopIVlwC+/tWtHQ9PInzPxQ4xA5hATYE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5QAqoEHzh6Ejh4bBTGXFMICGj2I4GufJbUObrFyLkr0=; b=OF7ndX3y9A456DUTuFV6LHqNey0CruBqH/K+jNhJmP1ErE3oc8ybjJdR9YhUkSWa5A jAJ2uAyqUncC2F2H04JaC/CQlr8eAaBSWOGFKv+KkijzeU7JomyM8H2I253Vjj9G9h3j 9Y+uYezRanBJLrdQcwcYlt5S/WrsO8aC9iKaYz3anHpoWjiWiEOG0puRqOXovwBLBaFx +Y0ND6mh/MfWQfaET5xpX2SPBiPWbdngNykoYVlBjuZf11a0x1Uwgufq2SxpDjvdnsBf psjRkmTGRunll9VWDh73HhoXzR2m7IeHSQxKY4qELMDghhuXZ51IIR/W03DrrpYvyM8k EFsQ== X-Gm-Message-State: AJcUukfZuifHqc+IlADhiVvYgx9P+T19SC4s7809ndHJNe5cAIoceTh2 gCbg/v95rOGBGlFMYOSRygxyq5DU3qc5GzqSE1W9rg== X-Received: by 2002:adf:c108:: with SMTP id r8mr15663568wre.233.1547242248094; Fri, 11 Jan 2019 13:30:48 -0800 (PST) MIME-Version: 1.0 References: <1547141652-8660-1-git-send-email-john.stultz@linaro.org> <1547141652-8660-3-git-send-email-john.stultz@linaro.org> In-Reply-To: From: John Stultz Date: Fri, 11 Jan 2019 13:30:35 -0800 Message-ID: Subject: Re: [PATCH 2/8 v3] Documentation: bindings: k3dma: Add binding for hisi-dma-avail-chan To: Rob Herring Cc: lkml , Vinod Koul , Mark Rutland , Tanglei Han , Zhuangluan Su , Ryan Grachek , Manivannan Sadhasivam , "open list:DMA GENERIC OFFLOAD ENGINE SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 11, 2019 at 12:04 PM Rob Herring wrote: > > On Fri, Jan 11, 2019 at 1:58 PM Rob Herring wrote: > > > > On Thu, Jan 10, 2019 at 11:34 AM John Stultz wrote: > > > > > > Some dma channels can be reserved for secure mode or other > > > hardware on the SoC, so provide a binding for a bitmask > > > listing the available channels for the kernel to use. > > > > > > Cc: Vinod Koul > > > Cc: Rob Herring > > > Cc: Mark Rutland > > > Cc: Tanglei Han > > > Cc: Zhuangluan Su > > > Cc: Ryan Grachek > > > Cc: Manivannan Sadhasivam > > > Cc: dmaengine@vger.kernel.org > > > Cc: devicetree@vger.kernel.org > > > Signed-off-by: John Stultz > > > --- > > > v3: Renamed to hisi-dma-avail-chan > > > --- > > > Documentation/devicetree/bindings/dma/k3dma.txt | 3 +++ > > > 1 file changed, 3 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/dma/k3dma.txt b/Documentation/devicetree/bindings/dma/k3dma.txt > > > index 10a2f15..38825d4 100644 > > > --- a/Documentation/devicetree/bindings/dma/k3dma.txt > > > +++ b/Documentation/devicetree/bindings/dma/k3dma.txt > > > @@ -14,6 +14,9 @@ Required properties: > > > have specific request line > > > - clocks: clock required > > > > > > +Optional properties: > > > +- hisi-dma-avail-chan: Bitmask of available physical channels > > > > Not quite right. Should be: hisilicon,dma-avail-chan > > Actually, we already have the same case elsewhere with > 'brcm,dma-channel-mask'. Maybe there are others. So make the property > common (i.e. documented in dma.txt) and called 'dma-channel-mask'. Ok. I'll rework it for that then. > Whether or not the dmaengine handles this or not is irrelevant to > whether the binding is common or not. I have no say over OS design > decisions. Ok. I'll keep it in the driver for now unless otherwise directed. Thanks so much for the review! -john