Re: [PATCH net-next 1/2] net: phy: add interface mode PHY_INTERFACE_MODE_USXGMII

2019-05-22 Thread Florian Fainelli
On 5/22/19 12:57 PM, Heiner Kallweit wrote: > Add support for interface mode PHY_INTERFACE_MODE_USXGMII. > > Signed-off-by: Heiner Kallweit If you update Documentation/devicetree/bindings/net/ethernet.txt, then this is: Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 2/2] net: phy: aquantia: add USXGMII support

2019-05-22 Thread Florian Fainelli
a separate commits and just have the DTS changes come last? With that: Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 2/2] net: phy: aquantia: add USXGMII support

2019-05-22 Thread Florian Fainelli
On 5/22/19 1:18 PM, Heiner Kallweit wrote: > On 22.05.2019 22:07, Florian Fainelli wrote: >> On 5/22/19 12:58 PM, Heiner Kallweit wrote: >>> So far we didn't support mode USXGMII, and in order to not break the >>> two Freescale boards mode XGMII was accepted for t

Re: [RFC PATCH net-next 1/9] net: phy: Add phy_sysfs_create_links helper function

2019-05-22 Thread Florian Fainelli
follow-up > patch where this function will be guarded against the existence of a > phydev->attached_dev. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [RFC PATCH net-next 2/9] net: phy: Guard against the presence of a netdev

2019-05-22 Thread Florian Fainelli
reated in case there is no attached_dev. > > - No netif_carrier_off is done if there is no attached_dev. > > Signed-off-by: Ioana Ciornei > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [RFC PATCH net-next 3/9] net: phy: Add phy_standalone sysfs entry

2019-05-22 Thread Florian Fainelli
On 5/22/2019 6:20 PM, Ioana Ciornei wrote: > Export a phy_standalone device attribute that is meant to give the > indication that this PHY lacks an attached_dev and its corresponding > sysfs link. > > Signed-off-by: Ioana Ciornei I would rather have that attribute be conditionally visible/cre

Re: [RFC PATCH net-next 4/9] net: phylink: Add phylink_mac_link_{up,down} wrapper functions

2019-05-22 Thread Florian Fainelli
es not exist. > > Signed-off-by: Ioana Ciornei Reviewed-by: Florian Fainelli -- Florian

Re: [RFC PATCH net-next 7/9] net: dsa: Move the phylink driver calls into port.c

2019-05-22 Thread Florian Fainelli
_validate); Those exports should probably be _GPL to follow the PHYLINK exports but other than that: Reviewed-by: Florian Fainelli -- Florian

Re: [RFC PATCH net-next 8/9] net: dsa: Use PHYLINK for the CPU/DSA ports

2019-05-22 Thread Florian Fainelli
On 5/22/2019 6:20 PM, Ioana Ciornei wrote: > This completely removes the usage of PHYLIB from DSA, namely for the > aforementioned switch ports which used to drive a software PHY manually > using genphy operations. > > For these ports, the newly introduced phylink_create_raw API must be > used,

Re: [RFC PATCH net-next 5/9] net: phylink: Add phylink_create_raw

2019-05-22 Thread Florian Fainelli
On 5/22/2019 6:20 PM, Ioana Ciornei wrote: > This adds a new entry point to PHYLINK that does not require a > net_device structure. > > The main intended use are DSA ports that do not have net devices > registered for them (mainly because doing so would be redundant - see > Documentation/networ

Re: [RFC PATCH net-next 9/9] net: dsa: sja1105: Fix broken fixed-link interfaces on user ports

2019-05-22 Thread Florian Fainelli
else. > > As explained below: > > commit aab9c4067d2389d0adfc9c53806437df7b0fe3d5 > Author: Florian Fainelli > Date: Thu May 10 13:17:36 2018 -0700 > > net: dsa: Plug in PHYLINK support > > Drivers that utilize fixed links for user-facing ports (e.g: bcm_sf2) > will need to implem

Re: [RFC PATCH net-next 5/9] net: phylink: Add phylink_create_raw

2019-05-22 Thread Florian Fainelli
On 5/22/2019 7:25 PM, Florian Fainelli wrote: > > > On 5/22/2019 6:20 PM, Ioana Ciornei wrote: >> This adds a new entry point to PHYLINK that does not require a >> net_device structure. >> >> The main intended use are DSA ports that do not have net devic

Re: [RFC PATCH net-next 5/9] net: phylink: Add phylink_create_raw

2019-05-23 Thread Florian Fainelli
On 5/23/2019 5:10 AM, Ioana Ciornei wrote: > >> Subject: Re: [RFC PATCH net-next 5/9] net: phylink: Add phylink_create_raw >> >> >> >> On 5/22/2019 7:25 PM, Florian Fainelli wrote: >>> >>> >>> On 5/22/2019 6:20 PM, Ioana Ciornei wrot

Re: [PATCH 2/8] dt-bindings: net: Add a YAML schemas for the generic PHY options

2019-05-23 Thread Florian Fainelli
On 5/23/19 2:56 AM, Maxime Ripard wrote: > The networking PHYs have a number of available device tree properties that > can be used in their device tree node. Add a YAML schemas for those. > > Signed-off-by: Maxime Ripard > --- > Documentation/devicetree/bindings/net/ethernet-phy.yaml | 148

Re: [PATCH net-next v2 2/3] dt-bindings: net: document new usxgmii phy mode

2019-05-23 Thread Florian Fainelli
On 5/23/19 11:07 AM, Heiner Kallweit wrote: > Add new interface mode USXGMII to binding documentation. > > Signed-off-by: Heiner Kallweit Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next v2 3/3] net: phy: aquantia: add USXGMII support and warn if XGMII mode is set

