linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/p1010rdb:remove interrupts of ethernet-phy in device tree
@ 2013-09-11  3:49 Zhao Qiang
  2013-09-11 15:12 ` Kumar Gala
  0 siblings, 1 reply; 7+ messages in thread
From: Zhao Qiang @ 2013-09-11  3:49 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Zhao Qiang, Shengzhou Liu

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.

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(-)

diff --git a/arch/powerpc/boot/dts/p1010rdb.dtsi b/arch/powerpc/boot/dts/p1010rdb.dtsi
index 7fc3402..2433ae4 100644
--- a/arch/powerpc/boot/dts/p1010rdb.dtsi
+++ b/arch/powerpc/boot/dts/p1010rdb.dtsi
@@ -199,17 +199,14 @@
 
 	mdio@24000 {
 		phy0: ethernet-phy@0 {
-			interrupts = <3 1 0 0>;
 			reg = <0x1>;
 		};
 
 		phy1: ethernet-phy@1 {
-			interrupts = <2 1 0 0>;
 			reg = <0x0>;
 		};
 
 		phy2: ethernet-phy@2 {
-			interrupts = <2 1 0 0>;
 			reg = <0x2>;
 		};
 
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] powerpc/p1010rdb:remove interrupts of ethernet-phy in device tree
  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
  0 siblings, 1 reply; 7+ messages in thread
From: Kumar Gala @ 2013-09-11 15:12 UTC (permalink / raw)
  To: Zhao Qiang; +Cc: linuxppc-dev, Shengzhou Liu


On Sep 10, 2013, at 10:49 PM, Zhao Qiang wrote:

> 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

NAK.  The device tree should represent the HW not what drivers decide to =
do with it.

If different board revs have different interrupt signals than create =
dts's to handle the 2 board revs.

- k

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH] powerpc/p1010rdb:remove interrupts of ethernet-phy in device tree
  2013-09-11 15:12 ` Kumar Gala
@ 2013-09-12  6:54   ` Liu Shengzhou-B36685
  2013-09-12 16:41     ` Kumar Gala
  0 siblings, 1 reply; 7+ messages in thread
From: Liu Shengzhou-B36685 @ 2013-09-12  6:54 UTC (permalink / raw)
  To: Kumar Gala, Zhao Qiang-B45475; +Cc: linuxppc-dev



> -----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 i=
n
> 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.
> >
> > 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
> 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 i=
2c devices, temperature monitor, etc.

-Shengzhou

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] powerpc/p1010rdb:remove interrupts of ethernet-phy in device tree
  2013-09-12  6:54   ` Liu Shengzhou-B36685
@ 2013-09-12 16:41     ` Kumar Gala
  2013-09-13  2:58       ` Zhao Qiang-B45475
  2013-09-13  3:17       ` Zhao Qiang-B45475
  0 siblings, 2 replies; 7+ messages in thread
