[net-next v9 10/11] net: phy: bcm7xxx: Add EPHY entry for 74165

2023-07-13 Thread Justin Chen
From: Florian Fainelli 74165 is a 16nm process SoC with a 10/100 integrated Ethernet PHY, utilize the recently defined 16nm EPHY macro to configure that PHY. Reviewed-by: Simon Horman Reviewed-by: Andrew Lunn Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- drivers/net/phy

[net-next v9 11/11] MAINTAINERS: ASP 2.0 Ethernet driver maintainers

2023-07-13 Thread Justin Chen
Add maintainers entry for ASP 2.0 Ethernet driver. Reviewed-by: Simon Horman Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v3 - Change from gmail to broadcom emails MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS

[net-next v9 09/11] net: phy: mdio-bcm-unimac: Add asp v2.0 support

2023-07-13 Thread Justin Chen
Add mdio compat string for ASP 2.0 ethernet driver. Reviewed-by: Simon Horman Reviewed-by: Andrew Lunn Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- drivers/net/mdio/mdio-bcm-unimac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mdio/mdio-bcm-unimac.c b

[net-next v9 07/11] net: bcmasp: Add support for ethtool standard stats

2023-07-13 Thread Justin Chen
Add support for eth_mac_stats, rmon_stats, and eth_ctrl_stats. Signed-off-by: Justin Chen --- .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c| 77 ++ .../net/ethernet/broadcom/asp2/bcmasp_intf_defs.h | 63 +- 2 files changed, 139 insertions(+), 1

[net-next v9 08/11] net: bcmasp: Add support for ethtool driver stats

2023-07-13 Thread Justin Chen
Add support for ethernet driver specific stats. Signed-off-by: Justin Chen --- v9 - Removed tx_realloc_offload, this stat is no longer relevant with skb_cow_head(). - Added tx_timeout_cnt v8 - Address maybe uninit variable warning drivers/net/ethernet

[net-next v9 05/11] net: bcmasp: Add support for wake on net filters

2023-07-13 Thread Justin Chen
Add support for wake on network filters. The max match is 256 bytes. Signed-off-by: Justin Chen --- drivers/net/ethernet/broadcom/asp2/bcmasp.c| 595 + drivers/net/ethernet/broadcom/asp2/bcmasp.h| 40 ++ .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c

[net-next v9 06/11] net: bcmasp: Add support for eee mode

2023-07-13 Thread Justin Chen
Add support for eee mode. Signed-off-by: Justin Chen --- drivers/net/ethernet/broadcom/asp2/bcmasp.h| 4 ++ .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c| 61 ++ drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | 6 +++ 3 files changed, 71 insertions

[net-next v9 03/11] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-07-13 Thread Justin Chen
Add support for the Broadcom ASP 2.0 Ethernet controller which is first introduced with 72165. This controller features two distinct Ethernet ports that can be independently operated. Reviewed-by: Simon Horman Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v9 - Reworked

[net-next v9 04/11] net: bcmasp: Add support for WoL magic packet

2023-07-13 Thread Justin Chen
Add support for Wake-On-Lan magic packet and magic packet with password. Signed-off-by: Justin Chen --- v9 - Fixed some spacing issues drivers/net/ethernet/broadcom/asp2/bcmasp.c| 144 + drivers/net/ethernet/broadcom/asp2/bcmasp.h| 18 +++ .../net

[net-next v9 02/11] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-07-13 Thread Justin Chen
From: Florian Fainelli Add a binding document for the Broadcom ASP 2.0 Ethernet controller. Reviewed-by: Conor Dooley Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v7 - Added "unevaluatedProperties: False" v6 - Moved compatible to the top

[net-next v9 01/11] dt-bindings: net: brcm,unimac-mdio: Add asp-v2.0

2023-07-13 Thread Justin Chen
The ASP 2.0 Ethernet controller uses a brcm unimac. Reviewed-by: Simon Horman Acked-by: Conor Dooley Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation

[net-next v9 00/11] Brcm ASP 2.0 Ethernet Controller

2023-07-13 Thread Justin Chen
Add support for the Broadcom ASP 2.0 Ethernet controller which is first introduced with 72165. Florian Fainelli (2): dt-bindings: net: Brcm ASP 2.0 Ethernet controller net: phy: bcm7xxx: Add EPHY entry for 74165 Justin Chen (9): dt-bindings: net: brcm,unimac-mdio: Add asp-v2.0 net

[PATCH net-next v8 11/11] MAINTAINERS: ASP 2.0 Ethernet driver maintainers

2023-06-16 Thread Justin Chen
Add maintainers entry for ASP 2.0 Ethernet driver. Reviewed-by: Simon Horman Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v3 - Change from gmail to broadcom emails MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS

[PATCH net-next v8 08/11] net: bcmasp: Add support for ethtool driver stats

