Re: [v3, PATCH 2/2] dt-binding: mediatek-dwmac: add binding document for MediaTek MT2712 DWMAC

2018-11-18 Thread biao huang
Hi Rob, Thanks for your comments. On Sat, 2018-11-17 at 22:56 +0800, Rob Herring wrote: > On Fri, Nov 16, 2018 at 05:18:46PM +0800, Biao Huang wrote: > > The commit adds the device tree binding documentation for the MediaTek DWMAC > > found on MediaTek MT2712. >

Re: [PATCH 2/5] dt-bindings: mediatek: Modify pinctrl bindings for mt2701

2015-12-08 Thread biao huang
On Sat, 2015-11-28 at 04:38 +0800, Rob Herring wrote: > On Thu, Nov 26, 2015 at 04:44:29PM +0800, Biao Huang wrote: > > Signed-off-by: Biao Huang <biao.hu...@mediatek.com> > > --- > > .../devicetree/bindings/pinctrl/pinctrl-mt65xx.txt |9 + > > 1

Re: [PATCH 4/5] pinctrl: mediatek: Add Pinctrl/GPIO/EINT driver for mt2701

2015-12-09 Thread biao huang
On Wed, 2015-12-09 at 23:52 +0100, Linus Walleij wrote: > On Thu, Nov 26, 2015 at 9:44 AM, Biao Huang <biao.hu...@mediatek.com> wrote: > > > Add mt2701 support using mediatek common pinctrl driver. > > MT2701 have some special pins need an extra setting register >

[PATCH v2 3/5] pinctrl: dt bindings: Add pinfunc header file for mt2701

2015-12-11 Thread Biao Huang
Add pinfunc header file, mt2701 related dts will include it Signed-off-by: Biao Huang <biao.hu...@mediatek.com> Acked-by: Linus Walleij <linus.wall...@linaro.org> --- arch/arm/boot/dts/mt2701-pinfunc.h | 735 1 file changed, 735 insertions(+)

[PATCH v2 5/5] arm: dts: Add pinctrl/GPIO/EINT node for mt2701

2015-12-11 Thread Biao Huang
Add pinctrl and GPIO node to mt2701.dtsi Signed-off-by: Biao Huang <biao.hu...@mediatek.com> Acked-by: Linus Walleij <linus.wall...@linaro.org> --- arch/arm/boot/dts/mt2701.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dts

[PATCH v2 2/5] dt-bindings: mediatek: Modify pinctrl bindings for mt2701

2015-12-11 Thread Biao Huang
Signed-off-by: Biao Huang <biao.hu...@mediatek.com> --- .../devicetree/bindings/pinctrl/pinctrl-mt65xx.txt |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt b/Documentation/devicetree/bindings/p

[PATCH v2 4/5] pinctrl: mediatek: Add Pinctrl/GPIO/EINT driver for mt2701

2015-12-11 Thread Biao Huang
Add mt2701 support using mediatek common pinctrl driver. MT2701 have some special pins need an extra setting register than other ICs, so adding this support to common code. Signed-off-by: Biao Huang <biao.hu...@mediatek.com> --- drivers/pinctrl/mediatek/Kconfig |6 + d

[PATCH v2 1/5] ARM: mediatek: Add MT2701 config options for mediatek SoCs.

2015-12-11 Thread Biao Huang
From: Erin Lo The upcoming MTK pinctrl driver have a big pin table for each SoC and we don't want to bloat the kernel binary if we don't need it. Add config options so we can build for one SoC only. Add MT2701. Signed-off-by: Erin Lo Acked-by: Linus

[PATCH v2 0/5] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701

2015-12-11 Thread Biao Huang
Change in v2: 1. add special pinmux setting for some pins. 2. fix mt2701 direction control issue 3. resort dt-bindings Biao Huang (4): dt-bindings: mediatek: Modify pinctrl bindings for mt2701 pinctrl: dt bindings: Add pinfunc header file for mt2701 pinctrl: mediatek: Add Pinctrl/GPIO/EINT

[PATCH v3 4/5] pinctrl: mediatek: Add Pinctrl/GPIO/EINT driver for mt2701

2015-12-27 Thread Biao Huang
Add mt2701 support using mediatek common pinctrl driver. MT2701 have some special pins need an extra setting register than other ICs, so adding this support to common code. Signed-off-by: Biao Huang <biao.hu...@mediatek.com> Acked-by: Yingjoe Chen <yingjoe.c...@mediatek.com> --- dri

[PATCH v3 2/5] dt-bindings: mediatek: Modify pinctrl bindings for mt2701