2019-05-23 Thread Florian Fainelli
I mode is set. > > v2: > - add warning if XGMII mode is set > > Signed-off-by: Heiner Kallweit Reviewed-by: Florian Fainelli -- Florian

Re: [RFC PATCH net-next 5/9] net: phylink: Add phylink_create_raw

2019-05-23 Thread Florian Fainelli
On 5/23/19 1:32 PM, Vladimir Oltean wrote: > On 5/23/19 5:32 PM, Florian Fainelli wrote: >> >> On 5/23/2019 5:10 AM, Ioana Ciornei wrote: >>> >>>> Subject: Re: [RFC PATCH net-next 5/9] net: phylink: Add >>>> phylink_create_raw >>>>

Re: [PATCH] net:phy:dp83867: set up rgmii tx delay

2019-05-24 Thread Florian Fainelli
On 5/24/2019 3:35 AM, Max Uvarov wrote: > PHY_INTERFACE_MODE_RGMII_RXID is less then TXID > so code to set tx delay is never called. > > Signed-off-by: Max Uvarov Could you provide an appropriate Fixes: tag for this as well as fix the subject to be: net: phy: dp83867: Set up RGMII TX delay

Re: [patch net-next 0/7] expose flash update status to user

2019-05-27 Thread Florian Fainelli
On 5/23/2019 2:45 AM, Jiri Pirko wrote: > From: Jiri Pirko > > When user is flashing device using devlink, he currenly does not see any > information about what is going on, percentages, etc. > Drivers, for example mlxsw and mlx5, have notion about the progress > and what is happening. This pa

Re: [PATCH v2 1/4] net: phy: dp83867: fix speed 10 in sgmii mode

2019-05-27 Thread Florian Fainelli
SGMII) { > + /* For support SPEED_10 in SGMII mode > + * DP83867_10M_SGMII_RATE_ADAPT bit > + * has to be cleared by software. That > + * does not affect SPEED_100 and > + * SPEED_1000. Likewise, s/support/supporting/ wi

Re: [PATCH v2 4/4] net: phy: dp83867: Set up RGMII TX delay

2019-05-27 Thread Florian Fainelli
On 5/26/2019 11:16 PM, Max Uvarov wrote: > PHY_INTERFACE_MODE_RGMII_RXID is less then TXID > so code to set tx delay is never called. > Fixes: 2a10154abcb75 ("net: phy: dp83867: Add TI dp83867 phy") > > Signed-off-by: Max Uvarov > Cc: Florian Fainelli R

Re: [PATCH v2 3/4] net: phy: dp83867: do not call config_init twice

2019-05-27 Thread Florian Fainelli
On 5/26/2019 11:16 PM, Max Uvarov wrote: > Phy state machine calls _config_init just after > reset. > > Signed-off-by: Max Uvarov Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v2 2/4] net: phy: dp83867: increase SGMII autoneg timer duration

2019-05-27 Thread Florian Fainelli
timer is set to 2us (bits 6 and 5 > + * are 01). That us not enough to finalize autoneg on some Likewise, same typo was carried over here. With that fixed and Heiner's suggestions addressed: Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 1/3] net: phy: export phy_queue_state_machine

2019-05-27 Thread Florian Fainelli
On 5/27/2019 11:28 AM, Heiner Kallweit wrote: > We face the issue that link change interrupt and link status may be > reported by different layers. As a result the link change interrupt > may occur before the link status changes. > Export phy_queue_state_machine to allow PHY drivers to specify a

Re: [PATCH net-next 2/3] net: phy: add callback for custom interrupt handler to struct phy_driver

2019-05-27 Thread Florian Fainelli
On 5/27/2019 11:28 AM, Heiner Kallweit wrote: > The phylib interrupt handler handles link change events only currently. > However PHY drivers may want to use other interrupt sources too, > e.g. to report temperature monitoring events. Therefore add a callback > to struct phy_driver allowing PHY

Re: [PATCH 06/11] net: phylink: Add struct phylink_config to PHYLINK API

2019-05-27 Thread Florian Fainelli
disconnects the phy_device from the > net_device and also works when the net_device is lacking. > > Signed-off-by: Ioana Ciornei > Signed-off-by: Vladimir Oltean The PHYLINK and DSA portions look good to me, and this is a lot nicer than the notifier, thanks for coming up with that scheme: Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH 08/11] net: phylink: Add phylink_{printk,err,warn,info,dbg} macros

2019-05-27 Thread Florian Fainelli
is decision and replace all > uses of netdev_err&co with phylink_err. > > Signed-off-by: Ioana Ciornei > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH 10/11] net: dsa: Use PHYLINK for the CPU/DSA ports

2019-05-27 Thread Florian Fainelli
gned-off-by: Ioana Ciornei > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH 04/11] net: phy: Add phy_standalone sysfs entry

2019-05-27 Thread Florian Fainelli
alled with a NULL net_device. > > Signed-off-by: Ioana Ciornei If you update Documentation/ABI/testing/sysfs-class-net-phydev, this is: Reviewed-by: Florian Fainelli I will take care of removing sysfs-bus-mdio which duplicates that information. -- Florian

Re: [PATCH 07/11] net: phylink: Add PHYLINK_DEV operation type

2019-05-27 Thread Florian Fainelli
. > > Signed-off-by: Ioana Ciornei > Signed-off-by: Vladimir Oltean Should not this patch be re-ordered to be after patch #8? Other than that: Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH 09/11] net: dsa: Move the phylink driver calls into port.c

2019-05-27 Thread Florian Fainelli
by the CPU-port-handling code in a further > patch. > > Signed-off-by: Ioana Ciornei > Suggested-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v3 3/4] net: phy: dp83867: do not call config_init twice

2019-05-28 Thread Florian Fainelli
On 5/28/19 3:00 AM, Max Uvarov wrote: > Phy state machine calls _config_init just after > reset. > > Signed-off-by: Max Uvarov Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v3 4/4] net: phy: dp83867: Set up RGMII TX delay

2019-05-28 Thread Florian Fainelli
> > Signed-off-by: Max Uvarov > Cc: Florian Fainelli Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next] r8169: remove 1000/Half from supported modes

2019-05-28 Thread Florian Fainelli
On 5/28/19 9:43 AM, Heiner Kallweit wrote: > MAC on the GBit versions supports 1000/Full only, however the PHY > partially claims to support 1000/Half. So let's explicitly remove > this mode. > > Signed-off-by: Heiner Kallweit Don't you want a Fixes: tag for that? > --- > drivers/net/ethernet/

Re: [PATCH v2 net-next 03/11] net: phy: Check against net_device being NULL

2019-05-28 Thread Florian Fainelli
t; Suggested-by: Andrew Lunn > Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 2/3] net: phy: add callback for custom interrupt handler to struct phy_driver

2019-05-28 Thread Florian Fainelli
On 5/27/19 12:36 PM, Heiner Kallweit wrote: > On 27.05.2019 21:25, Florian Fainelli wrote: >> >> >> On 5/27/2019 11:28 AM, Heiner Kallweit wrote: >>> The phylib interrupt handler handles link change events only currently. >>> However PHY drivers may want to u

Re: [PATCH net 1/2] net: dsa: tag_8021q: Change order of rx_vid setup

2019-05-28 Thread Florian Fainelli
ing the setup > part of the RX VID on the CPU port after all the other front-panel ports > have been added to the VID. > > Signed-off-by: Ioana Ciornei > Signed-off-by: Vladimir Oltean > Fixes: f9bbe4477c30 ("net: dsa: Optional VLAN-based port separation for > switches without tagging") Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net 2/2] net: dsa: tag_8021q: Create a stable binary format

2019-05-28 Thread Florian Fainelli
out of the VLAN tags on 5.2 kernels. > > Fixes: f9bbe4477c30 ("net: dsa: Optional VLAN-based port separation for > switches without tagging") > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli This looks a lot nicer actually, and kudos for documenting the format. -- Florian

Re: [RFC PATCH net-next 00/12] Add drop monitor for offloaded data paths

2019-05-28 Thread Florian Fainelli
On 5/28/2019 5:21 AM, Ido Schimmel wrote: > From: Ido Schimmel > > Users have several ways to debug the kernel and understand why a packet > was dropped. For example, using "drop monitor" and "perf". Both > utilities trace kfree_skb(), which is the function called when a packet > is freed as p

Re: [PATCH net-next] net: phy: xilinx: add Xilinx PHY driver

2019-05-31 Thread Florian Fainelli
On 5/31/19 12:15 PM, Robert Hancock wrote: > This adds a driver for the PHY device implemented in the Xilinx PCS/PMA > Core logic. Aside from being a generic gigabit PHY, it includes an > important register setting to disable the PHY isolation bit, which is > required for the PHY to operate in 1000

Re: [PATCH net-next v2] net: phy: xilinx: add Xilinx PHY driver

2019-06-03 Thread Florian Fainelli
+Heiner, Andrew, On 6/3/2019 4:12 PM, Robert Hancock wrote: > This adds a driver for the PHY device implemented in the Xilinx PCS/PMA > Core logic. This is mostly a generic gigabit PHY, except that the > features are explicitly set because the PHY wrongly indicates it has no > extended status regi

Re: Cutting the link on ndo_stop - phy_stop or phy_disconnect?

2019-06-04 Thread Florian Fainelli
On 6/4/2019 12:58 PM, Vladimir Oltean wrote: > Hi, > > I've been wondering what is the correct approach to cut the Ethernet > link when the user requests it to be administratively down (aka ip link > set dev eth0 down). > Most of the Ethernet drivers simply call phy_stop or the phylink > equiva

Re: [PATCH net-next 01/11] net: dsa: sja1105: Shim declaration of struct sja1105_dyn_cmd

2019-06-04 Thread Florian Fainelli
; > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: Cutting the link on ndo_stop - phy_stop or phy_disconnect?

2019-06-04 Thread Florian Fainelli
On 6/4/2019 1:42 PM, Vladimir Oltean wrote: > On Tue, 4 Jun 2019 at 23:07, Andrew Lunn wrote: >> >> On Tue, Jun 04, 2019 at 10:58:41PM +0300, Vladimir Oltean wrote: >>> Hi, >>> >>> I've been wondering what is the correct approach to cut the Ethernet link >>> when the user requests it to be admi

Re: Cutting the link on ndo_stop - phy_stop or phy_disconnect?

2019-06-04 Thread Florian Fainelli
On 6/4/2019 2:29 PM, Vladimir Oltean wrote: > On Wed, 5 Jun 2019 at 00:12, Andrew Lunn wrote: >> >>> But now the second question: between a phy_connect and a phy_start, >>> shouldn't the PHY be suspended too? Experimentally it looks like it >>> still isn't. >> >> This is not always clear cut. D

Re: Cutting the link on ndo_stop - phy_stop or phy_disconnect?

2019-06-04 Thread Florian Fainelli
On 6/4/2019 2:36 PM, Russell King - ARM Linux admin wrote: > Normally the PHY receives traffic, and passes it to the MAC which > just ignores the signals it receives from the PHY, so no processing > beyond the PHY receiving the traffic happens. > > Ultimately, whether you want the PHY to stay link

Re: Cutting the link on ndo_stop - phy_stop or phy_disconnect?

2019-06-04 Thread Florian Fainelli
On 6/4/2019 4:46 PM, Vladimir Oltean wrote: > On Wed, 5 Jun 2019 at 02:24, Russell King - ARM Linux admin > wrote: >> >> On Wed, Jun 05, 2019 at 02:03:19AM +0300, Vladimir Oltean wrote: >>> On Wed, 5 Jun 2019 at 01:59, Russell King - ARM Linux admin >>> wrote: On Wed, Jun 05, 2019 at

Re: Cutting the link on ndo_stop - phy_stop or phy_disconnect?

2019-06-05 Thread Florian Fainelli
On 6/5/2019 1:45 AM, Russell King - ARM Linux admin wrote: > On Tue, Jun 04, 2019 at 07:25:46PM -0700, Florian Fainelli wrote: >> On 6/4/2019 2:36 PM, Russell King - ARM Linux admin wrote: >>> Normally the PHY receives traffic, and passes it to the MAC which >>>

Re: [PATCH net-next] net: sfp: Stop SFP polling and interrupt handling during shutdown

2019-06-06 Thread Florian Fainelli
On 6/6/2019 1:57 PM, Robert Hancock wrote: > On 2019-06-06 12:09 p.m., Russell King - ARM Linux admin wrote: >>> @@ -1466,6 +1467,11 @@ static void sfp_sm_mod_remove(struct sfp *sfp) >>> static void sfp_sm_event(struct sfp *sfp, unsigned int event) >>> { >>> mutex_lock(&sfp->sm_mutex); >>>

Re: [PATCH net-next 1/4] net: dsa: sja1105: Use SPEED_{10,100,1000,UNKNOWN} macros

2019-06-08 Thread Florian Fainelli
On 6/8/2019 6:03 AM, Vladimir Oltean wrote: > This is a cosmetic patch that replaces the link speed numbers used in > the driver with the corresponding ethtool macros. > > Signed-off-by: Vladimir Oltean > Suggested-by: Andrew Lunn Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 2/4] net: dsa: sja1105: Update some comments about PHYLIB

2019-06-08 Thread Florian Fainelli
On 6/8/2019 6:03 AM, Vladimir Oltean wrote: > Since the driver is now using PHYLINK exclusively, it makes sense to > remove all references to it and replace them with PHYLINK. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 3/4] net: dsa: sja1105: Export the sja1105_inhibit_tx function

2019-06-08 Thread Florian Fainelli
On 6/8/2019 6:03 AM, Vladimir Oltean wrote: > This will be used to stop egress traffic in .phylink_mac_link_up. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 4/4] net: dsa: sja1105: Rethink the PHYLINK callbacks

2019-06-08 Thread Florian Fainelli
hibit > TX at the MAC level, while leaving RX essentially enabled. > > Also stop from trying to put the link down in .phylink_mac_config, which > is incorrect. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 1/1] net: phy: broadcom: Add genphy_suspend and genphy_resume for BCM5464

2019-06-09 Thread Florian Fainelli
that low power mode, but like you, only have a limited subset to work with. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 1/3] selftests: mlxsw: Add ethtool_lib.sh

2019-06-10 Thread Florian Fainelli
On 6/10/2019 6:56 AM, Ido Schimmel wrote: > On Mon, Jun 10, 2019 at 03:35:38PM +0200, Andrew Lunn wrote: >> On Mon, Jun 10, 2019 at 11:40:43AM +0300, Ido Schimmel wrote: >>> From: Amit Cohen >>> +declare -A speed_values >>> + >>> +speed_values=( [10baseT/Half]=0x001 >>> + [10baseT

Re: [PATCH RFC] net: phy: add state PERM_FAIL

2019-06-10 Thread Florian Fainelli
On 6/10/19 10:37 AM, Heiner Kallweit wrote: > This RFC patch is a follow-up to discussion [0]. In cases like missing > PHY firmware we may want to keep the PHY from being brought up, but > still allow MDIO access. Setting state PERM_FAIL in the probe or > config_init callback allows to achieve this

Re: [PATCH RFC] net: phy: add state PERM_FAIL

2019-06-10 Thread Florian Fainelli
On 6/10/19 11:51 AM, Andrew Lunn wrote: >> - a PHY driver that requires a firmware should either be loaded prior to >> Linux taking over the PHY, or should be loaded by the PHY driver itself > > Hi Florian > > Both the Marvell10g and Aquantia PHY need the firmware in their FLASH. > It is a slow o

Re: [PATCH RFC] net: phy: add state PERM_FAIL

2019-06-10 Thread Florian Fainelli
On 6/10/19 2:27 PM, Andrew Lunn wrote: >> Maybe the broader question is how do you, Heiner and Russell imagine a >> genuine case where the PHY does not have a firmware provided/loaded >> before Linux does take over (say, BoM cost savings dictate no flash can >> be used > > I've not seen either of

Re: [PATCH net] be2net: Synchronize be_update_queues with dev_watchdog

2019-07-18 Thread Florian Fainelli
On 7/17/19 6:42 PM, Benjamin Poirier wrote: > As pointed out by Firo Yang, a netdev tx timeout may trigger just before an > ethtool set_channels operation is started. be_tx_timeout(), which dumps > some queue structures, is not written to run concurrently with > be_update_queues(), which frees/allo

Re: [PATCH] net: dsa: sja1105: Fix missing unlock on error in sk_buff()

2019-07-18 Thread Florian Fainelli
On 7/16/19 11:29 PM, Wei Yongjun wrote: > Add the missing unlock before return from function sk_buff() > in the error handling case. > > Fixes: f3097be21bf1 ("net: dsa: sja1105: Add a state machine for RX > timestamping") > Signed-off-by: Wei Yongjun Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 3/3] net: dsa: mt7530: Add support for port 5

2019-07-27 Thread Florian Fainelli
On 7/24/2019 9:25 PM, René van Dorst wrote: > Adding support for port 5. > > Port 5 can muxed/interface to: > - internal 5th GMAC of the switch; can be used as 2nd CPU port or as > extra port with an external phy for a 6th ethernet port. > - internal PHY of port 0 or 4; Used in most applicati

Re: [PATCH net-next v15 1/6] dt-bindings: net: Add 5GBASER phy interface

2021-01-12 Thread Florian Fainelli
On 1/12/21 11:54 AM, Marek Behún wrote: > From: Pavana Sharma > > Add 5gbase-r PHY interface mode. > > Signed-off-by: Pavana Sharma > Reviewed-by: Andrew Lunn > Acked-by: Rob Herring > Signed-off-by: Marek Behún Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next v15 2/6] net: phy: Add 5GBASER interface mode

2021-01-12 Thread Florian Fainelli
On 1/12/21 11:54 AM, Marek Behún wrote: > From: Pavana Sharma > > Add 5GBASE-R phy interface mode > > Signed-off-by: Pavana Sharma > Reviewed-by: Andrew Lunn > Signed-off-by: Marek Behún Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net 5/6] net: dsa: ksz: fix wrong pvid

2021-01-13 Thread Florian Fainelli
On 1/13/21 4:45 AM, Gilles DOFFE wrote: > A logical 'or' was performed until now. > So if vlan 1 is the current pvid and vlan 20 is set as the new one, > vlan 21 is the new pvid. > This commit fixes this by setting the right mask to set the new pvid. > > Signed-off-by: Gilles DOFFE Looks about r

Re: [PATCH net 3/6] net: dsa: ksz: insert tag on ks8795 ingress packets

2021-01-13 Thread Florian Fainelli
On 1/13/21 4:45 AM, Gilles DOFFE wrote: > If 802.1q VLAN tag is removed from egress traffic, ingress > traffic should by logic be tagged. Which logic do you refer to? Software or hardware? What an user configures with the "bridge vlan add ..." commands is the egress tagging, but this also affects

Re: [PATCH net 4/6] net: dsa: ksz: do not change tagging on del

2021-01-13 Thread Florian Fainelli
On 1/13/21 4:45 AM, Gilles DOFFE wrote: > If a VLAN is removed, the tagging policy should not be changed as > still active VLANs could be impacted. > > Signed-off-by: Gilles DOFFE It sounds like you need to consolidate the patches dealing with tagging/untagged of a VLAN/port into a single patch,

Re: [RFC PATCH net-next 2/2] net: dsa: felix: offload port priority

2021-01-13 Thread Florian Fainelli
On 1/13/21 3:36 PM, Andrew Lunn wrote: > On Wed, Jan 13, 2021 at 05:41:39PM +0200, Vladimir Oltean wrote: >> From: Vladimir Oltean >> >> Even though we should really share the implementation with the ocelot >> switchdev driver, that one needs a little bit of rework first, since its >> struct ocelo

Re: [PATCH net 2/6] net: dsa: ksz: move tag/untag action

2021-01-13 Thread Florian Fainelli
On 1/13/21 4:45 AM, Gilles DOFFE wrote: > Move tag/untag action at the end of the function to avoid > tagging or untagging traffic if only vlan 0 is handled. > > Signed-off-by: Gilles DOFFE > --- > drivers/net/dsa/microchip/ksz8795.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >

Re: [PATCH net-next 0/2] dsa: add MT7530 GPIO support

2021-01-14 Thread Florian Fainelli
On 1/11/21 6:50 PM, DENG Qingfang wrote: > Hi Marek, > > On Mon, Jan 11, 2021 at 11:46 PM Marek Behún wrote: >> >> what modes does the LED support? Does it support blinking on rx/tx? >> What about link status? Just to be crystal clear here, if you configure the LEDs to be in GPIO mode, you can d

Re: [PATCH net-next v4 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2021-01-14 Thread Florian Fainelli
On 1/13/21 6:59 AM, George McCollister wrote: > Add a driver with initial support for the Arrow SpeedChips XRS7000 > series of gigabit Ethernet switch chips which are typically used in > critical networking applications. > > The switches have up to three RGMII ports and one RMII port. > Management

Re: [PATCH net-next v4 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2021-01-14 Thread Florian Fainelli
On 1/14/21 10:35 AM, George McCollister wrote: >> Nothing frees up the successfully allocated p->mib_data[] in case of >> errors so you would be leaking here. > > In case of an error probe will end up returning an error and the > memory will be free'd since it was allocated with a devm_ function,

Re: [PATCH net-next] net: marvell: prestera: fix uninitialized vid in prestera_port_vlans_add

2021-01-14 Thread Florian Fainelli
rnel test robot > Fixes: b7a9e0da2d1c ("net: switchdev: remove vid_begin -> vid_end range from > VLAN objects") > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next v16 3/6] net: dsa: mv88e6xxx: Change serdes lane parameter type from u8 type to int

2021-01-14 Thread Florian Fainelli
t; Signed-off-by: Pavana Sharma > Reviewed-by: Andrew Lunn > Reviewed-by: Vladimir Oltean > Signed-off-by: Marek Behún Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next v5 2/3] net: dsa: add Arrow SpeedChips XRS700x driver

2021-01-14 Thread Florian Fainelli
d one RMII port. > Management to the switches can be performed over i2c or mdio. > > Support for advanced features such as PTP and > HSR/PRP (IEC 62439-3 Clause 5 & 4) is not included in this patch and > may be added at a later date. > > Signed-off-by: George McCollister Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next] net: dsa: set configure_vlan_while_not_filtering to true by default

2021-01-15 Thread Florian Fainelli
entered promiscuous mode > [ 60.334905] br0: port 1(sw0p2) entered blocking state > [ 60.340142] br0: port 1(sw0p2) entered forwarding state > Warning: dsa_core: skipping configuration of VLAN. # This was the pvid > $ bridge vlan add dev sw0p2 vid 100 > Warning: dsa_core: skipping configuration of VLAN. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next 2/2] net: dsa: mv88e6xxx: use mv88e6185_g1_vtu_getnext() for the 6250

2021-01-15 Thread Florian Fainelli
ling the fid from VTU op [3:0] > and [11:8]. > > Signed-off-by: Rasmus Villemoes Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net 1/2] net: dsa: mv88e6xxx: also read STU state in mv88e6250_g1_vtu_getnext

2021-01-15 Thread Florian Fainelli
N filtering. > > When the VTU entry is initially created, those bits are all zero, and > we should make sure to keep them that way when the entry is updated. > > Fixes: 92307069a96c (net: dsa: mv88e6xxx: Avoid VTU corruption on 6097) > Signed-off-by: Rasmus Villemoes Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v4 net-next 1/5] net: phy: Add PHY_RST_AFTER_PROBE flag

2021-01-18 Thread Florian Fainelli
On 1/18/2021 8:58 AM, Badel, Laurent wrote: > Add new flag PHY_RST_AFTER_PROBE for LAN8710/20/40. This flag is intended > for phy_probe() to assert hardware reset after probing the PHY. > > Signed-off-by: Laurent Badel > --- > drivers/net/phy/smsc.c | 4 ++-- > include/linux/phy.h| 1 + >

Re: [PATCH v3 net-next 01/15] net: dsa: tag_8021q: add helpers to deduce whether a VLAN ID is RX or TX VLAN

2021-01-18 Thread Florian Fainelli
appropriate type of TCAM > rule. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v3 net-next 02/15] net: mscc: ocelot: export VCAP structures to include/soc/mscc

2021-01-18 Thread Florian Fainelli
gned-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v3 net-next 03/15] net: mscc: ocelot: store a namespaced VCAP filter ID

2021-01-18 Thread Florian Fainelli
igned long > cookie from tc, as well as a boolean that is supposed to namespace the > filters added by tc with the ones that aren't. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net v2 1/2] mdio-bitbang: Export mdiobb_{read,write}()

2021-01-18 Thread Florian Fainelli
On 1/18/2021 7:06 AM, Geert Uytterhoeven wrote: > Export mdiobb_read() and mdiobb_write(), so Ethernet controller drivers > can call them from their MDIO read/write wrappers. > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net v2 2/2] sh_eth: Make PHY access aware of Runtime PM to fix reboot crash

2021-01-18 Thread Florian Fainelli
e > device is suspended, causing undefined behavior, which may crash the > system. > > Fix this by wrapping the PHY bitbang accessors in the sh_eth driver by > wrappers that take care of Runtime PM, to resume the device when needed. > > Reported-by: Wolfram Sang > Suggested-by: Andrew Lunn > Signed-off-by: Geert Uytterhoeven Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v3 net-next 05/15] net: mscc: ocelot: stop returning IRQ_NONE in ocelot_xtr_irq_handler

2021-01-18 Thread Florian Fainelli
gned-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net] net: dsa: b53: fix an off by one in checking "vlan->vid"

2021-01-19 Thread Florian Fainelli
on > and it has "dev->num_vlans" elements. > > Fixes: a2482d2ce349 ("net: dsa: b53: Plug in VLAN support") > Signed-off-by: Dan Carpenter Acked-by: Florian Fainelli -- Florian

Re: [PATCH net-next] net: dsa: Fix off by one in dsa_loop_port_vlan_add()

2021-01-19 Thread Florian Fainelli
; cannot be > 4094 because it is checked earlier. > > Fixes: 98cd1552ea27 ("net: dsa: Mock-up driver") > Signed-off-by: Dan Carpenter Acked-by: Florian Fainelli -- Florian

Re: [PATCH v4 net-next 13/16] net: mscc: ocelot: export struct ocelot_frame_info

2021-01-19 Thread Florian Fainelli
mation from the > Extraction Frame Header. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v4 net-next 11/16] net: mscc: ocelot: use DIV_ROUND_UP helper in ocelot_port_inject_frame

2021-01-19 Thread Florian Fainelli
On 1/19/2021 3:07 PM, Vladimir Oltean wrote: > From: Vladimir Oltean > > This looks a bit nicer than the open-coded "(x + 3) % 4" idiom. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next V2] net: dsa: microchip: ksz8795: Fix KSZ8794 port map again

2021-01-19 Thread Florian Fainelli
d of > TOTOAL_PORT_NUM") > Signed-off-by: Marek Vasut > Cc: Andrew Lunn > Cc: Florian Fainelli > Cc: Michael Grzeschik > Cc: Jakub Kicinski Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH net-next] net: dsa: microchip: Adjust reset release timing to match reference reset circuit

2021-01-19 Thread Florian Fainelli
n the > original 100uS for the switch itself to come out of reset. Simply > msleep() for 100 mS which fits the constraint with a bit of extra > space. This is nitpicking but the unit symbol for seconds is 's', not 'S' which is for Siemens. With that fixed: Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH] net: systemport: free dev before on error path

2021-01-19 Thread Florian Fainelli
orrect, but not the Fixes tag, it should be: Fixes: 31bc72d97656 ("net: systemport: fetch and use clock resources") Acked-by: Florian Fainelli -- Florian

Re: [PATCH net-next v7 3/3] net: add sysfs attribute to control napi threaded mode

2021-01-20 Thread Florian Fainelli
On 1/19/2021 7:34 PM, Wei Wang wrote: > This patch adds a new sysfs attribute to the network device class. > Said attribute provides a per-device control to enable/disable the > threaded mode for all the napi instances of the given network device. > User sets it to 1 or 0 to enable or disable th

Re: [PATCH net-next V2] net: dsa: microchip: Adjust reset release timing to match reference reset circuit

2021-01-20 Thread Florian Fainelli
for 100 ms which fits the constraint with a bit of extra >>> space. >>> >>> Fixes: 5b797980908a ("net: dsa: microchip: Implement recommended >>> reset timing") >>> Reviewed-by: Florian Fainelli >>> Signed-off-by: Marek Vasut >>

Re: [PATCH v5 net-next 10/10] net: dsa: felix: perform switch setup for tag_8021q

2021-01-20 Thread Florian Fainelli
, this configuration would be impossible for the user to do. Also, > due to the same reason, it is impossible for the user to inadvertently > delete these rules using tc. These rules do not collide in any way with > tc-flower, they just consume some TCAM space, which is something we can &

Re: [PATCH v5 net-next 09/10] net: dsa: add a second tagger for Ocelot switches based on tag_8021q

2021-01-20 Thread Florian Fainelli
can be changed via the following device attribute: > > echo ocelot-8021q > /sys/class//dsa/tagging > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v5 net-next 08/10] net: dsa: felix: convert to the new .{set,del}_tag_protocol DSA API

2021-01-20 Thread Florian Fainelli
od to all ports except ocelot->num_phys_ports (the CPU port > module). All we change is that we use a read-modify-write to only add > the CPU port module to the unknown unicast replicator, as opposed to > doing a full write to the register. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v5 net-next 07/10] net: dsa: allow changing the tag protocol via the "tagging" device attribute

2021-01-20 Thread Florian Fainelli
On 1/20/2021 6:36 PM, Vladimir Oltean wrote: > From: Vladimir Oltean > > Currently DSA exposes the following sysfs: > $ cat /sys/class/net/eno2/dsa/tagging > ocelot > > which is a read-only device attribute, introduced in the kernel as > commit 98cdb4807123 ("net: dsa: Expose tagging protocol

Re: [PATCH v5 net-next 04/10] net: mscc: ocelot: reapply bridge forwarding mask on bonding join/leave

2021-01-20 Thread Florian Fainelli
was already taken in > ocelot_bridge_stp_state_set. Also, we can rename "i" into "lag", to make > it more clear what is it that we're iterating through. > > Signed-off-by: Vladimir Oltean > Reviewed-by: Alexandre Belloni Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v5 net-next 06/10] net: dsa: document the existing switch tree notifiers and add a new one

2021-01-20 Thread Florian Fainelli
oves dsa_broadcast (a top-level function) to dsa2.c, > where it really belonged in the first place, but had no companion so it > stood with dsa_port_notify. > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

Re: [PATCH v5 net-next 05/10] net: mscc: ocelot: don't use NPI tag prefix for the CPU port module

2021-01-20 Thread Florian Fainelli
tch > makes the inj_prefix and xtr_prefix variables apply only to the NPI > port (which the switchdev ocelot_vsc7514 driver does not use). > > Signed-off-by: Vladimir Oltean Reviewed-by: Florian Fainelli -- Florian

  1   2   3   4   5   6   7   8   9   10   >