LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Kumar Gala <galak@kernel.crashing.org>
To: Liu Shengzhou-B36685 <B36685@freescale.com>
Cc: Zhao Qiang-B45475 <B45475@freescale.com>,
	"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: [PATCH] powerpc/p1010rdb:remove interrupts of ethernet-phy in device tree
Date: Thu, 12 Sep 2013 11:41:55 -0500	[thread overview]
Message-ID: <D8AFFF30-31B1-4B3B-B9D0-DC209A5A3BCD@kernel.crashing.org> (raw)
In-Reply-To: <3F453DDFF675A64A89321A1F35281021ABA9F8@039-SN1MPN1-004.039d.mgd.msft.net>


On Sep 12, 2013, at 1:54 AM, Liu Shengzhou-B36685 wrote:

>=20
>=20
>> -----Original Message-----
>> From: Kumar Gala [mailto:galak@kernel.crashing.org]
>> Sent: Wednesday, September 11, 2013 11:13 PM
>> To: Zhao Qiang-B45475
>> Cc: linuxppc-dev@lists.ozlabs.org; Liu Shengzhou-B36685
>> Subject: Re: [PATCH] powerpc/p1010rdb:remove interrupts of =
ethernet-phy in
>> device tree
>>=20
>>=20
>> On Sep 10, 2013, at 10:49 PM, Zhao Qiang wrote:
>>=20
>>> Since P1010RDB-PA and P1010RDB-PB boards use different external PHY
>>> interrupt signals.
>>> And actually the PHY interrupt is not used effectively with
>>> corresponding interrupt handler.
>>> So we can remove the interrupts node without side-effect to comply
>>> with both P1010RDB-PA and P1010RDB-PB.
>>>=20
>>> Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
>>> Signed-off-by: Zhao Qiang <B45475@freescale.com>
>>> ---
>>> arch/powerpc/boot/dts/p1010rdb.dtsi | 3 ---
>>> 1 file changed, 3 deletions(-)
>>>=20
>>=20
>> NAK.  The device tree should represent the HW not what drivers decide =
to do with
>> it.
>>=20
>> If different board revs have different interrupt signals than create =
dts's to
>> handle the 2 board revs.
>>=20
>> - k
>>=20
> You mean we need to create p1010rdb-pa.dtsi and p1010rdb-pb.dtsi =
replacing current p1010rdb.dtsi just because of the unused phy =
interrupt?
> and phy interrupt is not present in those dts of P3/P4/P5 platforms.
> Actually currently many hardware are not present in dts, such as a lot =
of i2c devices, temperature monitor, etc.
>=20
> -Shengzhou
>=20

I'm saying of the board revs are different w/regards to how the PHY =
interrupt is wired, than create two .dts one for each of the board revs.

If the p3/p4/p5 platforms are missing the phy interrupt in the .dts than =
its an error.

Other devices like i2c, temp mon, etc should be added.  There is a =
difference between something not existing because people haven't gotten =
around to it / there isn't a binding vs a using the lack of information =
as a configuration mechanism.

- k

  reply	other threads:[~2013-09-12 16:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-11  3:49 [PATCH] powerpc/p1010rdb:remove interrupts of ethernet-phy in device tree Zhao Qiang
2013-09-11 15:12 ` Kumar Gala
2013-09-12  6:54   ` Liu Shengzhou-B36685
2013-09-12 16:41     ` Kumar Gala [this message]
2013-09-13  2:58       ` Zhao Qiang-B45475
2013-09-13  3:17       ` Zhao Qiang-B45475
2013-09-16 22:39         ` Scott Wood

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=D8AFFF30-31B1-4B3B-B9D0-DC209A5A3BCD@kernel.crashing.org \
    --to=galak@kernel.crashing.org \
    --cc=B36685@freescale.com \
    --cc=B45475@freescale.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /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