2015-12-27 Thread Biao Huang
Signed-off-by: Biao Huang <biao.hu...@mediatek.com> --- .../devicetree/bindings/pinctrl/pinctrl-mt65xx.txt |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt b/Documentation/devicetree/bindings/p

[PATCH v3 0/5] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701

2015-12-27 Thread Biao Huang
Change in v3: 1. convert to arch_initcall. 2. set direction to input when do input-enable/disable and input-schmitt-enable/disable properties. Change in v2: 1. add special pinmux setting for some pins. 2. fix mt2701 direction control issue. 3. resort dt-bindings. Biao Huang (4): dt-bindings

[PATCH v3 5/5] arm: dts: Add pinctrl/GPIO/EINT node for mt2701

2015-12-27 Thread Biao Huang
Add pinctrl and GPIO node to mt2701.dtsi Signed-off-by: Biao Huang <biao.hu...@mediatek.com> Acked-by: Linus Walleij <linus.wall...@linaro.org> --- arch/arm/boot/dts/mt2701.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dts

[PATCH v3 3/5] pinctrl: dt bindings: Add pinfunc header file for mt2701

2015-12-27 Thread Biao Huang
Add pinfunc header file, mt2701 related dts will include it Signed-off-by: Biao Huang <biao.hu...@mediatek.com> Acked-by: Linus Walleij <linus.wall...@linaro.org> --- arch/arm/boot/dts/mt2701-pinfunc.h | 735 1 file changed, 735 insertions(+)

[PATCH v3 1/5] ARM: mediatek: Add MT2701 config options for mediatek SoCs.

2015-12-27 Thread Biao Huang
From: Erin Lo The upcoming MTK pinctrl driver have a big pin table for each SoC and we don't want to bloat the kernel binary if we don't need it. Add config options so we can build for one SoC only. Add MT2701. Signed-off-by: Erin Lo Acked-by: Linus

[PATCH 0/5] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701

2015-11-26 Thread Biao Huang
MT2701 pinctrl/eint are similar to mt8127, mt8135 and mt8173, add support for mt2701 using mediatek common pinctrl driver. Biao Huang (4): dt-bindings: mediatek: Modify pinctrl bindings for mt2701 pinctrl: dt bindings: Add pinfunc header file for mt2701 pinctrl: mediatek: Add Pinctrl/GPIO

[PATCH 5/5] arm: dts: Add pinctrl/GPIO/EINT node for mt2701

2015-11-26 Thread Biao Huang
Add pinctrl and GPIO node to mt2701.dtsi Signed-off-by: Biao Huang <biao.hu...@mediatek.com> --- arch/arm/boot/dts/mt2701.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index dc02f76..bd88ae9

[PATCH 4/5] pinctrl: mediatek: Add Pinctrl/GPIO/EINT driver for mt2701

2015-11-26 Thread Biao Huang
Add mt2701 support using mediatek common pinctrl driver. MT2701 have some special pins need an extra setting register than other ICs, so adding this support to common code. Signed-off-by: Biao Huang <biao.hu...@mediatek.com> --- drivers/pinctrl/mediatek/Kconfig |6 + d

[PATCH 1/5] ARM: mediatek: Add MT2701 config options for mediatek SoCs.

2015-11-26 Thread Biao Huang
From: Erin Lo The upcoming MTK pinctrl driver have a big pin table for each SoC and we don't want to bloat the kernel binary if we don't need it. Add config options so we can build for one SoC only. Add MT2701. Signed-off-by: Erin Lo ---

[PATCH 3/5] pinctrl: dt bindings: Add pinfunc header file for mt2701

2015-11-26 Thread Biao Huang
Add pinfunc header file, mt2701 related dts will include it Signed-off-by: Biao Huang <biao.hu...@mediatek.com> --- arch/arm/boot/dts/mt2701-pinfunc.h | 713 1 file changed, 713 insertions(+) create mode 100644 arch/arm/boot/dts/mt2701-pinfunc.h diff

[PATCH 2/5] dt-bindings: mediatek: Modify pinctrl bindings for mt2701

2015-11-26 Thread Biao Huang
Signed-off-by: Biao Huang <biao.hu...@mediatek.com> --- .../devicetree/bindings/pinctrl/pinctrl-mt65xx.txt |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt b/Documentation/devicetree/bindings/p

Re: [PATCH v4 0/5] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701

2016-01-28 Thread biao huang
Hi Linus, [PATCH v4 1/5] pinctrl: mediatek: fix direction control issue this patch is also a pinctrl patch, and it seems not merged in devel-mt2701 branch. Best Regards! Yours, Biao Huang On Thu, 2016-01-28 at 11:20 +0100, Linus Walleij wrote: > On Wed, Jan 27, 2016 at 2:24

[PATCH 2/2] pinctrl: mediatek: Add gpio_request_enable support

2016-02-03 Thread Biao Huang
Implement the .gpio_request_enable() callbacks in struct pinmux_ops in mediatek pinctrl driver. Make sure that when gpio_request is called, GPIO on the pin is enabled. Signed-off-by: Biao Huang <biao.hu...@mediatek.com> --- drivers/pinctrl/mediatek/pinctrl-mtk-common.c

[PATCH 0/2] pinctrl: mediatek: Add direction control and gpio_request_enable Support

2016-02-03 Thread Biao Huang
1. Set direction to input when do input-enable/disable and input-schmitt-enable/disable properties. 2. Add gpio_request_enable support to set pin to gpio function. Biao Huang (2): pinctrl: mediatek: fix direction control issue pinctrl: mediatek: Add gpio_request_enable support drivers

[PATCH 1/2] pinctrl: mediatek: fix direction control issue

2016-02-03 Thread Biao Huang
Since input-enable/disable and input-schmitt-enable/disable are workable when gpio direction is input, so add direction setting when do input-enable/disable and input-schmitt-enable/disable properties. Signed-off-by: Biao Huang <biao.hu...@mediatek.com> --- drivers/pinctrl/mediatek/pinct

[PATCH v4 2/5] ARM: mediatek: Add MT2701 config options for mediatek SoCs.

2016-01-27 Thread Biao Huang
From: Erin Lo The upcoming MTK pinctrl driver have a big pin table for each SoC and we don't want to bloat the kernel binary if we don't need it. Add config options so we can build for one SoC only. Add MT2701. Signed-off-by: Erin Lo Acked-by: Linus

[PATCH v4 5/5] arm: dts: Add pinctrl/GPIO/EINT node for mt2701

2016-01-27 Thread Biao Huang
Add pinctrl and GPIO node to mt2701.dtsi Signed-off-by: Biao Huang <biao.hu...@mediatek.com> Acked-by: Linus Walleij <linus.wall...@linaro.org> --- arch/arm/boot/dts/mt2701.dtsi | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dts

[PATCH v4 4/5] pinctrl: mediatek: Add Pinctrl/GPIO/EINT driver for mt2701

2016-01-27 Thread Biao Huang
Add mt2701 support using mediatek common pinctrl driver. MT2701 have some special pins need an extra setting register than other ICs, so adding this support to common code. Signed-off-by: Biao Huang <biao.hu...@mediatek.com> Acked-by: Yingjoe Chen <yingjoe.c...@mediatek.com> --- dri

[PATCH v4 3/5] pinctrl: dt bindings: Add pinfunc header file for mt2701

2016-01-27 Thread Biao Huang
Add pinfunc header file, mt2701 related dts will include it Signed-off-by: Biao Huang <biao.hu...@mediatek.com> Acked-by: Linus Walleij <linus.wall...@linaro.org> --- arch/arm/boot/dts/mt2701-pinfunc.h | 735 1 file changed, 735 insertions(+)

[PATCH v4 0/5] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701

2016-01-27 Thread Biao Huang
pinmux setting for some pins. 2. fix mt2701 direction control issue 3. resort dt-bindings Biao Huang (4): pinctrl: mediatek: fix direction control issue pinctrl: dt bindings: Add pinfunc header file for mt2701 pinctrl: mediatek: Add Pinctrl/GPIO/EINT driver for mt2701 arm: dts: Add pinctrl

[PATCH v4 1/5] pinctrl: mediatek: fix direction control issue

2016-01-27 Thread Biao Huang
Since input-enable/disable and input-schmitt-enable/disable are workable when gpio direction is input, so add direction setting when do input-enable/disable and input-schmitt-enable/disable properties. Signed-off-by: Biao Huang <biao.hu...@mediatek.com> Acked-by: Yingjoe Chen <

[PATCH 2/2] pinctrl: mediatek: add input-enable and direction setting for eint resources

2016-02-16 Thread Biao Huang
need call GPIO API any more when pin for eint usage. Signed-off-by: Biao Huang <biao.hu...@mediatek.com> --- drivers/pinctrl/mediatek/pinctrl-mtk-common.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinct

[PATCH 1/2] pinctrl: mediatek: add input-enable setting in gpio_request_enable

2016-02-16 Thread Biao Huang
Since input-disable cuts off input signal of gpio, add input-enable setting in .gpio_request_enable implementation to ensure gpio function well Signed-off-by: Biao Huang <biao.hu...@mediatek.com> --- drivers/pinctrl/mediatek/pinctrl-mtk-common.c |1 + 1 file changed, 1 insertion(+)

[PATCH 0/2] pinctrl: mediatek: add setting for gpio and eint