2023-06-16 Thread Justin Chen
Add support for ethernet driver specific stats. Signed-off-by: Justin Chen --- v8 - Address maybe uninit variable warning drivers/net/ethernet/broadcom/asp2/bcmasp.c| 4 +- drivers/net/ethernet/broadcom/asp2/bcmasp.h| 21 +++ .../net/ethernet/broadcom/asp2

[PATCH net-next v8 09/11] net: phy: mdio-bcm-unimac: Add asp v2.0 support

2023-06-16 Thread Justin Chen
Add mdio compat string for ASP 2.0 ethernet driver. Reviewed-by: Simon Horman Reviewed-by: Andrew Lunn Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- drivers/net/mdio/mdio-bcm-unimac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mdio/mdio-bcm-unimac.c b

[PATCH net-next v8 10/11] net: phy: bcm7xxx: Add EPHY entry for 74165

2023-06-16 Thread Justin Chen
From: Florian Fainelli 74165 is a 16nm process SoC with a 10/100 integrated Ethernet PHY, utilize the recently defined 16nm EPHY macro to configure that PHY. Reviewed-by: Simon Horman Reviewed-by: Andrew Lunn Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- drivers/net/phy

[PATCH net-next v8 05/11] net: bcmasp: Add support for wake on net filters

2023-06-16 Thread Justin Chen
Add support for wake on network filters. The max match is 256 bytes. Signed-off-by: Justin Chen --- drivers/net/ethernet/broadcom/asp2/bcmasp.c| 595 + drivers/net/ethernet/broadcom/asp2/bcmasp.h| 40 ++ .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c

[PATCH net-next v8 07/11] net: bcmasp: Add support for ethtool standard stats

2023-06-16 Thread Justin Chen
Add support for eth_mac_stats, rmon_stats, and eth_ctrl_stats. Signed-off-by: Justin Chen --- .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c| 77 ++ .../net/ethernet/broadcom/asp2/bcmasp_intf_defs.h | 63 +- 2 files changed, 139 insertions(+), 1

[PATCH net-next v8 06/11] net: bcmasp: Add support for eee mode

2023-06-16 Thread Justin Chen
Add support for eee mode. Signed-off-by: Justin Chen --- drivers/net/ethernet/broadcom/asp2/bcmasp.h| 4 ++ .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c| 61 ++ drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | 6 +++ 3 files changed, 71 insertions

[PATCH net-next v8 04/11] net: bcmasp: Add support for WoL magic packet

2023-06-16 Thread Justin Chen
Add support for Wake-On-Lan magic packet and magic packet with password. Signed-off-by: Justin Chen --- drivers/net/ethernet/broadcom/asp2/bcmasp.c| 148 + drivers/net/ethernet/broadcom/asp2/bcmasp.h| 18 +++ .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c

[PATCH net-next v8 03/11] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-06-16 Thread Justin Chen
Add support for the Broadcom ASP 2.0 Ethernet controller which is first introduced with 72165. This controller features two distinct Ethernet ports that can be independently operated. Reviewed-by: Simon Horman Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v8 - Address

[PATCH net-next v8 02/11] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-06-16 Thread Justin Chen
From: Florian Fainelli Add a binding document for the Broadcom ASP 2.0 Ethernet controller. Reviewed-by: Conor Dooley Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v7 - Added "unevaluatedProperties: False" v6 - Moved compatible to the top

[PATCH net-next v8 00/11] Brcm ASP 2.0 Ethernet Controller

2023-06-16 Thread Justin Chen
Add support for the Broadcom ASP 2.0 Ethernet controller which is first introduced with 72165. Florian Fainelli (2): dt-bindings: net: Brcm ASP 2.0 Ethernet controller net: phy: bcm7xxx: Add EPHY entry for 74165 Justin Chen (9): dt-bindings: net: brcm,unimac-mdio: Add asp-v2.0 net

[PATCH net-next v8 01/11] dt-bindings: net: brcm, unimac-mdio: Add asp-v2.0

2023-06-16 Thread Justin Chen
The ASP 2.0 Ethernet controller uses a brcm unimac. Reviewed-by: Simon Horman Acked-by: Conor Dooley Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation

[PATCH net-next v7 10/11] net: phy: bcm7xxx: Add EPHY entry for 74165

2023-06-14 Thread Justin Chen
From: Florian Fainelli 74165 is a 16nm process SoC with a 10/100 integrated Ethernet PHY, utilize the recently defined 16nm EPHY macro to configure that PHY. Reviewed-by: Simon Horman Reviewed-by: Andrew Lunn Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- drivers/net/phy

[PATCH net-next v7 11/11] MAINTAINERS: ASP 2.0 Ethernet driver maintainers

