From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966112AbcJ0OZr (ORCPT ); Thu, 27 Oct 2016 10:25:47 -0400 Received: from foss.arm.com ([217.140.101.70]:37786 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034067AbcJ0OZh (ORCPT ); Thu, 27 Oct 2016 10:25:37 -0400 Date: Thu, 27 Oct 2016 15:18:54 +0100 From: Mark Rutland To: Leo Li Cc: "M.H. Lian" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , Marc Zyngier , Stuart Yoder , Scott Wood , Shawn Guo , Mingkai Hu Subject: Re: [PATCH 1/6] dt/bindings: adjust bindings for Layerscape SCFG MSI Message-ID: <20161027141826.GC30535@leverpostej> References: <1477398945-22774-1-git-send-email-Minghuan.Lian@nxp.com> <20161026103101.GC19965@leverpostej> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 26, 2016 at 10:09:07PM +0000, Leo Li wrote: > > > -----Original Message----- > > From: Mark Rutland [mailto:mark.rutland@arm.com] > > Sent: Wednesday, October 26, 2016 5:31 AM > > To: M.H. Lian > > Cc: linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org; > > devicetree@vger.kernel.org; Marc Zyngier ; Stuart > > Yoder ; Leo Li ; Scott Wood > > ; Shawn Guo ; Mingkai Hu > > > > Subject: Re: [PATCH 1/6] dt/bindings: adjust bindings for Layerscape SCFG MSI > > > > On Tue, Oct 25, 2016 at 08:35:40PM +0800, Minghuan Lian wrote: > > > -- compatible: should be "fsl,-msi" to identify > > > - Layerscape PCIe MSI controller block such as: > > > - "fsl,1s1021a-msi" > > > - "fsl,1s1043a-msi" > > > +- compatible: should be "fsl,ls-scfg-msi" > > > > This breaks old DTBs, and throws away information which you describe above as > > valuable. So another NAK for that. > > I agree with you that we should maintain the backward compatibility. > But on the other hand, I just found that there is a silly typo in the > original binding that "ls" is wrongly spelled as "1s" and they look > too close to be noticed in previous patch reviews. :( Sure, that's annoying, but we're stuck with it. > The driver and all the DTSes used the binding with the typo which > covered up the problem. So even if we want to keep the > "fsl,-msi" binding, we probably want to fix the typo, right? > And that breaks the backward compatibility too. Regardless of what we do, we should *not* break compatibility. The old strings must remain. However, we can *add* correctly-spelt variants, and mark the existing strings as deprecated (in both the binding and driver). The in-kernel dts can be updated to use the correctly-spelt strings. Thanks, Mark. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Rutland Subject: Re: [PATCH 1/6] dt/bindings: adjust bindings for Layerscape SCFG MSI Date: Thu, 27 Oct 2016 15:18:54 +0100 Message-ID: <20161027141826.GC30535@leverpostej> References: <1477398945-22774-1-git-send-email-Minghuan.Lian@nxp.com> <20161026103101.GC19965@leverpostej> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Leo Li Cc: "devicetree@vger.kernel.org" , Marc Zyngier , Stuart Yoder , "linux-kernel@vger.kernel.org" , "M.H. Lian" , Mingkai Hu , Scott Wood , Shawn Guo , "linux-arm-kernel@lists.infradead.org" List-Id: devicetree@vger.kernel.org On Wed, Oct 26, 2016 at 10:09:07PM +0000, Leo Li wrote: > > > -----Original Message----- > > From: Mark Rutland [mailto:mark.rutland@arm.com] > > Sent: Wednesday, October 26, 2016 5:31 AM > > To: M.H. Lian > > Cc: linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org; > > devicetree@vger.kernel.org; Marc Zyngier ; Stuart > > Yoder ; Leo Li ; Scott Wood > > ; Shawn Guo ; Mingkai Hu > > > > Subject: Re: [PATCH 1/6] dt/bindings: adjust bindings for Layerscape SCFG MSI > > > > On Tue, Oct 25, 2016 at 08:35:40PM +0800, Minghuan Lian wrote: > > > -- compatible: should be "fsl,-msi" to identify > > > - Layerscape PCIe MSI controller block such as: > > > - "fsl,1s1021a-msi" > > > - "fsl,1s1043a-msi" > > > +- compatible: should be "fsl,ls-scfg-msi" > > > > This breaks old DTBs, and throws away information which you describe above as > > valuable. So another NAK for that. > > I agree with you that we should maintain the backward compatibility. > But on the other hand, I just found that there is a silly typo in the > original binding that "ls" is wrongly spelled as "1s" and they look > too close to be noticed in previous patch reviews. :( Sure, that's annoying, but we're stuck with it. > The driver and all the DTSes used the binding with the typo which > covered up the problem. So even if we want to keep the > "fsl,-msi" binding, we probably want to fix the typo, right? > And that breaks the backward compatibility too. Regardless of what we do, we should *not* break compatibility. The old strings must remain. However, we can *add* correctly-spelt variants, and mark the existing strings as deprecated (in both the binding and driver). The in-kernel dts can be updated to use the correctly-spelt strings. Thanks, Mark. From mboxrd@z Thu Jan 1 00:00:00 1970 From: mark.rutland@arm.com (Mark Rutland) Date: Thu, 27 Oct 2016 15:18:54 +0100 Subject: [PATCH 1/6] dt/bindings: adjust bindings for Layerscape SCFG MSI In-Reply-To: References: <1477398945-22774-1-git-send-email-Minghuan.Lian@nxp.com> <20161026103101.GC19965@leverpostej> Message-ID: <20161027141826.GC30535@leverpostej> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Oct 26, 2016 at 10:09:07PM +0000, Leo Li wrote: > > > -----Original Message----- > > From: Mark Rutland [mailto:mark.rutland at arm.com] > > Sent: Wednesday, October 26, 2016 5:31 AM > > To: M.H. Lian > > Cc: linux-arm-kernel at lists.infradead.org; linux-kernel at vger.kernel.org; > > devicetree at vger.kernel.org; Marc Zyngier ; Stuart > > Yoder ; Leo Li ; Scott Wood > > ; Shawn Guo ; Mingkai Hu > > > > Subject: Re: [PATCH 1/6] dt/bindings: adjust bindings for Layerscape SCFG MSI > > > > On Tue, Oct 25, 2016 at 08:35:40PM +0800, Minghuan Lian wrote: > > > -- compatible: should be "fsl,-msi" to identify > > > - Layerscape PCIe MSI controller block such as: > > > - "fsl,1s1021a-msi" > > > - "fsl,1s1043a-msi" > > > +- compatible: should be "fsl,ls-scfg-msi" > > > > This breaks old DTBs, and throws away information which you describe above as > > valuable. So another NAK for that. > > I agree with you that we should maintain the backward compatibility. > But on the other hand, I just found that there is a silly typo in the > original binding that "ls" is wrongly spelled as "1s" and they look > too close to be noticed in previous patch reviews. :( Sure, that's annoying, but we're stuck with it. > The driver and all the DTSes used the binding with the typo which > covered up the problem. So even if we want to keep the > "fsl,-msi" binding, we probably want to fix the typo, right? > And that breaks the backward compatibility too. Regardless of what we do, we should *not* break compatibility. The old strings must remain. However, we can *add* correctly-spelt variants, and mark the existing strings as deprecated (in both the binding and driver). The in-kernel dts can be updated to use the correctly-spelt strings. Thanks, Mark.