Hi Tristam!
On Wed, Dec 16, 2020 at 06:33:06AM +, tristram...@microchip.com wrote:
static void ksz8_r_vlan_table(struct ksz_device *dev, u16 vid, u32 *vlan)
{
- int index;
- u16 *data;
- u16 addr;
+ u16 addr = vid / dev->phy_port_cnt;
u64 buf;
- data
Gentle Ping. Did you find time to look into my other patches of the
series. I really would like to send the next version.
Thanks!
On Mon, Dec 07, 2020 at 10:44:15PM +0100, Michael Grzeschik wrote:
On Mon, Dec 07, 2020 at 08:02:57PM +, tristram...@microchip.com wrote:
In order to get this
be set depending on the chips register layout.
Signed-off-by: Michael Grzeschik
---
v1 -> v4: - extracted this change from bigger previous patch
v4 -> v5: - added missing variables in ksz8_r_vlan_entries
- moved shifts, masks and registers to arrays indexed by enums
-
We add support for the ksz8863 and ksz8873 chips which are
using the same register patterns but other offsets as the
ksz8795.
Signed-off-by: Michael Grzeschik
---
v1 -> v4: - extracted this change from bigger previous patch
v4 -> v5: - added clear of reset bit for ksz8863 rese
It is a 3-Port 10/100 Ethernet Switch. One CPU-Port and two
Switch-Ports.
Cc: devicet...@vger.kernel.org
Reviewed-by: Andrew Lunn
Acked-by: Rob Herring
Reviewed-by: Florian Fainelli
Signed-off-by: Michael Grzeschik
---
v1 -> v3: - nothing changes
- already Acked-by Rob Herring
z8.h b/drivers/net/dsa/microchip/ksz8.h
new file mode 100644
index 0..d3e89c27e22aa
--- /dev/null
+++ b/drivers/net/dsa/microchip/ksz8.h
@@ -0,0 +1,69 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Microchip KSZ8XXX series register access
+ *
+ * Copyright (C) 2019 Pengutronix, Michael Grz
The driver can be used on other chips of this type. To reflect
this we rename the drivers prefix from ksz8795 to ksz8.
Signed-off-by: Michael Grzeschik
---
v1 -> v4: - extracted this change from bigger previous patch
v4 -> v5: - removed extra unavailable variables in ksz8_r_vlan_e
This patch moves the cpu interface selection code to a individual
function specific for ksz8795. It will make it simpler to customize the
code path for different switches supported by this driver.
Signed-off-by: Michael Grzeschik
---
v1 -> v5: - extracted this from previous bigger pa
/20200508154343.6074-1-m.grzesc...@pengutronix.de/
v4:
https://lore.kernel.org/netdev/20200803054442.20089-1-m.grzesc...@pengutronix.de/
Michael Grzeschik (6):
net: dsa: microchip: ksz8795: change drivers prefix to be generic
net: dsa: microchip: ksz8795: move cpu_select_interface to extra function
Add KSZ88X3 driver support. We add support for the KXZ88X3 three port
switches using the SPI Interface.
Reviewed-by: Florian Fainelli
Signed-off-by: Michael Grzeschik
---
v1 -> v2: - this glue was not implemented
v2 -> v3: - this glue was part of previous bigger patch
v3 -> v4: - this
The port_cnt assignment will be done again in the init function.
This patch removes the previous assignment in the detect function.
Reviewed-by: Andrew Lunn
Reviewed-by: Florian Fainelli
Signed-off-by: Michael Grzeschik
---
v1 -> v2: - unchanged
---
drivers/net/dsa/microchip/ksz8795.c
Signed-off-by: Michael Grzeschik
---
v1: - based on "[PATCH v4 05/11] net: dsa: microchip: ksz8795: dynamica
allocate memory for flush_dyn_mac_table"
- lore:
https://lore.kernel.org/netdev/20200803054442.20089-6-m.grzesc...@pengutronix.de/
v1 -> v2: - renamed patch t
Signed-off-by: Michael Grzeschik
---
v1 -> v2: - improved comment in port_cnt assignment, rather than removing it
---
drivers/net/dsa/microchip/ksz8795.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/net/dsa/microchip/ksz8795.c
b/drivers/net/dsa/microc
This series changes the ksz8795 driver to use more dynamic variables
instead of static defines. The purpose is to prepare the driver to
be used with other microchip switches with a similar layout.
Michael Grzeschik (11):
net: dsa: microchip: ksz8795: remove unused last_port variable
net: dsa
This patch moves all variable assignments to the init function. It
leaves the detect function for its single purpose to detect which chip
version is found.
Reviewed-by: Andrew Lunn
Reviewed-by: Florian Fainelli
Signed-off-by: Michael Grzeschik
---
v1 -> v2: - unchanged
---
drivers/net/
The variable last_port is not used anywhere, this patch removes it.
Reviewed-by: Andrew Lunn
Reviewed-by: Florian Fainelli
Signed-off-by: Michael Grzeschik
---
v1 -> v2: - unchanged
---
drivers/net/dsa/microchip/ksz8795.c| 1 -
drivers/net/dsa/microchip/ksz_common.h | 1 -
2 fi
. Keeping it in a separate variable instead of
using ARRAY_SIZE everywhere instead makes the driver more flexible for
future use of devices with different amount of counters.
Reviewed-by: Florian Fainelli
Signed-off-by: Michael Grzeschik
---
v1 -> v2: - fixed missing dev variable in ksz8795_get_stri
The variable mib_port_cnt has the same meaning as port_cnt.
This driver removes the extra variable and is using port_cnt
everywhere instead.
Reviewed-by: Andrew Lunn
Reviewed-by: Florian Fainelli
Signed-off-by: Michael Grzeschik
---
v1 -> v2: - unchanged
---
drivers/net/dsa/microchip/ksz8
The extra define SWITCH_COUNTER_NUM is a copy of the KSZ8795_COUNTER_NUM
define. This patch initializes reg_mib_cnt with KSZ8795_COUNTER_NUM,
makes use of reg_mib_cnt everywhere instead and removes the extra
define.
Reviewed-by: Andrew Lunn
Reviewed-by: Florian Fainelli
Signed-off-by: Michael
different switches.
Reviewed-by: Florian Fainelli
Signed-off-by: Michael Grzeschik
---
v1: - based on "[PATCH v4 04/11] net: dsa: microchip: ksz8795: use
port_cnt where possible"
- lore:
https://lore.kernel.org/netdev/20200803054442.20089-5-m.grzesc...@pengutronix.de
The variable num_ports is already assigned in the init function. The
drivers individual init function already handles the different purpose
of port_cnt vs port_cnt + 1. This patch removes the extra assignment of
the variable.
Reviewed-by: Florian Fainelli
Signed-off-by: Michael Grzeschik
The value of the define VLAN_TABLE_ENTRIES can be derived from
num_vlans. This patch is using the variable num_vlans instead and
removes the extra define.
Reviewed-by: Andrew Lunn
Reviewed-by: Florian Fainelli
Signed-off-by: Michael Grzeschik
---
v1 -> v2: - unchanged
---
drivers/net/
On Thu, Nov 19, 2020 at 01:29:15AM +0100, Andrew Lunn wrote:
case BR_STATE_DISABLED:
data |= PORT_LEARN_DISABLE;
- if (port < SWITCH_PORT_NUM)
+ if (port < dev->phy_port_cnt)
member = 0;
break;
So this,
Hi Andrew!
On Thu, Nov 19, 2020 at 01:20:47AM +0100, Andrew Lunn wrote:
On Wed, Nov 18, 2020 at 11:03:51PM +0100, Michael Grzeschik wrote:
The variable mib_cnt is assigned with TOTAL_SWITCH_COUNTER_NUM. This
value can also be derived from the array size of mib_names. This patch
uses this
Since the driver can be used on more switches it needs
to use flexible port count where ever possible.
Signed-off-by: Michael Grzeschik
---
v1: - based on "[PATCH v4 04/11] net: dsa: microchip: ksz8795: use port_cnt
where possible"
- lore:
https://lore.kernel.
To get the driver working with other chips using different port counts
the dyn_mac_table should be flushed depending on the amount of physical
ports.
Signed-off-by: Michael Grzeschik
---
v1: - based on "[PATCH v4 05/11] net: dsa: microchip: ksz8795: dynamica
allocate memor
.
Signed-off-by: Michael Grzeschik
---
drivers/net/dsa/microchip/ksz8795.c | 8
drivers/net/dsa/microchip/ksz8795_reg.h | 3 ---
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/drivers/net/dsa/microchip/ksz8795.c
b/drivers/net/dsa/microchip/ksz8795.c
index 04a571bde7e6a4f
The port_cnt assignment will be done again in the init function.
This patch removes the previous assignment in the detect function.
Signed-off-by: Michael Grzeschik
---
drivers/net/dsa/microchip/ksz8795.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/dsa/microchip/ksz8795.c
The ksz8795 driver is using port_cnt differently to the other microchip
DSA drivers. It sets it to the external physical port count, than the
whole port count (including the cpu port). This patch is aligning the
variables purpose with the other microchip drivers.
Signed-off-by: Michael Grzeschik
The extra define SWITCH_COUNTER_NUM is a copy of the KSZ8795_COUNTER_NUM
define. This patch initializes reg_mib_cnt with KSZ8795_COUNTER_NUM,
makes use of reg_mib_cnt everywhere instead and removes the extra
define.
Signed-off-by: Michael Grzeschik
---
drivers/net/dsa/microchip/ksz8795.c
The variable last_port is not used anywhere, this patch removes it.
Signed-off-by: Michael Grzeschik
---
drivers/net/dsa/microchip/ksz8795.c| 1 -
drivers/net/dsa/microchip/ksz_common.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/drivers/net/dsa/microchip/ksz8795.c
b/drivers/net
The value of the define VLAN_TABLE_ENTRIES can be derived from
num_vlans. This patch is using the variable num_vlans instead and
removes the extra define.
Signed-off-by: Michael Grzeschik
---
drivers/net/dsa/microchip/ksz8795.c | 2 +-
drivers/net/dsa/microchip/ksz8795_reg.h | 1 -
2 files
The variable mib_port_cnt has the same meaning as port_cnt.
This driver removes the extra variable and is using port_cnt
everywhere instead.
Signed-off-by: Michael Grzeschik
---
drivers/net/dsa/microchip/ksz8795.c| 11 +--
drivers/net/dsa/microchip/ksz9477.c| 12
This series changes the ksz8795 driver to use more dynamic variables
instead of static defines. The purpose is to prepare the driver to be
used with other microchip switches with a similar layout.
Michael Grzeschik (11):
net: dsa: microchip: ksz8795: remove unused last_port variable
net: dsa
This patch moves all variable assignments to the init function. It
leaves the detect function for its single purpose to detect which chip
version is found.
Signed-off-by: Michael Grzeschik
---
drivers/net/dsa/microchip/ksz8795.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions
The variable num_ports is already assigned in the init function.
This patch removes the extra assignment of the variable.
Signed-off-by: Michael Grzeschik
---
drivers/net/dsa/microchip/ksz8795.c | 2 --
drivers/net/dsa/microchip/ksz9477.c | 2 --
2 files changed, 4 deletions(-)
diff --git a
Acked-by: Rob Herring
Signed-off-by: Michael Grzeschik
---
v1 -> v2: - patch not present
v2 -> v3: - first patch
v3 -> v4: - no changes
Documentation/devicetree/bindings/net/mdio-gpio.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/net/mdio-gp
Add DSA tag code for Microchip KSZ8863 switch.
Reviewed-by: Florian Fainelli
Signed-off-by: Michael Grzeschik
---
v1 -> v2: - fixed __be16 handling
v2 -> v3: - no changes
v3 -> v4: - changed handling to only one padding byte
include/net/dsa.h | 2 ++
net/dsa/tag_k
It is a 3-Port 10/100 Ethernet Switch. One CPU-Port and two
Switch-Ports.
Cc: devicet...@vger.kernel.org
Reviewed-by: Andrew Lunn
Acked-by: Rob Herring
Signed-off-by: Michael Grzeschik
---
v1 -> v3: - nothing changes
- already Acked-by Rob Herring
v1 -> v4: - nothing c
: Michael Grzeschik
---
v1 -> v2: - patch not present
v2 -> v3: - first patch
v3 -> v4: - added override_c22_op
drivers/net/phy/mdio-bitbang.c | 8 ++--
drivers/net/phy/mdio-gpio.c| 9 +
include/linux/mdio-bitbang.h | 3 +++
3 files changed, 18 insertions(+), 2
ter access through SMI
+ *
+ * Copyright (C) 2019 Pengutronix, Michael Grzeschik
+ */
+
+#ifndef __KSZ8XXX_H
+#define __KSZ8XXX_H
+
+struct ksz_regs {
+ int ind_ctrl_0;
+ int ind_data_8;
+ int ind_data_check;
+ int ind_data_hi;
+ int ind_data_lo;
+ int ind_mib_ch
The driver can be used on other chips of this type. To reflect
this we rename the drivers prefix from ksz8795 to ksz8.
Signed-off-by: Michael Grzeschik
---
v1 -> v4: - extracted this change from bigger previous patch
drivers/net/dsa/microchip/ksz8795.c |
Add KSZ88X3 driver support. We add support for the KXZ88X3 three port
switches using the Microchip SMI Interface. They are supported using the
MDIO-Bitbang Interface.
Signed-off-by: Michael Grzeschik
---
v1 -> v2: - this code was part of previuos patch
v2 -> v3: - this code was p
Since the driver can be used on more switches it needs
to use flexible port count whereever possible.
Signed-off-by: Michael Grzeschik
---
v1 -> v4: - extracted this change from bigger previous patch
drivers/net/dsa/microchip/ksz8795.c | 16
1 file changed, 8 insertions(+)
Add KSZ88X3 driver support. We add support for the KXZ88X3 three port
switches using the SPI Interface.
Signed-off-by: Michael Grzeschik
---
v1 -> v2: - this glue was not implemented
v2 -> v3: - this glue was part of previous bigger patch
v3 -> v4: - this glue was moved to this separ
We add support for the ksz8863 and ksz8873 chips which are
using the same register patterns but other offsets as the
ksz8795.
Signed-off-by: Michael Grzeschik
---
v1 -> v4: - extracted this change from bigger previous patch
drivers/net/dsa/microchip/ksz8795.c |
):
net: phy: Add support for microchip SMI0 MDIO bus
Michael Grzeschik (10):
dt-bindings: net: mdio-gpio: add compatible for microchip,mdio-smi0
net: tag: ksz: Add KSZ8863 tag code
net: dsa: microchip: ksz8795: use port_cnt where possible
net: dsa: microchip: ksz8795: dynamic allocate memory
To get the driver working with other chips using different port counts
the dyn_mac_table should be flushed depending on the amount of physical
ports.
Signed-off-by: Michael Grzeschik
---
v1 -> v4: - extracted this change from bigger previous patch
drivers/net/dsa/microchip/ksz8795.c
On Sat, May 09, 2020 at 10:28:05AM -0700, Florian Fainelli wrote:
On 5/8/2020 8:43 AM, Michael Grzeschik wrote:
From: Andrew Lunn
SMI0 is a mangled version of MDIO. The main low level difference is
the MDIO C22 OP code is always 0, not 0x2 or 0x1 for Read/Write. The
read/write information
On Sat, May 09, 2020 at 06:56:56PM +0200, Andrew Lunn wrote:
On Fri, May 08, 2020 at 05:43:42PM +0200, Michael Grzeschik wrote:
Add KSZ88X3 driver support. We add support for the KXZ88X3 three port
switches using the Microchip SMI Interface. They are currently only
supported using the MDIO
On Sat, May 09, 2020 at 06:41:05PM +0200, Andrew Lunn wrote:
+/* For ingress (Host -> KSZ8863), 1 byte is added before FCS.
+ * ---
+ * DA(6bytes)|SA(6bytes)||Data(nbytes)|tag0(1byte)|tag1(1byte)|FCS(4bytes)
+ * -
It is a 3-Port 10/100 Ethernet Switch. One CPU-Port and two
Switch-Ports.
Cc: devicet...@vger.kernel.org
Acked-by: Rob Herring
Signed-off-by: Michael Grzeschik
---
v1 -> v3: - nothing changes
- already Acked-by Rob Herring
Documentation/devicetree/bindings/net/dsa/ksz.txt | 2 ++
: Michael Grzeschik
---
drivers/net/phy/mdio-bitbang.c | 7 ++-
drivers/net/phy/mdio-gpio.c| 13 +
include/linux/mdio-bitbang.h | 2 ++
3 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/drivers/net/phy/mdio-bitbang.c b/drivers/net/phy/mdio-bitbang.c
index
Microchip SMI0 Mode is a special mode, where the MDIO Read/Write
commands are part of the PHY Address and the OP Code is always 0. We add
the compatible for this special mode of the bitbanged mdio driver.
Cc: devicet...@vger.kernel.org
Signed-off-by: Michael Grzeschik
---
Documentation
):
net: phy: Add support for microchip SMI0 MDIO bus
Michael Grzeschik (4):
dt-bindings: net: mdio-gpio: add compatible for microchip,mdio-smi0
net: tag: ksz: Add KSZ8863 tag code
ksz: Add Microchip KSZ8863 SMI/SPI based driver support
dt-bindings: net: dsa: document additional Microchip
.
Signed-off-by: Michael Grzeschik
---
RFC -> v1: - added Microchip SMI to description
- added select MDIO_BITBANG
- added return error code handling in mdiobus_read/write
- fixed the stp state handling
- moved tag handling code to seperate patch
Add DSA tag code for Microchip KSZ8863 switch.
Reviewed-by: Florian Fainelli
Signed-off-by: Michael Grzeschik
---
v1 -> v2: - fixed __be16 handling
v2 -> v3: - nothing
include/net/dsa.h | 2 ++
net/dsa/tag_ksz.c | 57 +++
2 files chang
al
> size.
>
> The problem was noticed by the stack protector which makes the kernel
> oops.
>
> Cc: sta...@vger.kernel.org # v2.4.0+
> Signed-off-by: Uwe Kleine-König
Acked-by: Michael Grzeschik
> ---
> Hello,
>
> the problem exists in v2.4.0 already, I didn't
On Fri, May 17, 2019 at 07:03:19PM +, Kenton, Stephen M. wrote:
> I've got some old optical (as in eyeglasses) equipment that only talks
> over ARCNET that I want to get up and running. The PEX PCIe-to-PCI
> bridge is on the card with the SMC COM20022 and lspci sees them
>
> 02:00.0 PCI brid
On Thu, May 09, 2019 at 04:48:44PM +0200, Andrew Lunn wrote:
> On Wed, May 08, 2019 at 11:13:29PM +0200, Michael Grzeschik wrote:
> > Cc: tristram...@microchip.com
> > Signed-off-by: Michael Grzeschik
> > ---
> > drivers/net/dsa/microchip/Kconfig | 16 +
>
On Thu, May 09, 2019 at 04:29:25PM +0200, Andrew Lunn wrote:
> On Wed, May 08, 2019 at 11:13:28PM +0200, Michael Grzeschik wrote:
> > Some microchip phys support the Serial Management Interface Protocol
> > (SMI) for the configuration of the extended register set. We add
> >
Cc: tristram...@microchip.com
Signed-off-by: Michael Grzeschik
---
drivers/net/dsa/microchip/Kconfig | 16 +
drivers/net/dsa/microchip/Makefile |2 +
drivers/net/dsa/microchip/ksz8863.c | 1026 +++
drivers/net/dsa/microchip/ksz8863_reg.h | 605
Document additional Microchip KSZ8863 family switches.
Show how KSZ8863 switch should be configured as the host port is port 3.
Cc: devicet...@vger.kernel.org
Signed-off-by: Michael Grzeschik
---
.../devicetree/bindings/net/dsa/ksz.txt | 44 +++
1 file changed, 44
: Sam Ravnborg
Signed-off-by: Michael Grzeschik
---
drivers/net/phy/mdio-bitbang.c | 10 ++
include/linux/phy.h| 12
2 files changed, 22 insertions(+)
diff --git a/drivers/net/phy/mdio-bitbang.c b/drivers/net/phy/mdio-bitbang.c
index 5136275c8e739..a978f8a9a172b
the stack was bootet and configured appropriate via:
ip link add name br0 type bridge
ip link set dev eth1 master br0
ip link set dev eth2 master br0
@Tristam: Could you have a look if something obious was misconfigured?
Michael Grzeschik (3):
mdio-bitbang: add SMI0 mode support
ksz: Add
Hi Nicolas
We are currently debugging an issue with the KSZ8873 with the
LinkMD Feature to measure Cable-Failures. We implemented all
steps described in corresponding section of the Datasheet:
3.1.12 LINKMD ® CABLE DIAGNOSTICS
It is also already clear that this feature is only available to the
On Mon, Aug 13, 2018 at 12:53:35PM -0700, Florian Fainelli wrote:
> On 08/13/2018 12:35 PM, Michael Grzeschik wrote:
> > Hi David,
> >
> > I use a special 100Base-T1 phy (NXP TJA1100 [1]) that has some features
> > like:
> >
> > - enabling/dis
Hi David,
I use a special 100Base-T1 phy (NXP TJA1100 [1]) that has some features
like:
- enabling/disabling test modes
- fault detection
- switching managed/autonomous mode
- signal quality indication
- ...
I already implemented the support of the features with the
ethtool --get/set-phy-tunable
This series adds more error handling to the macb driver.
Michael Grzeschik (2):
net: macb: add of_phy_deregister_fixed_link to error paths
net: macb: add of_node_put to error paths
drivers/net/ethernet/cadence/macb_main.c | 9 +
1 file changed, 9 insertions(+)
--
2.11.0
We add the call of_phy_deregister_fixed_link to all associated
error paths for memory clean up.
Signed-off-by: Michael Grzeschik
---
v2: removed extra parenthesis
drivers/net/ethernet/cadence/macb_main.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/net/ethernet/cadence
We add the call of_node_put(bp->phy_node) to all associated error
paths for memory clean up.
Signed-off-by: Michael Grzeschik
---
v2: removed extra of_node_put from macb_remove
drivers/net/ethernet/cadence/macb_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/ether
On Wed, Nov 08, 2017 at 01:22:57PM +0900, David Miller wrote:
> From: Michael Grzeschik
> Date: Mon, 6 Nov 2017 12:10:04 +0100
>
> > We add the call of_phy_deregister_fixed_link to all associated
> > error paths for memory clean up.
> >
> >
We add the call of_node_put(bp->phy_node) to all associated error
paths for memory clean up.
Signed-off-by: Michael Grzeschik
---
v1 -> v2: removed extra of_node_put from macb_remove
drivers/net/ethernet/cadence/macb_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drive
On Tue, Nov 07, 2017 at 10:27:20AM +0100, Nicolas Ferre wrote:
> On 06/11/2017 at 12:10, Michael Grzeschik wrote:
> > We add the call of_node_put(bp->phy_node) to all associated error
> > paths for memory clean up.
> >
> > Signed-off-by: Michael Grzeschik
>
We add the call of_node_put(bp->phy_node) to all associated error
paths for memory clean up.
Signed-off-by: Michael Grzeschik
---
drivers/net/ethernet/cadence/macb_main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/ethernet/cadence/macb_main.c
b/drivers/net/ether
We add the call of_phy_deregister_fixed_link to all associated
error paths for memory clean up.
Signed-off-by: Michael Grzeschik
---
drivers/net/ethernet/cadence/macb_main.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/net/ethernet/cadence/macb_main.c
b/drivers/net
We need to track the status of our queued packages. This way the driving
process knows if failed packages need to be retransmitted. For this
purpose we queue the transferred/failed packages back into the err_skb
message queue added with some status information.
Signed-off-by: Michael Grzeschik
We add the sysfs interface the read back the backplane
status of the interface.
Signed-off-by: Michael Grzeschik
---
drivers/net/arcnet/com20020-pci.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/drivers/net/arcnet/com20020-pci.c
b/drivers/net/arcnet/com20020
extra sysfs attribute. In the last patch we add another
card type PCIFB2.
Michael Grzeschik (4):
arcnet: add err_skb package for package status feedback
arcnet: com20020-pci: add attribute to readback backplane status
arcnet: com20020-pci: handle backplane mode depending on card type
arcnet
We read the backplane mode of each subcard from bits 2 and 3 of the misc
register.
Signed-off-by: Michael Grzeschik
---
drivers/net/arcnet/com20020-pci.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/arcnet/com20020-pci.c
b/drivers/net/arcnet/com20020-pci.c
index
We add support for the PCIFB2 card from EAE.
Beside other cards, this card has the backplane mode enabled by default.
Signed-off-by: Michael Grzeschik
---
drivers/net/arcnet/com20020-pci.c | 34 ++
1 file changed, 34 insertions(+)
diff --git a/drivers/net
(sock_sendmsg) from []
(SyS_sendto+0xb8/0xe0)
[ 42.213978] [] (SyS_sendto) from [] (SyS_send+0x18/0x20)
[ 42.221388] [] (SyS_send) from []
(ret_fast_syscall+0x0/0x1c)
Signed-off-by: Michael Grzeschik
---
v1 -> v2: removed unneeded zero assignment of flags
---
drivers/net/arcnet/arc
missing assignments that improves the code footprint.
Colin Ian King (1):
Trivial fix to spelling mistake in arc_printk message
Michael Grzeschik (4):
arcnet: change irq handler to lock irqsave
arcnet: com20020: remove needless base_addr assignment
arcnet: com20020-pci: fix dev_id
The assignment is superfluous.
Signed-off-by: Michael Grzeschik
---
drivers/net/arcnet/com20020.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/arcnet/com20020.c b/drivers/net/arcnet/com20020.c
index 13d9ad4b3f5c9..78043a9c5981e 100644
--- a/drivers/net/arcnet/com20020.c
The dev_id was miscalculated. Only the two bits 4-5 are relevant for the
MA1 card. PCIARC1 and PCIFB2 use the four bits 4-7 for id selection.
Signed-off-by: Michael Grzeschik
---
drivers/net/arcnet/com20020-pci.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers
We add the pdev data to the pci devices netdev structure. This way
the interface get consistent device names in the userspace (udev).
Signed-off-by: Michael Grzeschik
---
drivers/net/arcnet/com20020-pci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/arcnet/com20020-pci.c
b
From: Colin Ian King
Signed-off-by: Colin Ian King
Signed-off-by: Michael Grzeschik
---
drivers/net/arcnet/capmode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/arcnet/capmode.c b/drivers/net/arcnet/capmode.c
index a80f4eb9262d5..b780be6f41ff9 100644
--- a
Hi,
On Fri, Jun 23, 2017 at 01:54:03PM -0400, David Miller wrote:
> From: Michael Grzeschik
> Date: Thu, 22 Jun 2017 17:31:02 +0200
>
> > are available in the git repository at:
> >
> > pub...@git.pengutronix.de:/mgr/linux.git tags/arcnet-for-mainline
>
>
On Sun, Jun 25, 2017 at 10:15:06PM +0100, Colin King wrote:
> From: Colin Ian King
>
> Trivial fix to spelling mistake in arc_printk message
>
> Signed-off-by: Colin Ian King
> ---
> drivers/net/arcnet/capmode.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/
In case the MACB is directly connected to a
non-mdio PHY/device, it should be possible to provide
a fixed link configuration in the DT.
Signed-off-by: Michael Grzeschik
---
v1 -> v2: - moved of_phy_connect case and phy_connect_direct into if else
cases
- mo
We add support for the PCIFB2 card from EAE.
Beside other cards, this card has the backplane mode enabled by default.
Signed-off-by: Michael Grzeschik
---
drivers/net/arcnet/com20020-pci.c | 34 ++
1 file changed, 34 insertions(+)
diff --git a/drivers/net
We read the backplane mode of each subcard from bits 2 and 3 of the misc
register.
Signed-off-by: Michael Grzeschik
---
drivers/net/arcnet/com20020-pci.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/arcnet/com20020-pci.c
b/drivers/net/arcnet/com20020-pci.c
index
We add the pdev data to the pci devices netdev structure. This way
the interface get consistent device names in the userspace (udev).
Signed-off-by: Michael Grzeschik
---
drivers/net/arcnet/com20020-pci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/arcnet/com20020-pci.c
b
The assignment is superfluous.
Signed-off-by: Michael Grzeschik
---
drivers/net/arcnet/com20020.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/arcnet/com20020.c b/drivers/net/arcnet/com20020.c
index 13d9ad4b3f5c9..78043a9c5981e 100644
--- a/drivers/net/arcnet/com20020.c
The dev_id was miscalculated. Only the two bits 4-5 are relevant for the
MA1 card. PCIARC1 and PCIFB2 use the four bits 4-7 for id selection.
Signed-off-by: Michael Grzeschik
---
drivers/net/arcnet/com20020-pci.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers
(sock_sendmsg) from []
(SyS_sendto+0xb8/0xe0)
[ 42.213978] [] (SyS_sendto) from [] (SyS_send+0x18/0x20)
[ 42.221388] [] (SyS_send) from []
(ret_fast_syscall+0x0/0x1c)
Signed-off-by: Michael Grzeschik
---
drivers/net/arcnet/arcnet.c | 7 ---
1 file changed, 4 insertions(+), 3 deletion
Michael Grzeschik (8):
arcnet: change irq handler to lock irqsave
arcnet: add err_skb package for package status feedback
arcnet: com20020: remove needless base_addr assignment
arcnet: com20020-pci: add missing pdev setup in netdev structure
arcnet: com20020-pci: fix
We need to track the status of our queued packages. This way the driving
process knows if failed packages need to be retransmitted. For this
purpose we queue the transferred/failed packages back into the err_skb
message queue added with some status information.
Signed-off-by: Michael Grzeschik
We add the sysfs interface the read back the backplane
status of the interface.
Signed-off-by: Michael Grzeschik
---
drivers/net/arcnet/com20020-pci.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/drivers/net/arcnet/com20020-pci.c
b/drivers/net/arcnet/com20020
Hi Nicolas,
On Mon, Jun 19, 2017 at 12:54:10PM +0200, Nicolas Ferre wrote:
> Le 16/06/2017 à 10:55, Michael Grzeschik a écrit :
> > In case the MACB is directly connected to a
> > non-mdio PHY/device, it should be possible to provide
> > a fixed link configuration in the DT
1 - 100 of 192 matches
Mail list logo