Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2797117imm; Mon, 16 Jul 2018 14:29:54 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf0qoraU81GKo+04wpPcDgXjC4Nxru5x4GkRV3NaBC3kPlVzi8dTHBiikP5EVTRqQsG7G1F X-Received: by 2002:a62:c1:: with SMTP id 184-v6mr19727265pfa.100.1531776594915; Mon, 16 Jul 2018 14:29:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531776594; cv=none; d=google.com; s=arc-20160816; b=JREKBOkrsNfCSFvd0BLzfCe8IjMZWpeQ6Enq0CrQYjI8T+8vfuZP/XniGQdIYmY/Yp V0u0BB3lylG3zQ2gggaS2LXTnguzRFEDLbMNIOZfatujpL2XvNu8tJ5Y7vMnLRgbIOPe dqU8HQAABeuTZmZ5MITAyCOwUDI8PR9GDFV9AIhHkPxd9H0XvrYA/Y44x1dvM4CYLgOc QU3i+fuAt1Mk1gCf3AkwDTbNlCLjcz6RPvVr9Jm3nUy4tJC8BP89ksv1CT3CvySBwTib WYb2vvU+kNLelD6nzHwf66V+LMByHhVjjAGiue4YLMuli7tdzrVGI28c3inLgDNGV4jo ONsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Z4LTUphqrMF2ZUQkliDnej/gPLyoQjbEBwgTd9g6gvo=; b=UliSxTV3VN4mnT7bbGZElMzwMK0smwUVM3xwqX0ehsbe4Hdqc+l9xiS6sLRjOgG+dj tsl8IiYy4kVF0IOr3gjlyhBEXZmPAksR6K+lgYhDQB8HAwXKFP+3YIpQpMiYPqUznstr BRFemWzwp7YHw6q+Y1juRWgsXbYCBZHJ4VwheQf2DW/mFcl5Yhh9S/ZlKdbjkAO+c9wr sU4zGiESEoRAEMsikcBSH14zh9ZRGAKXVEtA7rCcZpT4+esDtVVeO47ySzJyXz0TZeT8 vc9XZaCVAqMX51ScTk56UAyzY7YrM4+xI7Mpe2xRXz3dozpDq7Ok3vPQEH38YtvpzigM Fl9Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ca2-v6si2353652plb.305.2018.07.16.14.29.40; Mon, 16 Jul 2018 14:29:54 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730598AbeGPV6K (ORCPT + 99 others); Mon, 16 Jul 2018 17:58:10 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:37471 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728413AbeGPV6K (ORCPT ); Mon, 16 Jul 2018 17:58:10 -0400 Received: by mail-oi0-f68.google.com with SMTP id k81-v6so77584495oib.4; Mon, 16 Jul 2018 14:28:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Z4LTUphqrMF2ZUQkliDnej/gPLyoQjbEBwgTd9g6gvo=; b=MnEdgsmepfH3oGWAJrAZUdgk4sYMNwPC3BWT8OTROPnQRgXXSHtpYbddjBEg6umQml ByCdKlaGjP7uDpp5EqSwC7RUEzAW94K4VGJ34Q7ZQn710jCgcXOzNSuYpYt7RCVDfAUr De58pxY1KvyLtbe/xAHGY2yl4tZRbKWIMjVY+m45RWVJNV9Po+KeyvXHdDJd6owAZ6hW ASNjDZq9HMO83stDmpqjCCQ677kcojqKXBS4/D78tYqkRkBHzTotb3WH0mdq1C9oiL3s jqmyy+yxudk+D2Y+GjzhK81ADpTN7qp4lY20gGW2YK5/ETg1g6CK+l1ntY32nOzs3x00 X7/Q== X-Gm-Message-State: AOUpUlEsPg3rPJyPCW/6H56i6cW56NttKc6zCq1ZG47lHcfOnWiAxHqZ J8oP19Hbjm6aC4AmfKVZLvllP+o= X-Received: by 2002:aca:a64d:: with SMTP id p74-v6mr1034454oie.149.1531776534378; Mon, 16 Jul 2018 14:28:54 -0700 (PDT) Received: from localhost (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.gmail.com with ESMTPSA id r133-v6sm30021629oia.33.2018.07.16.14.28.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Jul 2018 14:28:53 -0700 (PDT) Date: Mon, 16 Jul 2018 15:28:52 -0600 From: Rob Herring To: Paul Burton Cc: Vinod , Mark Rutland , Paul Cercueil , Ralf Baechle , James Hogan , Zubair Lutfullah Kakakhel , Mathieu Malaterre , Daniel Silsby , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Subject: Re: [PATCH 02/14] dmaengine: dma-jz4780: Separate chan/ctrl registers Message-ID: <20180716212852.GA6323@rob-hp-laptop> References: <20180703123214.23090-1-paul@crapouillou.net> <20180703123214.23090-3-paul@crapouillou.net> <20180709170359.GI22377@vkoul-mobl> <1531237019.17118.1@crapouillou.net> <20180711121655.GS3219@vkoul-mobl> <20180711232715.djxrbgmcski5xtjp@pburton-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180711232715.djxrbgmcski5xtjp@pburton-laptop> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 11, 2018 at 04:27:15PM -0700, Paul Burton wrote: > Hi Vinod, > > On Wed, Jul 11, 2018 at 05:46:55PM +0530, Vinod wrote: > > > > > - jzdma->base = devm_ioremap_resource(dev, res); > > > > > - if (IS_ERR(jzdma->base)) > > > > > - return PTR_ERR(jzdma->base); > > > > > + jzdma->chn_base = devm_ioremap_resource(dev, res); > > > > > + if (IS_ERR(jzdma->chn_base)) > > > > > + return PTR_ERR(jzdma->chn_base); > > > > > + > > > > > + res = platform_get_resource(pdev, IORESOURCE_MEM, 1); > > > > > + if (!res) { > > > > > + dev_err(dev, "failed to get I/O memory\n"); > > > > > + return -EINVAL; > > > > > + } > > > > > > > > okay and this breaks if you happen to get probed on older DT. I think DT > > > > is treated as ABI so you need to continue support older method while > > > > finding if DT has split resources > > > > > > See my response to PrasannaKumar. All the Ingenic-based boards do compile > > > the devicetree within the kernel, so I think it's still fine to add breaking > > > changes. I'll wait on @Rob to give his point of view on this, though. > > > > > > (It's not something hard to change, but I'd like to know what's the policy > > > in that case. I have other DT-breaking patches to submit) > > > > The policy is that DT is an ABI and should not break :) > > I think in general that's a good policy to have for compatibility, but > if it's known for certain that the DT for all users of a driver is > always built into the kernel then I don't see why we shouldn't feel free > to change a binding. I agree with Paul that it'd be interesting to hear > the DT binding maintainers take on this. If the platform maintainers (and their users) don't care, then I don't have an issue with the change. It should still be an exception and not just any change goes. The commit message should still highlight that compatibility is being broken and why. Rob