2023-06-14 Thread Justin Chen
Add maintainers entry for ASP 2.0 Ethernet driver. Reviewed-by: Simon Horman Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v3 - Change from gmail to broadcom emails MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS

[PATCH net-next v7 07/11] net: bcmasp: Add support for ethtool standard stats

2023-06-14 Thread Justin Chen
Add support for eth_mac_stats, rmon_stats, and eth_ctrl_stats. Signed-off-by: Justin Chen --- .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c| 77 ++ .../net/ethernet/broadcom/asp2/bcmasp_intf_defs.h | 63 +- 2 files changed, 139 insertions(+), 1

[PATCH net-next v7 08/11] net: bcmasp: Add support for ethtool driver stats

2023-06-14 Thread Justin Chen
Add support for ethernet driver specific stats. Signed-off-by: Justin Chen --- drivers/net/ethernet/broadcom/asp2/bcmasp.c| 1 + drivers/net/ethernet/broadcom/asp2/bcmasp.h| 21 +++ .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c| 158 + drivers/net

[PATCH net-next v7 09/11] net: phy: mdio-bcm-unimac: Add asp v2.0 support

2023-06-14 Thread Justin Chen
Add mdio compat string for ASP 2.0 ethernet driver. Reviewed-by: Simon Horman Reviewed-by: Andrew Lunn Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- drivers/net/mdio/mdio-bcm-unimac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mdio/mdio-bcm-unimac.c b

[PATCH net-next v7 04/11] net: bcmasp: Add support for WoL magic packet

2023-06-14 Thread Justin Chen
Add support for Wake-On-Lan magic packet and magic packet with password. Signed-off-by: Justin Chen --- drivers/net/ethernet/broadcom/asp2/bcmasp.c| 148 + drivers/net/ethernet/broadcom/asp2/bcmasp.h| 18 +++ .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c

[PATCH net-next v7 03/11] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-06-14 Thread Justin Chen
Add support for the Broadcom ASP 2.0 Ethernet controller which is first introduced with 72165. This controller features two distinct Ethernet ports that can be independently operated. Reviewed-by: Simon Horman Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v7 - Fixed

[PATCH net-next v7 06/11] net: bcmasp: Add support for eee mode

2023-06-14 Thread Justin Chen
Add support for eee mode. Signed-off-by: Justin Chen --- drivers/net/ethernet/broadcom/asp2/bcmasp.h| 4 ++ .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c| 61 ++ drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c | 6 +++ 3 files changed, 71 insertions

[PATCH net-next v7 05/11] net: bcmasp: Add support for wake on net filters

2023-06-14 Thread Justin Chen
Add support for wake on network filters. The max match is 256 bytes. Signed-off-by: Justin Chen --- drivers/net/ethernet/broadcom/asp2/bcmasp.c| 595 + drivers/net/ethernet/broadcom/asp2/bcmasp.h| 40 ++ .../net/ethernet/broadcom/asp2/bcmasp_ethtool.c

[PATCH net-next v7 01/11] dt-bindings: net: brcm, unimac-mdio: Add asp-v2.0

2023-06-14 Thread Justin Chen
The ASP 2.0 Ethernet controller uses a brcm unimac. Reviewed-by: Simon Horman Acked-by: Conor Dooley Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation

[PATCH net-next v7 02/11] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-06-14 Thread Justin Chen
From: Florian Fainelli Add a binding document for the Broadcom ASP 2.0 Ethernet controller. Reviewed-by: Conor Dooley Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v7 - Added "unevaluatedProperties: False" v6 - Moved compatible to the top

[PATCH net-next v7 00/11] Brcm ASP 2.0 Ethernet Controller

2023-06-14 Thread Justin Chen
Add support for the Broadcom ASP 2.0 Ethernet controller which is first introduced with 72165. Florian Fainelli (2): dt-bindings: net: Brcm ASP 2.0 Ethernet controller net: phy: bcm7xxx: Add EPHY entry for 74165 Justin Chen (9): dt-bindings: net: brcm,unimac-mdio: Add asp-v2.0 net

