* [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X board
@ 2015-08-27 9:24 Simon Horman
2015-08-27 11:57 ` [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X bo Wolfram Sang
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: Simon Horman @ 2015-08-27 9:24 UTC (permalink / raw)
To: linux-sh
From: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
This is a work-around for limitations in the driver implementation.
Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
[horms: updated filename to salvator-x; updated changelog]
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
index 109261ea60bd..2e2329451791 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
+++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
@@ -134,6 +134,7 @@
reg = <0>;
interrupt-parent = <&gpio2>;
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
+ max-speed = <100>;
};
};
--
2.1.4
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X bo
2015-08-27 9:24 [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X board Simon Horman
@ 2015-08-27 11:57 ` Wolfram Sang
2015-08-27 11:59 ` Geert Uytterhoeven
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Wolfram Sang @ 2015-08-27 11:57 UTC (permalink / raw)
To: linux-sh
[-- Attachment #1: Type: text/plain, Size: 322 bytes --]
On Thu, Aug 27, 2015 at 06:24:10PM +0900, Simon Horman wrote:
> From: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
>
> This is a work-around for limitations in the driver implementation.
I know this is marked "local: hack:", still: If this is a driver
limitation, shouldn't it rather be in the dtsi then?
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X bo
2015-08-27 9:24 [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X board Simon Horman
2015-08-27 11:57 ` [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X bo Wolfram Sang
@ 2015-08-27 11:59 ` Geert Uytterhoeven
2015-08-27 12:46 ` Wolfram Sang
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Geert Uytterhoeven @ 2015-08-27 11:59 UTC (permalink / raw)
To: linux-sh
On Thu, Aug 27, 2015 at 1:57 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
> On Thu, Aug 27, 2015 at 06:24:10PM +0900, Simon Horman wrote:
>> From: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
>>
>> This is a work-around for limitations in the driver implementation.
>
> I know this is marked "local: hack:", still: If this is a driver
> limitation, shouldn't it rather be in the dtsi then?
You mean, in the driver?
DT decribes the hardware, not driver limitations.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X bo
2015-08-27 9:24 [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X board Simon Horman
2015-08-27 11:57 ` [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X bo Wolfram Sang
2015-08-27 11:59 ` Geert Uytterhoeven
@ 2015-08-27 12:46 ` Wolfram Sang
2015-08-27 12:58 ` Sergei Shtylyov
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Wolfram Sang @ 2015-08-27 12:46 UTC (permalink / raw)
To: linux-sh
[-- Attachment #1: Type: text/plain, Size: 775 bytes --]
On Thu, Aug 27, 2015 at 01:59:32PM +0200, Geert Uytterhoeven wrote:
> On Thu, Aug 27, 2015 at 1:57 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
> > On Thu, Aug 27, 2015 at 06:24:10PM +0900, Simon Horman wrote:
> >> From: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
> >>
> >> This is a work-around for limitations in the driver implementation.
> >
> > I know this is marked "local: hack:", still: If this is a driver
> > limitation, shouldn't it rather be in the dtsi then?
>
> You mean, in the driver?
>
> DT decribes the hardware, not driver limitations.
I wanted to ensure that this workaround goes into all dts files
including the r8a7795 dtsi, even custom ones for testing. This is rather
SoC than board specific, no? And yes, still a hack :)
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X bo
2015-08-27 9:24 [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X board Simon Horman
` (2 preceding siblings ...)
2015-08-27 12:46 ` Wolfram Sang
@ 2015-08-27 12:58 ` Sergei Shtylyov
2015-08-27 13:00 ` Sergei Shtylyov
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Sergei Shtylyov @ 2015-08-27 12:58 UTC (permalink / raw)
To: linux-sh
On 8/27/2015 12:24 PM, Simon Horman wrote:
> From: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
>
> This is a work-around for limitations in the driver implementation.
>
> Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
> [horms: updated filename to salvator-x; updated changelog]
> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
> ---
> arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
> index 109261ea60bd..2e2329451791 100644
> --- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
> +++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts
> @@ -134,6 +134,7 @@
> reg = <0>;
> interrupt-parent = <&gpio2>;
> interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
Actually, the GPIO interrupt was also used to overcome the driver's
limitation. The AVB_PHY_IRQ is directly reflected in the AVB registers, I just
didn't want to use a thread in order to call phy_mac_interrupt().
> + max-speed = <100>;
> };
>
> };
MBR, Sergei
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X bo
2015-08-27 9:24 [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X board Simon Horman
` (3 preceding siblings ...)
2015-08-27 12:58 ` Sergei Shtylyov
@ 2015-08-27 13:00 ` Sergei Shtylyov
2015-08-27 13:24 ` Wolfram Sang
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Sergei Shtylyov @ 2015-08-27 13:00 UTC (permalink / raw)
To: linux-sh
On 8/27/2015 3:46 PM, Wolfram Sang wrote:
>>>> From: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
>>>>
>>>> This is a work-around for limitations in the driver implementation.
>>>
>>> I know this is marked "local: hack:", still: If this is a driver
>>> limitation, shouldn't it rather be in the dtsi then?
>>
>> You mean, in the driver?
>>
>> DT decribes the hardware, not driver limitations.
>
> I wanted to ensure that this workaround goes into all dts files
> including the r8a7795 dtsi, even custom ones for testing. This is rather
> SoC than board specific, no?
I don't think so. BTW, the prop is specified for the PHY device which is
not a part of SoC, so your question is pointless.
MBR, Sergei
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X bo
2015-08-27 9:24 [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X board Simon Horman
` (4 preceding siblings ...)
2015-08-27 13:00 ` Sergei Shtylyov
@ 2015-08-27 13:24 ` Wolfram Sang
2015-08-27 23:14 ` Simon Horman
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Wolfram Sang @ 2015-08-27 13:24 UTC (permalink / raw)
To: linux-sh
[-- Attachment #1: Type: text/plain, Size: 138 bytes --]
> I don't think so. BTW, the prop is specified for the PHY device which is
> not a part of SoC, so your question is pointless.
Ack.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X bo
2015-08-27 9:24 [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X board Simon Horman
` (5 preceding siblings ...)
2015-08-27 13:24 ` Wolfram Sang
@ 2015-08-27 23:14 ` Simon Horman
2015-08-28 0:46 ` Magnus Damm
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Simon Horman @ 2015-08-27 23:14 UTC (permalink / raw)
To: linux-sh
On Thu, Aug 27, 2015 at 01:59:32PM +0200, Geert Uytterhoeven wrote:
> On Thu, Aug 27, 2015 at 1:57 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
> > On Thu, Aug 27, 2015 at 06:24:10PM +0900, Simon Horman wrote:
> >> From: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
> >>
> >> This is a work-around for limitations in the driver implementation.
> >
> > I know this is marked "local: hack:", still: If this is a driver
> > limitation, shouldn't it rather be in the dtsi then?
>
> You mean, in the driver?
>
> DT decribes the hardware, not driver limitations.
Yes indeed, that was my main reason behind labelling it as a local hack.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X bo
2015-08-27 9:24 [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X board Simon Horman
` (6 preceding siblings ...)
2015-08-27 23:14 ` Simon Horman
@ 2015-08-28 0:46 ` Magnus Damm
2015-08-28 5:23 ` Simon Horman
2015-08-28 8:29 ` Magnus Damm
9 siblings, 0 replies; 11+ messages in thread
From: Magnus Damm @ 2015-08-28 0:46 UTC (permalink / raw)
To: linux-sh
Hi Geert,
On Thu, Aug 27, 2015 at 8:59 PM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:
> On Thu, Aug 27, 2015 at 1:57 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
>> On Thu, Aug 27, 2015 at 06:24:10PM +0900, Simon Horman wrote:
>>> From: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
>>>
>>> This is a work-around for limitations in the driver implementation.
>>
>> I know this is marked "local: hack:", still: If this is a driver
>> limitation, shouldn't it rather be in the dtsi then?
>
> You mean, in the driver?
I also think it would make sense to have this kind of short term hack
in the _driver_ and not in the DTS.
> DT decribes the hardware, not driver limitations.
Totally agree!
/ magnus
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X bo
2015-08-27 9:24 [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X board Simon Horman
` (7 preceding siblings ...)
2015-08-28 0:46 ` Magnus Damm
@ 2015-08-28 5:23 ` Simon Horman
2015-08-28 8:29 ` Magnus Damm
9 siblings, 0 replies; 11+ messages in thread
From: Simon Horman @ 2015-08-28 5:23 UTC (permalink / raw)
To: linux-sh
On Fri, Aug 28, 2015 at 09:46:16AM +0900, Magnus Damm wrote:
> Hi Geert,
>
> On Thu, Aug 27, 2015 at 8:59 PM, Geert Uytterhoeven
> <geert@linux-m68k.org> wrote:
> > On Thu, Aug 27, 2015 at 1:57 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
> >> On Thu, Aug 27, 2015 at 06:24:10PM +0900, Simon Horman wrote:
> >>> From: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
> >>>
> >>> This is a work-around for limitations in the driver implementation.
> >>
> >> I know this is marked "local: hack:", still: If this is a driver
> >> limitation, shouldn't it rather be in the dtsi then?
> >
> > You mean, in the driver?
>
> I also think it would make sense to have this kind of short term hack
> in the _driver_ and not in the DTS.
I agree having it in DTS is not nice.
Which driver would you see it fitting into?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X bo
2015-08-27 9:24 [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X board Simon Horman
` (8 preceding siblings ...)
2015-08-28 5:23 ` Simon Horman
@ 2015-08-28 8:29 ` Magnus Damm
9 siblings, 0 replies; 11+ messages in thread
From: Magnus Damm @ 2015-08-28 8:29 UTC (permalink / raw)
To: linux-sh
Hi Simon,
On Fri, Aug 28, 2015 at 2:23 PM, Simon Horman <horms@verge.net.au> wrote:
> On Fri, Aug 28, 2015 at 09:46:16AM +0900, Magnus Damm wrote:
>> Hi Geert,
>>
>> On Thu, Aug 27, 2015 at 8:59 PM, Geert Uytterhoeven
>> <geert@linux-m68k.org> wrote:
>> > On Thu, Aug 27, 2015 at 1:57 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
>> >> On Thu, Aug 27, 2015 at 06:24:10PM +0900, Simon Horman wrote:
>> >>> From: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
>> >>>
>> >>> This is a work-around for limitations in the driver implementation.
>> >>
>> >> I know this is marked "local: hack:", still: If this is a driver
>> >> limitation, shouldn't it rather be in the dtsi then?
>> >
>> > You mean, in the driver?
>>
>> I also think it would make sense to have this kind of short term hack
>> in the _driver_ and not in the DTS.
>
> I agree having it in DTS is not nice.
> Which driver would you see it fitting into?
Based on the commit message it must be "in the driver implementation". =)
Cheers,
/ magnus
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2015-08-28 8:29 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-27 9:24 [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X board Simon Horman
2015-08-27 11:57 ` [PATCH/RFC 10/10] Local: Hack: arm64: dts: r8a7795: add ravb phy max-speed 100 for Salvator-X bo Wolfram Sang
2015-08-27 11:59 ` Geert Uytterhoeven
2015-08-27 12:46 ` Wolfram Sang
2015-08-27 12:58 ` Sergei Shtylyov
2015-08-27 13:00 ` Sergei Shtylyov
2015-08-27 13:24 ` Wolfram Sang
2015-08-27 23:14 ` Simon Horman
2015-08-28 0:46 ` Magnus Damm
2015-08-28 5:23 ` Simon Horman
2015-08-28 8:29 ` Magnus Damm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox