devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Iyappan Subramanian <isubramanian@apm.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: David Miller <davem@davemloft.net>,
	netdev <netdev@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	mlangsdo@redhat.com, patches <patches@apm.com>,
	Keyur Chudgar <kchudgar@apm.com>
Subject: Re: [PATCH 2/3] dtb: change binding name to match with newer firmware DT
Date: Fri, 27 Feb 2015 15:52:54 -0800	[thread overview]
Message-ID: <CAKh23Fm5HpNEfs40RTf_XtQ6ris5cCheAcY1WdLND04AwsvdSQ@mail.gmail.com> (raw)
In-Reply-To: <4061014.S4PDWltU3G@wuerfel>

On Fri, Feb 27, 2015 at 12:33 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> On Friday 27 February 2015 12:08:29 Iyappan Subramanian wrote:
>> diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi
>> index f1ad9c2..a857794 100644
>> --- a/arch/arm64/boot/dts/apm/apm-storm.dtsi
>> +++ b/arch/arm64/boot/dts/apm/apm-storm.dtsi
>> @@ -622,7 +622,7 @@
>>                 };
>>
>>                 sgenet0: ethernet@1f210000 {
>> -                       compatible = "apm,xgene-enet";
>> +                       compatible = "apm,xgene1-sgenet";
>>                         status = "disabled";
>>                         reg = <0x0 0x1f210000 0x0 0xd100>,
>>                               <0x0 0x1f200000 0x0 0Xc300>,
>>
>
> This will break booting the new dtb on older kernels, right?

This will not break booting older kernels.  In fact, this will fix it,
by having the specific binding,
older kernel that does not have support for these interfaces, will not
call probe.

For example, 3.17 kernel that does not have support for SGMII based 1G
and XFI 10G interfaces
will not probe these interfaces when booted with newer dtb.

>
> You should normally list the most generic model in addition to the
> specific one.

If we list generic model ("xgene-enet") as well, probe will be called
for the interfaces that the kernel does not have support for,
which is what we are trying to fix.

>
>         Arnd

  reply	other threads:[~2015-02-27 23:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-27 20:08 [PATCH 0/3] Fix backward compatibility of newer firmware with older kernel Iyappan Subramanian
2015-02-27 20:08 ` [PATCH 1/3] Documentation: dts: Update compatible field description for APM X-Gene Iyappan Subramanian
     [not found]   ` <1425067710-14879-2-git-send-email-isubramanian-qTEPVZfXA3Y@public.gmane.org>
2015-02-27 20:15     ` Mark Rutland
2015-02-27 23:58       ` Iyappan Subramanian
2015-03-02 14:17         ` Mark Rutland
2015-02-27 20:08 ` [PATCH 2/3] dtb: change binding name to match with newer firmware DT Iyappan Subramanian
2015-02-27 20:33   ` Arnd Bergmann
2015-02-27 23:52     ` Iyappan Subramanian [this message]
2015-03-02 14:48       ` Mark Rutland
2015-03-03  0:59         ` Iyappan Subramanian
2015-02-27 20:08 ` [PATCH 3/3] drivers: net: xgene: fix new firmware backward compatibility with older driver Iyappan Subramanian
     [not found] ` <1425067710-14879-1-git-send-email-isubramanian-qTEPVZfXA3Y@public.gmane.org>
2015-02-27 20:49   ` [PATCH 0/3] Fix backward compatibility of newer firmware with older kernel David Miller
2015-02-27 23:59     ` Iyappan Subramanian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKh23Fm5HpNEfs40RTf_XtQ6ris5cCheAcY1WdLND04AwsvdSQ@mail.gmail.com \
    --to=isubramanian@apm.com \
    --cc=arnd@arndb.de \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=kchudgar@apm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=mlangsdo@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=patches@apm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).