Hi,
On Fri, Aug 17, 2018 at 9:32 AM Jerome Brunet wrote:
>
> On Fri, 2018-05-18 at 14:55 +0100, Jose Abreu wrote:
> > This is cutting down performance. Once the timer is armed it should run
> > after the time expires for the first packet sent and not the last one.
> >
> > After this change,
PRG_ETH0_EXT_PHY_MODE_MASK,
> + PRG_ETH0_EXT_RGMII_MODE);
> + break;
> + case PHY_INTERFACE_MODE_RMII:
> + /* disable RGMII mode -> enables RMII mode */
if you have to re-send it for whatever r
to the
documentation so differences (if there are any) between Meson8m2 and the
other SoCs can be taken care of within the driver.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
Documentation/devicetree/bindings/net/meson-dwmac.txt | 5 +++--
1 file changed, 3 inse
ions later on (if needed).
Martin Blumenstingl (2):
dt-bindings: net: meson-dwmac: add support for the Meson8m2 SoC
net: stmmac: dwmac-meson8b: Add support for the Meson8m2 SoC
Documentation/devicetree/bindings/net/meson-dwmac.txt | 5 +++--
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c |
The Meson8m2 SoC uses a similar (potentially even identical) register
layout as the Meson8b and GXBB SoCs for the dwmac glue.
Add a new compatible string and update the module description to
indicate support for these SoCs.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.
Hi Jerome,
On Sat, Feb 17, 2018 at 5:41 PM, Jerome Brunet <jbru...@baylibre.com> wrote:
> On Sat, 2018-02-17 at 15:08 +0100, Martin Blumenstingl wrote:
>> The common clock framework needs access to the "clock configuration"
>> structs during runtime.
>> How
on the stack) because
the common clock framework already uses kstrdup() internally.
No functional changes intended.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
.../net/ethernet/stmicro/stmmac/dwmac-meson8b.c| 156 +
1 file chang
framework know
about these configurations.
Suggested-by: Jerome Brunet <jbru...@baylibre.com>
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
.../net/ethernet/stmicro/stmmac/dwmac-meson8b.c| 45 --
1 file changed, 24 insertions(+),
Nothing in the dwmac-meson8b driver (except .probe itself) requires the
platform_device anymore after .probe has finished. Replace it with a
pointer to struct device since this is what the functions inside the
driver are actually accessing.
No functional changes.
Signed-off-by: Martin
[0] http://lists.infradead.org/pipermail/linux-amlogic/2018-January/006143.html
Martin Blumenstingl (3):
net: stmmac: dwmac-meson8b: simplify clock registration
net: stmmac: dwmac-meson8b: only keep struct device around
net: stmmac: dwmac-meson8b: make the clock configurations private
.../ne
On Tue, Jan 16, 2018 at 12:20 PM, Martin Blumenstingl
<martin.blumensti...@googlemail.com> wrote:
> On Sun, Jan 14, 2018 at 10:48 PM, Martin Blumenstingl
> <martin.blumensti...@googlemail.com> wrote:
>> Tests (using an oscilloscope and an Odroid-C1 board with a RTL8211F
Hi Yixun,
On Thu, Jan 18, 2018 at 11:27 AM, Yixun Lan <yixun@amlogic.com> wrote:
> HI Jerome
>
> On 01/17/18 01:19, Jerome Brunet wrote:
>> On Tue, 2018-01-16 at 12:17 +0100, Martin Blumenstingl wrote:
>>>>> Hi Martin
>>>>>
>>>
On Sun, Jan 14, 2018 at 10:48 PM, Martin Blumenstingl
<martin.blumensti...@googlemail.com> wrote:
> Tests (using an oscilloscope and an Odroid-C1 board with a RTL8211F
> RGMII PHY) have shown that the PRG_ETH0 register behaves as follows:
> - bit 4 is a mux to choose between tw
Hi Jerome, Hi Yixun,
On Tue, Jan 16, 2018 at 10:37 AM, Jerome Brunet <jbru...@baylibre.com> wrote:
> On Tue, 2018-01-16 at 16:25 +0800, Yixun Lan wrote:
>>
>> On 01/16/18 01:10, Martin Blumenstingl wrote:
>> > Hi Dave,
>> >
>> > this series is n
we set before, with that non-existing
divide-by-5-or-10 divider).
Special thanks go to Linus Lüssing for testing the various bits and
checking the results with an oscilloscope on his Odroid-C1!
Fixes: 566e8251625304 ("net: stmmac: add a glue driver for the Amlogic Meson 8b
/ GXBB DWMAC")
Reporte
not routed
to the PHY in RMII mode.
While here also rename meson8b_init_clk to meson8b_init_rgmii_tx_clk to
make it easier to understand the code.
Fixes: 566e8251625304 ("net: stmmac: add a glue driver for the Amlogic Meson 8b
/ GXBB DWMAC")
Signed-off-by: Martin Blumenstin
)
Reported-by: Emiliano Ingrassia <ingras...@epigenesys.com>
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
Reviewed-by: Jerome Brunet <jbru...@baylibre.com>
Tested-by: Jerome Brunet <jbru...@baylibre.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-
d a glue driver for the Amlogic Meson 8b
/ GXBB DWMAC")
Suggested-by: Jerome Brunet <jbru...@baylibre.com>
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
Reviewed-by: Jerome Brunet <jbru...@baylibre.com>
Tested-by: Jerome Brunet <jbru...@baylibre.com&
//lists.infradead.org/pipermail/linux-amlogic/2017-December/005861.html
[3] http://lists.infradead.org/pipermail/linux-amlogic/2017-December/005899.html
[4] http://lists.infradead.org/pipermail/linux-amlogic/2018-January/006125.html
Martin Blumenstingl (4):
net: stmmac: dwmac-meson8b: only config
Hi Jerome,
On Mon, Jan 15, 2018 at 12:49 PM, Jerome Brunet <jbru...@baylibre.com> wrote:
> On Sun, 2018-01-14 at 22:48 +0100, Martin Blumenstingl wrote:
>> Tests (using an oscilloscope and an Odroid-C1 board with a RTL8211F
>> RGMII PHY) have shown that the PRG_ETH0 regist
Hi Jerome,
On Mon, Jan 15, 2018 at 12:46 PM, Jerome Brunet <jbru...@baylibre.com> wrote:
> On Sun, 2018-01-14 at 22:48 +0100, Martin Blumenstingl wrote:
>>
>
> [...]
>
>> @@ -204,12 +200,24 @@ static int meson8b_init_prg_eth(s
Hi Jerome,
On Mon, Jan 15, 2018 at 12:46 PM, Jerome Brunet <jbru...@baylibre.com> wrote:
> On Sun, 2018-01-14 at 22:48 +0100, Martin Blumenstingl wrote:
>> Instead of using a custom buffer, snprintf() and devm_kstrdup() we can
>> simplify this by using devm_kasprintf().
>
not routed
to the PHY in RMII mode.
While here also rename meson8b_init_clk to meson8b_init_rgmii_tx_clk to
make it easier to understand the code.
Fixes: 566e8251625304 ("net: stmmac: add a glue driver for the Amlogic Meson 8b
/ GXBB DWMAC")
Signed-off-by: Martin Blumenstin
Instead of using a custom buffer, snprintf() and devm_kstrdup() we can
simplify this by using devm_kasprintf().
No functional changes - this just makes the code shorter.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
drivers/net/ethernet/stmicro/stmmac
)
Reported-by: Emiliano Ingrassia <ingras...@epigenesys.com>
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
Reviewed-by: Jerome Brunet <jbru...@baylibre.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 4 +++-
1 file changed, 3 insertions(+
d a glue driver for the Amlogic Meson 8b
/ GXBB DWMAC")
Suggested-by: Jerome Brunet <jbru...@baylibre.com>
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 2 +-
1 file changed, 1 insertion(+), 1 delet
we set before, with that non-existing
divide-by-5-or-10 divider).
Special thanks go to Linus Lüssing for testing the various bits and
checking the results with an oscilloscope on his Odroid-C1!
Fixes: 566e8251625304 ("net: stmmac: add a glue driver for the Amlogic Meson 8b
/ GXBB DWMAC")
Rep
g/pipermail/linux-amlogic/2017-December/005861.html
[3] http://lists.infradead.org/pipermail/linux-amlogic/2017-December/005899.html
Martin Blumenstingl (5):
net: stmmac: dwmac-meson8b: only configure the clocks in RGMII mode
net: stmmac: dwmac-meson8b: simplify generating the clock names
ne
tin, Hi Dave,
>> >
>> > On Thu, Dec 28, 2017 at 11:21:23PM +0100, Martin Blumenstingl wrote:
>> > > Hi Dave,
>> > >
>> > > please do not apply this series until it got a Tested-by from Emiliano.
>> > >
>> > >
>> &g
Hi Jerome,
On Fri, Dec 29, 2017 at 6:57 PM, Jerome Brunet <jbru...@baylibre.com> wrote:
> On Thu, 2017-12-28 at 23:21 +0100, Martin Blumenstingl wrote:
>> While testing the dwmac-meson8b with an RGMII PHY on Meson8b we
>> discovered that the m25_div is not actually a divi
On Fri, Dec 29, 2017 at 8:48 AM, Martin Blumenstingl
<martin.blumensti...@googlemail.com> wrote:
> Hi Emiliano,
>
> On Fri, Dec 29, 2017 at 2:31 AM, Emiliano Ingrassia
> <ingras...@epigenesys.com> wrote:
>> Hi Martin, Hi Dave,
>>
>> On Thu, Dec 28, 201
Hi Emiliano,
On Fri, Dec 29, 2017 at 2:31 AM, Emiliano Ingrassia
<ingras...@epigenesys.com> wrote:
> Hi Martin, Hi Dave,
>
> On Thu, Dec 28, 2017 at 11:21:23PM +0100, Martin Blumenstingl wrote:
>> Hi Dave,
>>
>> please do not apply this series until it got a Tes
Instead of using a custom buffer, snprintf() and devm_kstrdup() we can
simplify this by using devm_kasprintf().
No functional changes - this just makes the code shorter.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
drivers/net/ethernet/stmicro/stmmac
logic Meson 8b
/ GXBB DWMAC")
Reported-by: Emiliano Ingrassia <ingras...@epigenesys.com>
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
Reviewed-by: Jerome Brunet <jbru...@baylibre.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 4 +++-
factor clock which divides the m250_div output by 10.
Fixes: 566e8251625304 ("net: stmmac: add a glue driver for the Amlogic Meson 8b
/ GXBB DWMAC")
Reported-by: Emiliano Ingrassia <ingras...@epigenesys.com>
Signed-off-by: Martin Blumenstingl <martin.blumensti.
ux-amlogic/2017-December/005596.html
[1] http://lists.infradead.org/pipermail/linux-amlogic/2017-December/005848.html
[2] http://lists.infradead.org/pipermail/linux-amlogic/2017-December/005861.html
Martin Blumenstingl (5):
net: stmmac: dwmac-meson8b: only configure the clocks in RGMII mode
ne
not routed
to the PHY in RMII mode.
While here also rename meson8b_init_clk to meson8b_init_rgmii_clk to
make it easier to understand the code.
Fixes: 566e8251625304 ("net: stmmac: add a glue driver for the Amlogic Meson 8b
/ GXBB DWMAC")
Signed-off-by: Martin Blumenstingl <martin.blum
MAC")
Suggested-by: Jerome Brunet <jbru...@baylibre.com>
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/stmicro/stmma
Hi Emiliano,
On Thu, Dec 28, 2017 at 6:51 PM, Emiliano Ingrassia
<ingras...@epigenesys.com> wrote:
> Hi Martin,
>
> thank you for the quick response!
>
> On Thu, Dec 28, 2017 at 05:58:34PM +0100, Martin Blumenstingl wrote:
>> Hi Emiliano,
>>
>> thank you
Hi Emiliano,
thank you for testing this!
On Thu, Dec 28, 2017 at 5:16 PM, Emiliano Ingrassia
<ingras...@epigenesys.com> wrote:
> Hi Martin, Hi Dave,
>
> On Sun, Dec 24, 2017 at 12:40:57AM +0100, Martin Blumenstingl wrote:
>> Hi Dave,
>>
>> please do not apply
cannot be changed. Additionally
the GX SoCs don't need to use the "closest" divider since the parent
clock is a multiple of 250MHz.
Fixes: 566e8251625304 ("net: stmmac: add a glue driver for the Amlogic Meson 8b
/ GXBB DWMAC")
Suggested-by: Jerome Brunet <jbru...@baylibre.com
not routed
to the PHY in RMII mode.
While here also rename meson8b_init_clk to meson8b_init_rgmii_clk to
make it easier to understand the code.
Fixes: 566e8251625304 ("net: stmmac: add a glue driver for the Amlogic Meson 8b
/ GXBB DWMAC")
Signed-off-by: Martin Blumenstingl <martin.blum
h one that sets
CLK_SET_RATE_PARENT on the mux and thus re-configures the MPLL2 clock
on Meson8b correctly
[0] http://lists.infradead.org/pipermail/linux-amlogic/2017-December/005596.html
[1] http://lists.infradead.org/pipermail/linux-amlogic/2017-December/005848.html
Martin Blumenstingl (3):
net
ngras...@epigenesys.com>
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
Reviewed-by: Jerome Brunet <jbru...@baylibre.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dri
On Sat, Dec 23, 2017 at 11:41 PM, Jerome Brunet <jbru...@baylibre.com> wrote:
> On Sat, 2017-12-23 at 22:49 +0100, Martin Blumenstingl wrote:
>> while calculating this with a target frequency of 500MHz manually
>> again I saw that there's a remainder of 10Mhz after th
Hi Jerome,
On Sat, Dec 23, 2017 at 9:40 PM, Jerome Brunet <jbru...@baylibre.com> wrote:
> On Sat, 2017-12-23 at 21:00 +0100, Martin Blumenstingl wrote:
>> Hi Jerome,
>>
>> On Sat, Dec 23, 2017 at 6:40 PM, Jerome Brunet <jbru...@baylibre.com> wrote:
>> >
Hi Jerome,
On Sat, Dec 23, 2017 at 6:40 PM, Jerome Brunet <jbru...@baylibre.com> wrote:
> On Sat, 2017-12-23 at 18:04 +0100, Martin Blumenstingl wrote:
>> Trying to set the rate of m250_div's parent clock makes no sense since
>> it's a mux which has neither CLK_
s VIM2 (GXM SoC, external RGMII PHY). Both are still working
fine (so let's hope that this also fixes your Meson8b issue :)).
[0] http://lists.infradead.org/pipermail/linux-amlogic/2017-December/005596.html
Martin Blumenstingl (2):
net: stmmac: dwmac-meson8b: fix setting the PHY clock on Meson8b
net
ngras...@epigenesys.com>
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c
b/drivers/n
divider since the parent
clock is a multiple of 250MHz.
Fixes: 566e8251625304 ("net: stmmac: add a glue driver for the Amlogic Meson 8b
/ GXBB DWMAC")
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-meson
This documents a few more bits in the RTL821x_INER register for RTL8211E
and RTL8211F. These are added only to document them (as no public
datasheets are available for these PHYs), they are currently not used.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
d
into a new rtl8211x_page_mask_bits helper function.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
drivers/net/phy/realtek.c | 55 ++-
1 file changed, 45 insertions(+), 10 deletions(-)
diff --git a/drivers/net/phy/realt
the PHY driver does
not support Wake-on-LAN yet.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
drivers/net/phy/realtek.c | 27 +--
1 file changed, 25 insertions(+), 2 deletions(-)
diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/re
that this series is applied. if someone is interested
in testing this: it applies on top of my other series:
"Realtek Ethernet PHY driver improvements" [1]
[0] https://www.spinics.net/lists/netdev/msg41.html
[1] https://marc.info/?l=linux-netdev=151225151410593=2
Martin Blumenstingl (3):
This macro is only used by the RTL8211B code. RTL8211E and RTL8211F both
use other bits to initialize the RTL821x_INER register.
No functional changes.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
drivers/net/phy/realtek.c | 4 ++--
1 file changed, 2 inse
ility functions make the existing code easier to read since
it removes some duplication (switching back to page 0 is done within the
new helpers for example).
No functional changes are intended.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
driv
This simply moves all register bit #defines which describe the (PHY
specific) bits in the RTL821x_INER right below the RTL821x_INER register
definition. This makes it easier to spot which registers and bits belong
together.
No functional changes.
Signed-off-by: Martin Blumenstingl
for reading/writing registers on a
Realtek specific "page"
Martin Blumenstingl (5):
net: phy: realtek: use the BIT and GENMASK macros
net: phy: realtek: rename RTL821x_INER_INIT to RTL8211B_INER_INIT
net: phy: realtek: group all register bit #defines for RTL821x_INER
net: ph
This simply makes the code easier to read. No functional changes.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
drivers/net/phy/realtek.c | 27 ++-
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/drivers/net/phy/realt
This makes it easier to compare the #defines with the datasheets.
No functional changes.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
drivers/net/phy/realtek.c | 11 ++-
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/drivers/net/phy/rea
Hi Heiner,
On Sun, Nov 12, 2017 at 4:16 PM, Heiner Kallweit wrote:
> After commit b94d22d94ad22 "ARM64: dts: meson-gx: add external PHY
> interrupt on some platforms" ethernet stopped working on my Odroid-C2
> which has a RTL8211F phy.
>
> It turned out that no interrupts
rse_addr to
of_mdio_parse_addr.
Fixes: 342fa1964439 ("mdio: mux: make child bus walking more permissive and
errors more verbose")
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
drivers/net/phy/mdio-mux.c | 4 ++--
1 file changed, 2 insertions(+), 2 d
Hi Arend,
On Tue, May 16, 2017 at 12:05 AM, Arend Van Spriel
<arend.vanspr...@broadcom.com> wrote:
> On 15-5-2017 22:13, Martin Blumenstingl wrote:
>> The example in the BCM43xx documentation uses "brcmf" as node name.
>> However, wireless devices shou
djust only the board specific bits).
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/Documentation/devicetree/bindings/net/wireles
case a .dts author copied from another .dts which still uses
the "wrong" node name).
Martin Blumenstingl (1):
dt-binding: net: wireless: fix node name in the BCM43xx example
Documentation/devicetree/bindings/net/wireless/brcm,bcm43xx-fmac.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.13.0
On Wed, Feb 1, 2017 at 8:19 PM, Heiner Kallweit <hkallwe...@gmail.com> wrote:
> As documented in Documentation/devicetree/bindings/net/ethernet.txt,
> in RGMII_ID and RGMII_TXID mode the MAC should not add a tx delay.
>
> Signed-off-by: Heiner Kallweit <hkallwe...@gmail.
be applying the
delay twice (which results in non-working TX traffic).
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
Tested-by: Neil Armstrong <narmstr...@baylibre.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 20 ++--
1 file
.).
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
Tested-by: Neil Armstrong <narmstr...@baylibre.com>
Acked-by: Rob Herring <r...@kernel.org>
---
Documentation/devicetree/bindings/net/meson-dwmac.txt | 16
1 file changed, 16 inserti
d patches to properly reset the PHY on Meson GXBB devices and to
use a similar configuration than the one we use on Meson GXL devices
(by passing a phy-handle to stmmac and defining the PHY in the mdio0
bus - patch 3-6)
- add the "amlogic,tx-delay-ns" property to all boards which are using
e ID
which is reported by the actual PHY.
Whenever a device is shipped with (multiple) different PHYs during it's
production lifetime then explicitly specifying
"ethernet-phy-id." could break certain revisions of that device.
Signed-off-by: Martin Blumenstingl <martin.blum
Hi David,
On Sun, Dec 18, 2016 at 5:13 PM, Martin Blumenstingl
<martin.blumensti...@googlemail.com> wrote:
> On Sun, Dec 18, 2016 at 4:49 PM, David Miller <da...@davemloft.net> wrote:
>> From: Martin Blumenstingl <martin.blumensti...@googlemail.com>
>> Date
Hi David,
On Sun, Dec 18, 2016 at 5:13 PM, Martin Blumenstingl
<martin.blumensti...@googlemail.com> wrote:
> On Sun, Dec 18, 2016 at 4:49 PM, David Miller <da...@davemloft.net> wrote:
>> From: Martin Blumenstingl <martin.blumensti...@googlemail.com>
>> Date
On Sun, Dec 18, 2016 at 4:49 PM, David Miller <da...@davemloft.net> wrote:
> From: Martin Blumenstingl <martin.blumensti...@googlemail.com>
> Date: Sat, 17 Dec 2016 19:21:19 +0100
>
>> Prior to this patch we were using a hardcoded RGMII TX clock delay of
>> 2ns (=
Hi Florian, Hi Jerome,
On Wed, Nov 30, 2016 at 2:15 AM, Florian Fainelli wrote:
> On 11/29/2016 05:13 PM, David Miller wrote:
>> From: Florian Fainelli
>> Date: Tue, 29 Nov 2016 16:43:20 -0800
>>
>>> On 11/29/2016 04:38 PM, David Miller wrote:
be applying the
delay twice (which results in non-working TX traffic).
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
Tested-by: Neil Armstrong <narmstr...@baylibre.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 21 +++--
1 file
.).
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
Tested-by: Neil Armstrong <narmstr...@baylibre.com>
Acked-by: Rob Herring <r...@kernel.org>
---
Documentation/devicetree/bindings/net/meson-dwmac.txt | 14 ++
1 file changed, 14 insertions(+)
diff --g
Y on Meson GXBB devices and to
use a similar configuration than the one we use on Meson GXL devices
(by passing a phy-handle to stmmac and defining the PHY in the mdio0
bus - patch 3-6)
- add the "amlogic,tx-delay-ns" property to all boards which are using
the RGMII PHY (pat
On Mon, Nov 28, 2016 at 2:33 AM, David Miller <da...@davemloft.net> wrote:
> From: Martin Blumenstingl <martin.blumensti...@googlemail.com>
> Date: Fri, 25 Nov 2016 14:01:49 +0100
>
>> Currently the dwmac-meson8b stmmac glue driver uses a hardcoded 1/4
>> cycle T
be applying the
delay twice (which results in non-working TX traffic).
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
Tested-by: Neil Armstrong <narmstr...@baylibre.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 21 +++--
1 file
.).
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
Tested-by: Neil Armstrong <narmstr...@baylibre.com>
---
Documentation/devicetree/bindings/net/meson-dwmac.txt | 14 ++
1 file changed, 14 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/mes
6)
- add the "amlogic,tx-delay-ns" property to all boards which are using
the RGMII PHY (patch 7)
Martin Blumenstingl (2):
net: dt-bindings: add RGMII TX delay configuration to meson8b-dwmac
net: stmmac: dwmac-meson8b: make the RGMII TX delay configurable
.../devicetree/bindings/
On Wed, Nov 30, 2016 at 10:44 PM, Rob Herring <r...@kernel.org> wrote:
> On Fri, Nov 25, 2016 at 02:01:50PM +0100, Martin Blumenstingl wrote:
>> This allows configuring the RGMII TX clock delay. The RGMII clock is
>> generated by underlying hardware of the the Meson
interface_t and finally add some links to useful standards documents.
>
> Changes in v2:
>
> - clarify a few things in the RGMII section, add a paragraph about common
> issues
> with RGMII delay mismatches
Reviewed-by: Martin Blumenstingl <martin.blumensti...@googlemail.com&g
Hello Heinrich,
On Sat, Nov 26, 2016 at 8:53 AM, Heinrich Schuchardt
wrote:
> For Odroid C2 I have compiled kernel
> 4.9.0-rc6-next-20161124-1-gbf7e142
> with one additional patch
>
this series and send an improved version
yourself.
These patches are the results of recent discussions, see [0]
[0] http://lists.infradead.org/pipermail/linux-amlogic/2016-November/001688.html
Martin Blumenstingl (2):
Documentation: devicetree: clarify usage of the RGMII phy-modes
net: phy
, which breaks ethernet TX traffic on 1000Mbit/s
links.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
Documentation/devicetree/bindings/net/ethernet.txt | 24 ++
1 file changed, 20 insertions(+), 4 deletions(-)
diff --git a/Documentation/devi
).
This fixes a compatibility problem with some SoCs where the TX-delay was
also added by the MAC. With the TX-delay being applied twice the TX
clock was off and TX traffic was broken or very slow (<10Mbit/s) on
1000Mbit/s links.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlema
This adds the amlogic,tx-delay-ns with the old (hardcoded) default value
of 2ns to all boards which are using an RGMII ethernet PHY.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 2 ++
arch/arm64/bo
This resets the ethernet PHY during boot to get the PHY into a "clean"
state. While here also specify the phy-handle of the ethmac node to
make the PHY configuration similar to the one we have on GXL devices.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
be applying the
delay twice (which results in non-working TX traffic).
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
.../net/ethernet/stmicro/stmmac/dwmac-meson8b.c| 26 +-
1 file changed, 20 insertions(+), 6 deletions(-)
diff --git a/drive
This resets the ethernet PHY during boot to get the PHY into a "clean"
state. While here also specify the phy-handle of the ethmac node to
make the PHY configuration similar to the one we have on GXL devices.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
stmmac's MDIO bus is currently only defined in meson-gxl.dtsi. Move it
up to meson-gx to allow us to keep the stmmac configuration for
meson-gxbb similar to the configuration on meson-gxl.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
arch/arm64/boot/dts/a
This resets the ethernet PHY during boot to get the PHY into a "clean"
state. While here also specify the phy-handle of the ethmac node to
make the PHY configuration similar to the one we have on GXL devices.
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
.).
Signed-off-by: Martin Blumenstingl <martin.blumensti...@googlemail.com>
---
Documentation/devicetree/bindings/net/meson-dwmac.txt | 14 ++
1 file changed, 14 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/meson-dwmac.txt
b/Documentation/devicetree/bindings/net
to properly reset the PHY on Meson GXBB devices and to
use a similar configuration than the one we use on Meson GXL devices
(by passing a phy-handle to stmmac and defining the PHY in the mdio0
bus - patch 3-6)
- add the "amlogic,tx-delay-ns" property to all boards which are using
the RGMII
On Thu, Nov 24, 2016 at 7:55 PM, Florian Fainelli <f.faine...@gmail.com> wrote:
> Le 24/11/2016 à 09:05, Martin Blumenstingl a écrit :
>> On Thu, Nov 24, 2016 at 4:56 PM, Jerome Brunet <jbru...@baylibre.com> wrote:
>>> On Thu, 2016-11-24 at 15:34 +0100, Martin Blum
On Thu, Nov 24, 2016 at 5:01 PM, Jerome Brunet <jbru...@baylibre.com> wrote:
> On Thu, 2016-11-24 at 15:40 +0100, Martin Blumenstingl wrote:
>> Hi Jerome,
>>
>> On Mon, Nov 21, 2016 at 4:35 PM, Jerome Brunet <jbru...@baylibre.com>
>> wrote:
>> >
>
On Thu, Nov 24, 2016 at 4:56 PM, Jerome Brunet <jbru...@baylibre.com> wrote:
> On Thu, 2016-11-24 at 15:34 +0100, Martin Blumenstingl wrote:
>> Currently the dwmac-meson8b stmmac glue driver uses a hardcoded 1/4
>> cycle TX clock delay. This seems to work fine for many b
Hi Andrew,
On Thu, Nov 24, 2016 at 4:48 PM, Andrew Lunn wrote:
>> The configuration values are provided as preprocessor macros to make the
>> devicetree files easier to read.
>
> Hi Martin
>
> If i'm reading the code/comments correctly, you can set the delay to
> 0, 2, 4 or 6ns?
Hi Jerome,
On Mon, Nov 21, 2016 at 4:35 PM, Jerome Brunet wrote:
> This patchset fixes an issue with the OdroidC2 board (DWMAC + RTL8211F).
> Initially reported as a low Tx throughput issue at gigabit speed, the
> platform enters LPI too often. This eventually break the
1 - 100 of 165 matches
Mail list logo