From: Kumar Gala @ 2013-09-12 16:41 UTC (permalink / raw)
  To: Liu Shengzhou-B36685; +Cc: Zhao Qiang-B45475, linuxppc-dev


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH] powerpc/p1010rdb:remove interrupts of ethernet-phy in device tree
  2013-09-12 16:41     ` Kumar Gala
@ 2013-09-13  2:58       ` Zhao Qiang-B45475
  2013-09-13  3:17       ` Zhao Qiang-B45475
  1 sibling, 0 replies; 7+ messages in thread
From: Zhao Qiang-B45475 @ 2013-09-13  2:58 UTC (permalink / raw)
  To: Kumar Gala, Liu Shengzhou-B36685; +Cc: linuxppc-dev

Do you have any solutions?

-----Original Message-----
From: Kumar Gala [mailto:galak@kernel.crashing.org]=20
Sent: Friday, September 13, 2013 12:42 AM
To: Liu Shengzhou-B36685
Cc: Zhao Qiang-B45475; linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] powerpc/p1010rdb:remove interrupts of ethernet-phy in =
device tree


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=20
>> 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=20
>>> interrupt signals.
>>> And actually the PHY interrupt is not used effectively with=20
>>> corresponding interrupt handler.
>>> So we can remove the interrupts node without side-effect to comply=20
>>> 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=20
>> to do with it.
>>=20
>> If different board revs have different interrupt signals than create=20
>> dts's to handle the 2 board revs.
>>=20
>> - k
>>=20
> You mean we need to create p1010rdb-pa.dtsi and p1010rdb-pb.dtsi replacin=
g 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 interru=
pt 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 it=
s an error.

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

- k

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [PATCH] powerpc/p1010rdb:remove interrupts of ethernet-phy in device tree
  2013-09-12 16:41     ` Kumar Gala
  2013-09-13  2:58       ` Zhao Qiang-B45475
@ 2013-09-13  3:17       ` Zhao Qiang-B45475
  2013-09-16 22:39         ` Scott Wood
  1 sibling, 1 reply; 7+ messages in thread
From: Zhao Qiang-B45475 @ 2013-09-13  3:17 UTC (permalink / raw)
  To: Kumar Gala, Liu Shengzhou-B36685; +Cc: linuxppc-dev

On Sep 13, 2013, at 12:42 AM, Kumar Gala wrote:

> -----Original Message-----
> From: Kumar Gala [mailto:galak@kernel.crashing.org]
> Sent: Friday, September 13, 2013 12:42 AM
> To: Liu Shengzhou-B36685
> Cc: Zhao Qiang-B45475; linuxppc-dev@lists.ozlabs.org
> Subject: Re: [PATCH] powerpc/p1010rdb:remove interrupts of ethernet-phy
> in device tree
>=20
>=20
> On Sep 12, 2013, at 1:54 AM, Liu Shengzhou-B36685 wrote:
>=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
> >>
> >>
> >> On Sep 10, 2013, at 10:49 PM, Zhao Qiang wrote:
> >>
> >>
> >> NAK.  The device tree should represent the HW not what drivers decide
> >> to do with it.
> >>
> >> If different board revs have different interrupt signals than create
> >> dts's to handle the 2 board revs.
> >>
> >> - k
> >>
> > 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.
> >
> > -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.
>=20
> If the p3/p4/p5 platforms are missing the phy interrupt in the .dts than
> its an error.
>=20
> 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.
>=20
> - k
>=20
>=20

Kumar, please advice your solution, thanks.

-zhaoqiang

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] powerpc/p1010rdb:remove interrupts of ethernet-phy in device tree
  2013-09-13  3:17       ` Zhao Qiang-B45475
@ 2013-09-16 22:39         ` Scott Wood
  0 siblings, 0 replies; 7+ messages in thread
From: Scott Wood @ 2013-09-16 22:39 UTC (permalink / raw)
  To: Zhao Qiang-B45475; +Cc: Liu Shengzhou-B36685, linuxppc-dev

On Fri, 2013-09-13 at 03:17 +0000, Zhao Qiang-B45475 wrote:
> On Sep 13, 2013, at 12:42 AM, Kumar Gala wrote:
> 
> > -----Original Message-----
> > From: Kumar Gala [mailto:galak@kernel.crashing.org]
> > Sent: Friday, September 13, 2013 12:42 AM
> > To: Liu Shengzhou-B36685
> > Cc: Zhao Qiang-B45475; linuxppc-dev@lists.ozlabs.org
> > Subject: Re: [PATCH] powerpc/p1010rdb:remove interrupts of ethernet-phy
> > in device tree
> > 
> > 
> > On Sep 12, 2013, at 1:54 AM, Liu Shengzhou-B36685 wrote:
> > 
> > >
> > >
> > >> -----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
> > >>
> > >>
> > >> On Sep 10, 2013, at 10:49 PM, Zhao Qiang wrote:
> > >>
> > >>
> > >> NAK.  The device tree should represent the HW not what drivers decide
> > >> to do with it.
> > >>
> > >> If different board revs have different interrupt signals than create
> > >> dts's to handle the 2 board revs.
> > >>
> > >> - k
> > >>
> > > 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.
> > >
> > > -Shengzhou
> > >
> > 
> > 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
> > 
> > 
> 
> Kumar, please advice your solution, thanks.

He already did -- have separate dts files.  This doesn't need to result
in massive duplication, because everything but the phy interrupt (and
any other differences there may be between revisions) can go into a
common dtsi file.

-Scott

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-09-16 22:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2013-09-13  2:58       ` Zhao Qiang-B45475
2013-09-13  3:17       ` Zhao Qiang-B45475
2013-09-16 22:39         ` Scott Wood

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).