Re: [PATCH net-next v6 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-06-06 Thread Justin Chen
On 6/6/2023 8:45 PM, Jakub Kicinski wrote: On Tue, 6 Jun 2023 19:33:13 -0700 Justin Chen wrote: Not netdevs per se, but packets can be redirected to an offload co-processor. How is the redirecting configured? Through filters that can be programmed by the Host cpu or co-processor. How

Re: [PATCH net-next v6 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-06-06 Thread Justin Chen
On 6/6/2023 6:54 PM, Jakub Kicinski wrote: On Tue, 6 Jun 2023 18:35:51 -0700 Justin Chen wrote: Also - can you describe how you can have multiple netdevs for the same MAC? Not netdevs per se, but packets can be redirected to an offload co-processor. How is the redirecting configured

Re: [PATCH net-next v6 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-06-06 Thread Justin Chen
On 6/6/2023 5:16 PM, Jakub Kicinski wrote: On Tue, 6 Jun 2023 15:58:21 -0700 Justin Chen wrote: On 6/2/23 11:58 PM, Jakub Kicinski wrote: On Thu, 1 Jun 2023 15:12:28 -0700 Justin Chen wrote: + /* general stats */ + STAT_NETDEV(rx_packets), + STAT_NETDEV(tx_packets

Re: [PATCH net-next v6 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-06-06 Thread Justin Chen
On 6/2/23 11:58 PM, Jakub Kicinski wrote: On Thu, 1 Jun 2023 15:12:28 -0700 Justin Chen wrote: + /* general stats */ + STAT_NETDEV(rx_packets), + STAT_NETDEV(tx_packets), + STAT_NETDEV(rx_bytes), + STAT_NETDEV(tx_bytes), + STAT_NETDEV(rx_errors

[PATCH net-next v6 6/6] MAINTAINERS: ASP 2.0 Ethernet driver maintainers

2023-06-01 Thread Justin Chen
Add maintainers entry for ASP 2.0 Ethernet driver. Reviewed-by: Simon Horman Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v3 - Change from gmail to broadcom emails MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS

[PATCH net-next v6 5/6] net: phy: bcm7xxx: Add EPHY entry for 74165

2023-06-01 Thread Justin Chen
From: Florian Fainelli 74165 is a 16nm process SoC with a 10/100 integrated Ethernet PHY, utilize the recently defined 16nm EPHY macro to configure that PHY. Reviewed-by: Simon Horman Reviewed-by: Andrew Lunn Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- drivers/net/phy

[PATCH net-next v6 4/6] net: phy: mdio-bcm-unimac: Add asp v2.0 support

2023-06-01 Thread Justin Chen
Add mdio compat string for ASP 2.0 ethernet driver. Reviewed-by: Simon Horman Reviewed-by: Andrew Lunn Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- drivers/net/mdio/mdio-bcm-unimac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mdio/mdio-bcm-unimac.c b

[PATCH net-next v6 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-06-01 Thread Justin Chen
) - MAC destination address filtering (promiscuous, ALL_MULTI, etc.) Reviewed-by: Simon Horman Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v6 - Fixed a reserved mac filter indexing error - Removed tx_lock - Simplified tx_timeout hook - Removed

[PATCH net-next v6 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-06-01 Thread Justin Chen
From: Florian Fainelli Add a binding document for the Broadcom ASP 2.0 Ethernet controller. Reviewed-by: Conor Dooley Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v6 - Moved compatible to the top - Changed quotes to be consistent - Elaborated on brcm

[PATCH net-next v6 1/6] dt-bindings: net: brcm, unimac-mdio: Add asp-v2.0

2023-06-01 Thread Justin Chen
The ASP 2.0 Ethernet controller uses a brcm unimac. Reviewed-by: Simon Horman Acked-by: Conor Dooley Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation

[PATCH net-next v6 0/6] Brcm ASP 2.0 Ethernet Controller

2023-06-01 Thread Justin Chen
Add support for the Broadcom ASP 2.0 Ethernet controller which is first introduced with 72165. Florian Fainelli (2): dt-bindings: net: Brcm ASP 2.0 Ethernet controller net: phy: bcm7xxx: Add EPHY entry for 74165 Justin Chen (4): dt-bindings: net: brcm,unimac-mdio: Add asp-v2.0 net

Re: [PATCH net-next v5 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-05-31 Thread Justin Chen
On 5/31/23 12:18 PM, Krzysztof Kozlowski wrote: On 25/05/2023 01:01, Justin Chen wrote: From: Florian Fainelli Add a binding document for the Broadcom ASP 2.0 Ethernet controller. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v5 - Fix compatible string yaml

Re: [PATCH net-next v5 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-05-26 Thread Justin Chen
On 5/25/23 8:54 PM, Jakub Kicinski wrote: On Wed, 24 May 2023 16:01:50 -0700 Justin Chen wrote: Add support for the Broadcom ASP 2.0 Ethernet controller which is first introduced with 72165. This controller features two distinct Ethernet ports that can be independently operated. This patch

[PATCH net-next v5 6/6] MAINTAINERS: ASP 2.0 Ethernet driver maintainers

2023-05-24 Thread Justin Chen
Add maintainers entry for ASP 2.0 Ethernet driver. Reviewed-by: Simon Horman Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v3 - Change from gmail to broadcom emails MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS

[PATCH net-next v5 5/6] net: phy: bcm7xxx: Add EPHY entry for 74165

2023-05-24 Thread Justin Chen
From: Florian Fainelli 74165 is a 16nm process SoC with a 10/100 integrated Ethernet PHY, utilize the recently defined 16nm EPHY macro to configure that PHY. Reviewed-by: Simon Horman Reviewed-by: Andrew Lunn Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- drivers/net/phy

[PATCH net-next v5 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-05-24 Thread Justin Chen
From: Florian Fainelli Add a binding document for the Broadcom ASP 2.0 Ethernet controller. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v5 - Fix compatible string yaml format to properly capture what we want v4 - Adjust compatible string example

[PATCH net-next v5 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-05-24 Thread Justin Chen
) - MAC destination address filtering (promiscuous, ALL_MULTI, etc.) Reviewed-by: Simon Horman Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v5 - Remove unnecessary parenthesis - Use bool for bcmasp_netfilt_check_dup() v4 - Address sparse warnings

[PATCH net-next v5 4/6] net: phy: mdio-bcm-unimac: Add asp v2.0 support

2023-05-24 Thread Justin Chen
Add mdio compat string for ASP 2.0 ethernet driver. Reviewed-by: Simon Horman Reviewed-by: Andrew Lunn Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- drivers/net/mdio/mdio-bcm-unimac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mdio/mdio-bcm-unimac.c b

[PATCH net-next v5 1/6] dt-bindings: net: brcm, unimac-mdio: Add asp-v2.0

2023-05-24 Thread Justin Chen
The ASP 2.0 Ethernet controller uses a brcm unimac. Reviewed-by: Simon Horman Acked-by: Conor Dooley Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation

[PATCH net-next v5 0/6] Brcm ASP 2.0 Ethernet Controller

2023-05-24 Thread Justin Chen
EPHY entry for 74165 Justin Chen (4): dt-bindings: net: brcm,unimac-mdio: Add asp-v2.0 net: bcmasp: Add support for ASP2.0 Ethernet controller net: phy: mdio-bcm-unimac: Add asp v2.0 support MAINTAINERS: ASP 2.0 Ethernet driver maintainers .../devicetree/bindings/net/brcm,asp-v2.0.yaml

Re: [PATCH net-next v4 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-05-24 Thread Justin Chen
On Tue, May 23, 2023 at 11:56 PM Conor Dooley wrote: > > On Wed, May 24, 2023 at 07:51:07AM +0100, Conor Dooley wrote: > > Hey Justin, > > On Tue, May 23, 2023 at 04:27:12PM -0700, Justin Chen wrote: > > > On Tue, May 23, 2023 at 3:55 PM Conor Dooley wrote: > >

Re: [PATCH net-next v4 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-05-23 Thread Justin Chen
On Tue, May 23, 2023 at 3:55 PM Conor Dooley wrote: > > Hey Justin, > > On Tue, May 23, 2023 at 02:53:43PM -0700, Justin Chen wrote: > > > + compatible: > > +enum: > > + - brcm,asp-v2.0 > > + - brcm,bcm72165-asp > > + -

[PATCH net-next v4 5/6] net: phy: bcm7xxx: Add EPHY entry for 74165

2023-05-23 Thread Justin Chen
From: Florian Fainelli 74165 is a 16nm process SoC with a 10/100 integrated Ethernet PHY, utilize the recently defined 16nm EPHY macro to configure that PHY. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen Reviewed-by: Andrew Lunn --- drivers/net/phy/bcm7xxx.c | 1 + include

[PATCH net-next v4 6/6] MAINTAINERS: ASP 2.0 Ethernet driver maintainers

2023-05-23 Thread Justin Chen
Add maintainers entry for ASP 2.0 Ethernet driver. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e2fd64c2ebdc..732a099f4a10 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH net-next v4 1/6] dt-bindings: net: brcm, unimac-mdio: Add asp-v2.0

2023-05-23 Thread Justin Chen
The ASP 2.0 Ethernet controller uses a brcm unimac. Acked-by: Conor Dooley Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/net

[PATCH net-next v4 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-05-23 Thread Justin Chen
) - MAC destination address filtering (promiscuous, ALL_MULTI, etc.) Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v4 - Address sparse warnings - Fix one more reverse xmas tree violation - Improve error logic for bcmasp_netfilt_get_reg_offset() v3

[PATCH net-next v4 4/6] net: phy: mdio-bcm-unimac: Add asp v2.0 support

2023-05-23 Thread Justin Chen
Add mdio compat string for ASP 2.0 ethernet driver. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen Reviewed-by: Andrew Lunn --- drivers/net/mdio/mdio-bcm-unimac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mdio/mdio-bcm-unimac.c b/drivers/net/mdio/mdio-bcm

[PATCH net-next v4 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-05-23 Thread Justin Chen
From: Florian Fainelli Add a binding document for the Broadcom ASP 2.0 Ethernet controller. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v3 - Adjust compatible string example to reference SoC and HW ver v3 - Minor formatting issues - Change channel

[PATCH net-next v4 0/6] Brcm ASP 2.0 Ethernet Controller

2023-05-23 Thread Justin Chen
EPHY entry for 74165 Justin Chen (4): dt-bindings: net: brcm,unimac-mdio: Add asp-v2.0 net: bcmasp: Add support for ASP2.0 Ethernet controller net: phy: mdio-bcm-unimac: Add asp v2.0 support MAINTAINERS: ASP 2.0 Ethernet driver maintainers .../devicetree/bindings/net/brcm,asp-v2.0.yaml

Re: [PATCH net-next v3 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-05-23 Thread Justin Chen
On Mon, May 22, 2023 at 11:27 AM Conor Dooley wrote: > > On Fri, May 19, 2023 at 02:19:40PM -0700, Justin Chen wrote: > > From: Florian Fainelli > > > > Add a binding document for the Broadcom ASP 2.0 Ethernet controller. > > > > Signed-off-by: Florian

[PATCH net-next v3 1/6] dt-bindings: net: brcm, unimac-mdio: Add asp-v2.0

2023-05-20 Thread Justin Chen
The ASP 2.0 Ethernet controller uses a brcm unimac. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml b

[PATCH net-next v3 5/6] net: phy: bcm7xxx: Add EPHY entry for 74165

2023-05-20 Thread Justin Chen
From: Florian Fainelli 74165 is a 16nm process SoC with a 10/100 integrated Ethernet PHY, utilize the recently defined 16nm EPHY macro to configure that PHY. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen Reviewed-by: Andrew Lunn --- drivers/net/phy/bcm7xxx.c | 1 + include

[PATCH net-next v3 4/6] net: phy: mdio-bcm-unimac: Add asp v2.0 support

2023-05-20 Thread Justin Chen
Add mdio compat string for ASP 2.0 ethernet driver. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen Reviewed-by: Andrew Lunn --- drivers/net/mdio/mdio-bcm-unimac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mdio/mdio-bcm-unimac.c b/drivers/net/mdio/mdio-bcm

[PATCH net-next v3 0/6] Brcm ASP 2.0 Ethernet Controller

2023-05-20 Thread Justin Chen
EPHY entry for 74165 Justin Chen (4): dt-bindings: net: brcm,unimac-mdio: Add asp-v2.0 net: bcmasp: Add support for ASP2.0 Ethernet controller net: phy: mdio-bcm-unimac: Add asp v2.0 support MAINTAINERS: ASP 2.0 Ethernet driver maintainers .../devicetree/bindings/net/brcm,asp-v2.0.yaml

[PATCH net-next v3 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-05-20 Thread Justin Chen
) - MAC destination address filtering (promiscuous, ALL_MULTI, etc.) Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v3 - Fix logic error with net stats where some stats were missing - General clean up addressing formatting/spelling/consistency - Use

[PATCH net-next v3 6/6] MAINTAINERS: ASP 2.0 Ethernet driver maintainers

2023-05-20 Thread Justin Chen
Add maintainers entry for ASP 2.0 Ethernet driver. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v3 Change from gmail to broadcom emails MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index e2fd64c2ebdc..732a099f4a10

[PATCH net-next v3 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-05-20 Thread Justin Chen
From: Florian Fainelli Add a binding document for the Broadcom ASP 2.0 Ethernet controller. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- v3 - Minor formatting issues - Change channel prop to brcm,channel for vendor specific format - Removed redundant

Re: [PATCH v2 net-next 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-05-02 Thread Justin Chen
On Tue, May 2, 2023 at 12:44 PM Simon Horman wrote: > > On Wed, Apr 26, 2023 at 11:54:29AM -0700, Justin Chen wrote: > > Add support for the Broadcom ASP 2.0 Ethernet controller which is first > > introduced with 72165. This controller features two distinct Ethernet

Re: [PATCH v2 net-next 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-04-27 Thread Justin Chen
On Thu, Apr 27, 2023 at 10:16 AM Rob Herring wrote: > > On Wed, Apr 26, 2023 at 11:54:28AM -0700, Justin Chen wrote: > > From: Florian Fainelli > > > > Add a binding document for the Broadcom ASP 2.0 Ethernet > > controller. > > > > Signed-off-by: Floria

[PATCH v2 net-next 6/6] MAINTAINERS: ASP 2.0 Ethernet driver maintainers

2023-04-26 Thread Justin Chen
Add maintainers entry for ASP 2.0 Ethernet driver. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4fc57dfd5fd0..24cbe1c0fc06 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH v2 net-next 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-04-26 Thread Justin Chen
) - MAC destination address filtering (promiscuous, ALL_MULTI, etc.) Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- drivers/net/ethernet/broadcom/Kconfig | 11 + drivers/net/ethernet/broadcom/Makefile |1 + drivers/net/ethernet/broadcom/asp2

[PATCH v2 net-next 4/6] net: phy: mdio-bcm-unimac: Add asp v2.0 support

2023-04-26 Thread Justin Chen
Add mdio compat string for ASP 2.0 ethernet driver. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen Reviewed-by: Andrew Lunn --- drivers/net/mdio/mdio-bcm-unimac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mdio/mdio-bcm-unimac.c b/drivers/net/mdio/mdio-bcm

[PATCH v2 net-next 5/6] net: phy: bcm7xxx: Add EPHY entry for 74165

2023-04-26 Thread Justin Chen
From: Florian Fainelli 74165 is a 16nm process SoC with a 10/100 integrated Ethernet PHY, utilize the recently defined 16nm EPHY macro to configure that PHY. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen Reviewed-by: Andrew Lunn --- drivers/net/phy/bcm7xxx.c | 1 + include

[PATCH v2 net-next 2/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-04-26 Thread Justin Chen
From: Florian Fainelli Add a binding document for the Broadcom ASP 2.0 Ethernet controller. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- .../devicetree/bindings/net/brcm,asp-v2.0.yaml | 145 + 1 file changed, 145 insertions(+) create mode 100644

[PATCH v2 net-next 1/6] dt-bindings: net: brcm, unimac-mdio: Add asp-v2.0

2023-04-26 Thread Justin Chen
The ASP 2.0 Ethernet controller uses a brcm unimac. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml b

[PATCH v2 net-next 0/6] Brcm ASP 2.0 Ethernet controller

2023-04-26 Thread Justin Chen
integrated Ethernet PHY which also uses the ASP 2.0 Ethernet controller. Florian Fainelli (2): dt-bindings: net: Brcm ASP 2.0 Ethernet controller net: phy: bcm7xxx: Add EPHY entry for 74165 Justin Chen (4): dt-bindings: net: brcm,unimac-mdio: Add asp-v2.0 net: bcmasp: Add support for ASP2.0

Re: [PATCH net-next 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-04-24 Thread Justin Chen
On Wed, Apr 19, 2023 at 9:33 AM Florian Fainelli wrote: > > On 4/18/23 23:35, Heiner Kallweit wrote: > > On 19.04.2023 02:10, Justin Chen wrote: > >> Add support for the Broadcom ASP 2.0 Ethernet controller which is first > >> introduced with 72165. This controller

Re: [PATCH net-next 1/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-04-24 Thread Justin Chen
On Fri, Apr 21, 2023 at 12:29 AM Krzysztof Kozlowski wrote: > > On 19/04/2023 02:10, Justin Chen wrote: > > From: Florian Fainelli > > > > Add a binding document for the Broadcom ASP 2.0 Ethernet > > controller. > > > > Signed-off-by: Floria

Re: [PATCH net-next 0/6] Brcm ASP 2.0 Ethernet controller

2023-04-18 Thread Justin Chen
On Tue, Apr 18, 2023 at 5:10 PM Justin Chen wrote: > > From: Justin Chen Woops, looks like I screwed up on some of my email addresses in the patch set. Will fix in v2 after first round of reviews. Justin > > Add support for the Broadcom ASP 2.0 Ethernet controller which is first

[PATCH net-next 5/6] net: phy: bcm7xxx: Add EPHY entry for 74165

2023-04-18 Thread Justin Chen
From: Florian Fainelli 74165 is a 16nm process SoC with a 10/100 integrated Ethernet PHY, utilize the recently defined 16nm EPHY macro to configure that PHY. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- drivers/net/phy/bcm7xxx.c | 1 + include/linux/brcmphy.h | 1 + 2

[PATCH net-next 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller

2023-04-18 Thread Justin Chen
) - MAC destination address filtering (promiscuous, ALL_MULTI, etc.) Signed-off-by: Justin Chen Signed-off-by: Florian Fainelli --- drivers/net/ethernet/broadcom/Kconfig | 11 + drivers/net/ethernet/broadcom/Makefile |1 + drivers/net/ethernet/broadcom/asp2

[PATCH net-next 6/6] MAINTAINERS: ASP 2.0 Ethernet driver maintainers

2023-04-18 Thread Justin Chen
Add maintainers entry for ASP 2.0 Ethernet driver. Signed-off-by: Justin Chen Signed-off-by: Florian Fainelli --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4fc57dfd5fd0..24cbe1c0fc06 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH net-next 4/6] net: phy: mdio-bcm-unimac: Add asp v2.0 support

2023-04-18 Thread Justin Chen
Add mdio compat string for ASP 2.0 ethernet driver. Signed-off-by: Justin Chen Signed-off-by: Florian Fainelli --- drivers/net/mdio/mdio-bcm-unimac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/mdio/mdio-bcm-unimac.c b/drivers/net/mdio/mdio-bcm-unimac.c index

[PATCH net-next 2/6] dt-bindings: net: brcm, unimac-mdio: Add asp-v2.0

2023-04-18 Thread Justin Chen
From: Justin Chen The ASP 2.0 Ethernet controller uses a brcm unimac. Signed-off-by: Justin Chen Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/net/brcm

[PATCH net-next 1/6] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2023-04-18 Thread Justin Chen
From: Florian Fainelli Add a binding document for the Broadcom ASP 2.0 Ethernet controller. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- .../devicetree/bindings/net/brcm,asp-v2.0.yaml | 146 + 1 file changed, 146 insertions(+) create mode 100644

[PATCH net-next 0/6] Brcm ASP 2.0 Ethernet controller

2023-04-18 Thread Justin Chen
From: Justin Chen Add support for the Broadcom ASP 2.0 Ethernet controller which is first introduced with 72165. Add support for 74165 10/100 integrated Ethernet PHY which also uses the ASP 2.0 Ethernet controller. Florian Fainelli (2): dt-bindings: net: Brcm ASP 2.0 Ethernet controller

Re: [PATCH net-next 3/5] net: bcmasp: Add support for ASP2.0 Ethernet controller

2021-09-30 Thread Justin Chen
On Sun, Sep 26, 2021 at 6:58 AM Andrew Lunn wrote: > > > > > +static int bcmasp_set_priv_flags(struct net_device *dev, u32 flags) > > > > +{ > > > > + struct bcmasp_intf *intf = netdev_priv(dev); > > > > + > > > > + intf->wol_keep_rx_en = flags & BCMASP_WOL_KEEP_RX_EN ? 1 : 0; > > > > + > > > > +

[PATCH net-next 1/5] dt-bindings: net: Brcm ASP 2.0 Ethernet controller

2021-09-25 Thread Justin Chen
From: Florian Fainelli Add a binding document for the Broadcom ASP 2.0 Ethernet controller. Signed-off-by: Florian Fainelli Signed-off-by: Justin Chen --- .../devicetree/bindings/net/brcm,asp-v2.0.yaml | 147 + 1 file changed, 147 insertions(+) create mode 100644

[PATCH net-next 5/5] MAINTAINERS: ASP 2.0 Ethernet driver maintainers

2021-09-25 Thread Justin Chen
Signed-off-by: Justin Chen Signed-off-by: Florian Fainelli --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7f46153..3ba3ca8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3762,6 +3762,15 @@ F: drivers/net/mdio/mdio-bcm-unimac.c

Re: [PATCH net-next 3/5] net: bcmasp: Add support for ASP2.0 Ethernet controller

2021-09-25 Thread Justin Chen
On Fri, Sep 24, 2021 at 5:05 PM Jakub Kicinski wrote: > > On Fri, 24 Sep 2021 14:44:49 -0700 Justin Chen wrote: > > Add support for the Broadcom ASP 2.0 Ethernet controller which is first > > introduced with 72165. This controller features two distinct Ethernet > > ports t

[PATCH net-next 2/5] dt-bindings: net: brcm, unimac-mdio: Add asp-v2.0

2021-09-25 Thread Justin Chen
The ASP 2.0 Ethernet controller uses a brcm unimac. Signed-off-by: Justin Chen Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml b

[PATCH net-next 4/5] net: phy: mdio-bcm-unimac: Add asp v2.0 support

2021-09-25 Thread Justin Chen
Signed-off-by: Justin Chen Signed-off-by: Florian Fainelli --- drivers/net/mdio/mdio-bcm-unimac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mdio/mdio-bcm-unimac.c b/drivers/net/mdio/mdio-bcm-unimac.c index bfc9be2..14202a1 100644 --- a/drivers/net/mdio/mdio-bcm-unimac.c

[PATCH net-next 3/5] net: bcmasp: Add support for ASP2.0 Ethernet controller

2021-09-25 Thread Justin Chen
) - MAC destination address filtering (promiscuous, ALL_MULTI, etc.) Signed-off-by: Justin Chen Signed-off-by: Florian Fainelli --- drivers/net/ethernet/broadcom/Kconfig | 11 + drivers/net/ethernet/broadcom/Makefile |1 + drivers/net/ethernet/broadcom/asp2

[PATCH net-next 0/5] brcm ASP 2.0 Ethernet controller

2021-09-25 Thread Justin Chen
This patch set adds support for Broadcom's ASP 2.0 Ethernet controller. Florian Fainelli (1): dt-bindings: net: Brcm ASP 2.0 Ethernet controller Justin Chen (4): dt-bindings: net: brcm,unimac-mdio: Add asp-v2.0 net: bcmasp: Add support for ASP2.0 Ethernet controller net: phy: mdio-bcm

  1   2   >