2016-02-16 Thread Biao Huang
1. add input-enable setting in gpio_request_enable. 2. add input-enable and direction setting for eint resources. Biao Huang (2): pinctrl: mediatek: add input-enable setting in gpio_request_enable pinctrl: mediatek: add input-enable and direction setting for eint resources drivers

[RESEND PATCH 1/2] ARM: mediatek: Add MT2701 config options for mediatek SoCs.

2016-04-13 Thread Biao Huang
From: Erin Lo The upcoming MTK pinctrl driver have a big pin table for each SoC and we don't want to bloat the kernel binary if we don't need it. Add config options so we can build for one SoC only. Add MT2701. Signed-off-by: Erin Lo Acked-by: Linus

[RESEND PATCH 2/2] arm: dts: Add pinctrl/GPIO/EINT node for mt2701

2016-04-13 Thread Biao Huang
Add pinctrl and GPIO node to mt2701.dtsi Signed-off-by: Biao Huang <biao.hu...@mediatek.com> Acked-by: Linus Walleij <linus.wall...@linaro.org> --- This patch has been reverted in 7aec2fd74add9c4a61d77f51c805b4f7592956da We have checked it can build pass in kernel-4.6 rc1 --- arch/

[RESEND PATCH 0/2] pinctrl: mediatek: add pinctrl/GPIO/EINT driver for mt2701

2016-04-13 Thread Biao Huang
Biao Huang (1): arm: dts: Add pinctrl/GPIO/EINT node for mt2701 Erin Lo (1): ARM: mediatek: Add MT2701 config options for mediatek SoCs. arch/arm/boot/dts/mt2701.dtsi | 19 +++ arch/arm/mach-mediatek/Kconfig |4 2 files changed, 23 insertions(+) -- 1.7.9.5

[PATCH 1/2] net:stmmac: dwmac-mediatek: add support for mt2712

2018-10-28 Thread Biao Huang
Add Ethernet support for MediaTek SoCs from the mt2712 family Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/Kconfig|8 + drivers/net/ethernet/stmicro/stmmac/Makefile |1 + .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 364 3

[PATCH 2/2] dt-binding: mediatek-dwmac: add binding document for MediaTek MT2712 DWMAC

2018-10-28 Thread Biao Huang
The commit adds the device tree binding documentation for the MediaTek DWMAC found on MediaTek MT2712. Signed-off-by: Biao Huang --- .../devicetree/bindings/net/mediatek-dwmac.txt | 49 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree

[v2, PATCH 0/2] add Ethernet driver support for mt2712

2018-10-28 Thread Biao Huang
The mt2712 Ethernet IP is from Synopsys, so extend stmmac to support mt2712.

Re: [v2, PATCH 0/2] add Ethernet driver support for mt2712

2018-10-28 Thread biao huang
On Mon, 2018-10-29 at 11:04 +0800, Biao Huang wrote: > The mt2712 Ethernet IP is from Synopsys, so extend stmmac to support mt2712. > sorry, I forgot to add detail descriptions for these patches. changes in v2: --since STMMAC driver applied to most Synopsys ip Ethernet, I add dwmac-medi

[v3, PATCH 2/2] dt-binding: mediatek-dwmac: add binding document for MediaTek MT2712 DWMAC

2018-11-16 Thread Biao Huang
The commit adds the device tree binding documentation for the MediaTek DWMAC found on MediaTek MT2712. Change-Id: I3728666bf65927164bd82fa8dddb90df8270bd44 Signed-off-by: Biao Huang --- .../devicetree/bindings/net/mediatek-dwmac.txt | 77 1 file changed, 77 insertions

[PATCH 0/2 net-next] fix out-of-boundary issue and add taller hash table support

2019-07-08 Thread Biao Huang
Fix mac address out-of-boundary issue in net-next tree. and resend the patch which was discussed in https://lore.kernel.org/patchwork/patch/1082117 but with no further progress. Biao Huang (2): net: stmmac: dwmac4: mac address array boudary violation issue net: stmmac: add support for hash

[PATCH 1/2 net-next] net: stmmac: dwmac4: mac address array boudary violation issue

2019-07-08 Thread Biao Huang
The mac address array size is GMAC_MAX_PERFECT_ADDRESSES, so the 'reg' should be less than it, or will affect other registers. Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet

[PATCH 2/2 net-next] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-07-08 Thread Biao Huang
UC0 7. MC Filter0 8. UC Filter0 9. Flow Control 0 Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/common.h | 7 +-- drivers/net/ethernet/stmicro/stmmac/dwmac4.h | 4 +- .../net

Re: [PATCH 3/4] net: stmmac: modify default value of tx-frames

2019-05-30 Thread biao huang
Hi Andrew, On Thu, 2019-05-30 at 14:58 +0200, Andrew Lunn wrote: > On Thu, May 30, 2019 at 04:54:43PM +0800, Biao Huang wrote: > > the default value of tx-frames is 25, it's too late when > > passing tstamp to stack, then the ptp4l will fail: > > > > ptp4l -i et

[v2, PATCH 0/4] complete dwmac-mediatek driver and fix flow control issue

2019-06-02 Thread Biao Huang
once being enabled. Biao Huang (4): net: stmmac: dwmac-mediatek: enable Ethernet power

[v2, PATCH 3/4] net: stmmac: modify default value of tx-frames

2019-06-02 Thread Biao Huang
pass when changing the tx-frames from 25 to 1 with ethtool -C option. It should be fine to set tx-frames default value to 1, so ptp4l will pass by default. Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/common.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[v2, PATCH 4/4] net: stmmac: dwmac4: fix flow control issue

2019-06-02 Thread Biao Huang
Current dwmac4_flow_ctrl will not clear GMAC_RX_FLOW_CTRL_RFE/GMAC_RX_FLOW_CTRL_RFE bits, so MAC hw will keep flow control on although expecting flow control off by ethtool. Add codes to fix it. Fixes: 477286b53f55 ("stmmac: add GMAC4 core support") Signed-off-by: Biao Huang --- d

[v2, PATCH 2/4] net: stmmac: dwmac-mediatek: disable rx watchdog

2019-06-02 Thread Biao Huang
disable rx watchdog for dwmac-mediatek, then the hw will issue a rx interrupt once receiving a packet, so the responding time for rx path will be reduced. Signed-off-by: Biao Huang --- .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c |1 + 1 file changed, 1 insertion(+) diff --git

[v2, PATCH 1/4] net: stmmac: dwmac-mediatek: enable Ethernet power domain

2019-06-02 Thread Biao Huang
add Ethernet power on/off operations in init/exit flow. Signed-off-by: Biao Huang --- .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c b/drivers/net/ethernet/stmicro/stmmac

[v4, PATCH 2/3] net: stmmac: fix csr_clk can't be zero issue

2019-05-24 Thread Biao Huang
lock input") Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c |6 +++--- .../net/ethernet/stmicro/stmmac/stmmac_platform.c |5 - 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/driv

[v4, PATCH 3/3] net: stmmac: dwmac-mediatek: modify csr_clk value to fix mdio read/write fail

2019-05-24 Thread Biao Huang
1. the frequency of csr clock is 66.5MHz, so the csr_clk value should be 0 other than 5. 2. the csr_clk can be got from device tree, so remove initialization here. Fixes: 9992f37e346b ("stmmac: dwmac-mediatek: add support for mt2712") Signed-off-by: Biao Huang --- .../net/ethern

[v4, PATCH 0/3] fix some bugs in stmmac

2019-05-24 Thread Biao Huang
: modify csr_clk value to fix mdio read/write fail issue for dwmac-mediatek Biao Huang (3): net

[v4, PATCH 1/3] net: stmmac: update rx tail pointer register to fix rx dma hang issue.

2019-05-24 Thread Biao Huang
to the rx channel, so packets can be received continually Fixes: 54139cf3bb33 ("net: stmmac: adding multiple buffers for rx") Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmi

Re: [v2, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-05-24 Thread biao huang
Dear All, any comments about this patch? Thanks. On Tue, 2019-05-14 at 11:00 +0800, Biao Huang wrote: > 1. get hash table size in hw feature reigster, and add support > for taller hash table(128/256) in dwmac4. > 2. only clear PR/HMC/PM bits of GMAC_PACKET_FILTER, to avoid >

RE: [v2, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-05-24 Thread biao huang
On Fri, 2019-05-24 at 08:24 +, Jose Abreu wrote: > From: biao huang > Date: Fri, May 24, 2019 at 07:33:37 > > > any comments about this patch? > > Can you please test your series on top of this one [1] and let me know > the output of : > # ethtool -t eth0 "

Re: [PATCH net-next v2 1/5] net: stmmac: enable clause 45 mdio support

2019-05-24 Thread biao huang
Hi Weifeng, clause45 mdio access with this patch test pass on our platform, thanks! On Thu, 2019-05-23 at 23:32 +0800, Voon Weifeng wrote: > From: Kweh Hock Leong > > DWMAC4 is capable to support clause 45 mdio communication. > This patch enable the feature on stmmac_mdio_write() and >

RE: [v2, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-05-24 Thread biao huang
Seems I should modify this patch base on "https://patchwork.ozlabs.org/project/netdev/list/?series=109699; On Fri, 2019-05-24 at 09:24 +, Jose Abreu wrote: > From: biao huang > Date: Fri, May 24, 2019 at 09:31:44 > > > On Fri, 2019-05-24 at 08:24 +, Jose Abreu wro

[v4, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-05-28 Thread Biao Huang
1. get hash table size in hw feature reigster, and add support for taller hash table(128/256) in dwmac4. 2. only clear GMAC_PACKET_FILTER bits used in this function, to avoid side effect to functions of other bits. Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/common.h

[v4, PATCH] add some features in stmmac

2019-05-28 Thread Biao Huang
for dwmac4. Biao Huang (1): net: stmmac: add support for hash table size 128/256 in dwmac4

[v5, PATCH] add some features in stmmac

2019-05-29 Thread Biao Huang
dd support for hash table size 128/256 2. add mdio clause 45 access from mac device for dwmac4. Biao Huang (1):

[v5, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-05-29 Thread Biao Huang
7. MC Filter0 8. UC Filter0 9. Flow Control 1 Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/common.h |7 +-- drivers/net/ethernet/stmicro/stmmac/dwmac4.h |4 +- drivers/net/ethernet

RE: [v5, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-05-29 Thread biao huang
UC Filter0 9. Flow Control 0 Is v5 OK? Should I resend a v6? On Wed, 2019-05-29 at 10:30 +, Jose Abreu wrote: > From: Biao Huang > Date: Wed, May 29, 2019 at 10:31:08 > > > 1. get hash table size in hw feature reigster, and add su

RE: [v5, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-05-29 Thread biao huang
. On Wed, 2019-05-29 at 10:30 +0000, Jose Abreu wrote: > From: Biao Huang > Date: Wed, May 29, 2019 at 10:31:08 > > > 1. get hash table size in hw feature reigster, and add support > > for taller hash table(128/256) in dwmac4. > > 2. only clear GMAC_PACKET_FILTER bits use

[PATCH 4/4] net: stmmac: dwmac4: fix flow control issue

2019-05-30 Thread Biao Huang
Current dwmac4_flow_ctrl will not clear GMAC_RX_FLOW_CTRL_RFE/GMAC_RX_FLOW_CTRL_RFE bits, so MAC hw will keep flow control on although expecting flow control off by ethtool. Add codes to fix it. Fixes: 477286b53f55 ("stmmac: add GMAC4 core support") Signed-off-by: Biao Huang --- d

[PATCH 0/4] complete dwmac-mediatek driver and fix flow control issue

2019-05-30 Thread Biao Huang
. Biao Huang (4): net: stmmac: dwmac-mediatek: enable Ethernet power domain

[PATCH 3/4] net: stmmac: modify default value of tx-frames

2019-05-30 Thread Biao Huang
pass when changing the tx-frames from 25 to 1 with ethtool -C option. It should be fine to set tx-frames default value to 1, so ptp4l will pass by default. Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/common.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 1/4] net: stmmac: dwmac-mediatek: enable Ethernet power domain

2019-05-30 Thread Biao Huang
add Ethernet power on/off operations in init/exit flow. Signed-off-by: Biao Huang --- .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c b/drivers/net

[PATCH 2/4] net: stmmac: dwmac-mediatek: disable rx watchdog

2019-05-30 Thread Biao Huang
disable rx watchdog for dwmac-mediatek, then the hw will issue a rx interrupt once receiving a packet, so the responding time for rx path will be reduced. Signed-off-by: Biao Huang --- .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c |1 + 1 file changed, 1 insertion(+) diff --git

[v6, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-05-30 Thread Biao Huang
UC0 7. MC Filter0 8. UC Filter0 9. Flow Control 0 Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/common.h |7 +-- drivers/net/ethernet/stmicro/stmmac/dwmac4.h |4

[v6, PATCH] add some features in stmmac

2019-05-30 Thread Biao Huang
ze 128/256 2. add mdio clause 45 access from mac device for dwmac4. Biao Huang (1): net: stmmac: add support for hash table size 128/256

[v7, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-05-30 Thread Biao Huang
UC0 7. MC Filter0 8. UC Filter0 9. Flow Control 0 Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/common.h |7 +-- drivers/net/ethernet/stmicro/stmmac/dwmac4.h |4

[v7, PATCH] add some features in stmmac

2019-05-30 Thread Biao Huang
mac device for dwmac4. Biao Huang (1): net: stmmac: add support for hash table size 128/256

[RESEND, PATCH 1/4] net: stmmac: dwmac-mediatek: enable Ethernet power domain

2019-05-30 Thread Biao Huang
add Ethernet power on/off operations in init/exit flow. Signed-off-by: Biao Huang --- .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c b/drivers/net

[RESEND, PATCH 3/4] net: stmmac: modify default value of tx-frames

2019-05-30 Thread Biao Huang
pass when changing the tx-frames from 25 to 1 with ethtool -C option. It should be fine to set tx-frames default value to 1, so ptp4l will pass by default. Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/common.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[RESEND, PATCH 4/4] net: stmmac: dwmac4: fix flow control issue

2019-05-30 Thread Biao Huang
Current dwmac4_flow_ctrl will not clear GMAC_RX_FLOW_CTRL_RFE/GMAC_RX_FLOW_CTRL_RFE bits, so MAC hw will keep flow control on although expecting flow control off by ethtool. Add codes to fix it. Fixes: 477286b53f55 ("stmmac: add GMAC4 core support") Signed-off-by: Biao Huang --- d

[RESEND, PATCH 0/4] complete dwmac-mediatek driver and fix flow control issue

2019-05-30 Thread Biao Huang
control won't be disabled any more once being enabled. Biao Huang (4): net: stmmac

[RESEND, PATCH 2/4] net: stmmac: dwmac-mediatek: disable rx watchdog

2019-05-30 Thread Biao Huang
disable rx watchdog for dwmac-mediatek, then the hw will issue a rx interrupt once receiving a packet, so the responding time for rx path will be reduced. Signed-off-by: Biao Huang --- .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c |1 + 1 file changed, 1 insertion(+) diff --git

[PATCH] arm64: dts: mt2712: add ethernet device node

2019-08-13 Thread Biao Huang
This patch add device node for mt2712 ethernet. Signed-off-by: Biao Huang --- arch/arm64/boot/dts/mediatek/mt2712-evb.dts | 69 + arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 65 +++ 2 files changed, 134 insertions(+) diff --git a/arch/arm64/boot/dts

[v2,PATCH 0/1] arm64: dts: mt2712: add ethernet device node

2019-10-09 Thread Biao Huang
v2: add properties to default/sleep pinctrl-state node. Biao Huang (1): arm64: dts: mt2712: add ethernet device node arch/arm64/boot/dts/mediatek/mt2712-evb.dts | 74 + arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 65 ++ 2 files changed, 139 insertions

[v2,PATCH] arm64: dts: mt2712: add ethernet device node

2019-10-09 Thread Biao Huang
This patch add device node for mt2712 ethernet. Signed-off-by: Biao Huang --- arch/arm64/boot/dts/mediatek/mt2712-evb.dts | 74 + arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 65 ++ 2 files changed, 139 insertions(+) diff --git a/arch/arm64/boot/dts

[PATCH] net: stmmac: dwmac-mediatek: fix wrong delay value issue when resume back

2019-10-09 Thread Biao Huang
mt2712_delay_ps2stage() to mt2712_set_delay() to recovery the original mac_delay value. Signed-off-by: Biao Huang --- .../ethernet/stmicro/stmmac/dwmac-mediatek.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c b/drivers/net

[RESEND,PATCH] net: stmmac: dwmac-mediatek: fix wrong delay value issue when resume back

2019-10-09 Thread Biao Huang
mt2712_delay_stage2ps() to mt2712_set_delay() to recovery the original mac_delay value. Signed-off-by: Biao Huang --- .../ethernet/stmicro/stmmac/dwmac-mediatek.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c b/drivers/net

[PATCH] net: stmmac: disable/enable ptp_ref_clk in suspend/resume flow

2019-10-09 Thread Biao Huang
disable ptp_ref_clk in suspend flow, and enable it in resume flow. Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac

Re: [PATCH] net: stmmac: disable/enable ptp_ref_clk in suspend/resume flow

2019-10-11 Thread biao huang
Appreciate your comments! On Thu, 2019-10-10 at 16:01 -0700, Jakub Kicinski wrote: > On Wed, 9 Oct 2019 16:56:49 +0800, Biao Huang wrote: > > disable ptp_ref_clk in suspend flow, and enable it in resume flow. > > > > Signed-off-by: Biao Huang > > --- > > dr

[v2, PATCH 0/1] net: stmmac: disable/enable ptp_ref_clk in suspend/resume flow

2019-10-14 Thread Biao Huang
changes in v2: 1. add Fixes in commit message 2. replace clk_disable/clk_enable with clk_disable_unprepare/clk_prepare_enable to ensure the source pll can be closed/open in suspend/resume for power saving. Biao Huang (1): net: stmmac: disable/enable ptp_ref_clk

[v2, PATCH] net: stmmac: disable/enable ptp_ref_clk in suspend/resume flow

2019-10-14 Thread Biao Huang
disable ptp_ref_clk in suspend flow, and enable it in resume flow. Fixes: f573c0b9c4e0 ("stmmac: move stmmac_clk, pclk, clk_ptp_ref and stmmac_rst to platform structure") Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 12 1 file

[v3, PATCH] add some features in stmmac

2019-05-26 Thread Biao Huang
. Biao Huang (1): net: stmmac: add support for hash table size 128/256 in dwmac4

[v3, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-05-26 Thread Biao Huang
1. get hash table size in hw feature reigster, and add support for taller hash table(128/256) in dwmac4. 2. only clear GMAC_PACKET_FILTER bits used in this function, to avoid side effect to functions of other bits. Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/common.h

Re: [v3, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-05-27 Thread biao huang
Dear David, On Mon, 2019-05-27 at 10:08 -0700, David Miller wrote: > From: Biao Huang > Date: Mon, 27 May 2019 11:14:27 +0800 > > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c > > b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c > > in

Re: [v7, PATCH] net: stmmac: add support for hash table size 128/256 in dwmac4

2019-06-21 Thread biao huang
Dear David, Jose, any comments about this patch? Thanks Biao On Thu, 2019-05-30 at 17:30 +0800, Biao Huang wrote: > 1. get hash table size in hw feature reigster, and add support > for taller hash table(128/256) in dwmac4. > 2. only clear GMAC_PACKET_FILTER bits used in this

RE: [v2, PATCH 3/4] net: stmmac: modify default value of tx-frames

2019-06-03 Thread biao huang
On Mon, 2019-06-03 at 11:40 +, Jose Abreu wrote: > From: Biao Huang > > > the default value of tx-frames is 25, it's too late when > > passing tstamp to stack, then the ptp4l will fail: > > > > ptp4l -i eth0 -f gPTP.cfg -m > > ptp4l: selected /dev

[PATCH] net: stmmac: Fix RX Coalesce IOC always true issue

2020-06-09 Thread Biao Huang
Currently rx_count_frames in stmmac_rx_refill always 0, which leads to use_rx_wd false, and IOC bit of rx_desc3 true forever. Fix it. Fixes: 6fa9d691b91ac ("net: stmmac: Prevent divide-by-zero") Signed-off-by: Biao Huang --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 +

Re: [PATCH] net: stmmac: Fix RX Coalesce IOC always true issue

2020-06-09 Thread biao huang
On Tue, 2020-06-09 at 14:20 +, Jose Abreu wrote: > From: Biao Huang > Date: Jun/09/2020, 10:41:33 (UTC+00:00) > > > - rx_q->rx_count_frames += priv->rx_coal_frames; > > - if (rx_q->rx_count_frames > priv->rx_coal_frames) > > +

[PATCH 1/2] dt-binding: mediatek-dwmac: add binding document for MediaTek MT2712 DWMAC

2018-12-17 Thread Biao Huang
The commit adds the device tree binding documentation for the MediaTek DWMAC found on MediaTek MT2712. Signed-off-by: Biao Huang --- .../devicetree/bindings/net/mediatek-dwmac.txt | 78 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree

[PATCH 0/2] add ethernet binding and modify ethernet driver for mt2712

2018-12-17 Thread Biao Huang
in device tree, and don't care whether phy insert internal delay or not. Biao Huang (2): dt-binding: mediatek-dwmac: add binding document for MediaTek MT2712 DWMAC net-next: stmmac: dwmac-mediatek: remove fine-tune property .../devicetree/bindings/net/mediatek-dwmac.txt | 78

[PATCH 2/2] net-next: stmmac: dwmac-mediatek: remove fine-tune property

2018-12-17 Thread Biao Huang
1. remove fine-tune property and related setting to simplify the timing adjustment flow. 2. set timing value according to the value from device tree, and will not care whether PHY insert internal delay. Signed-off-by: Biao Huang --- .../net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 71

[v2, PATCH 1/2] dt-binding: mediatek-dwmac: add binding document for MediaTek MT2712 DWMAC

2018-12-17 Thread Biao Huang
The commit adds the device tree binding documentation for the MediaTek DWMAC found on MediaTek MT2712. Signed-off-by: Biao Huang --- .../devicetree/bindings/net/mediatek-dwmac.txt | 78 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree

[v2, PATCH 0/2] add ethernet binding and modify ethernet driver for mt2712

2018-12-17 Thread Biao Huang
fine tune property in device tree 3. remove fine tune flow in ethernet driver 4. set rgmii timing according to the value in device tree, and don't care whether phy insert internal delay or not. Biao Huang (2): dt-binding: mediatek-dwmac: add binding document for MediaTek MT2712 DWMAC net

  1   2   >