[PATCH v2] fs: ubifs: set s_uuid in super block to support ima/evm uuid options

2021-02-15 Thread Juergen Borleis
From: Steffen Trumtrar This is required to provide uuid based integrity functionality for: ima_policy (fsuuid option) and the 'evmctl' command ('--uuid' option). Co-developed-by: Oleksij Rempel Co-developed-by: Juergen Borleis Signed-off-by: Steffen Trumtrar --- fs/ubifs/super.c | 2 ++ 1

fs: ubifs: set s_uuid in super block to support ima/evm uuid options

2021-02-15 Thread Juergen Borleis
This is V2 to support ima/evm uuid in ubifs. - the previously used memcopy is now replaced by a helper function as suggested by Andy jb

[PATCH] fs: ubifs: set s_uuid in super block to support ima/evm uuid options

2021-02-02 Thread Juergen Borleis
From: Steffen Trumtrar This is required to provide uuid based integrity functionality for: ima_policy (fsuuid option) and the 'evmctl' command ('--uuid' option). Signed-off-by: Steffen Trumtrar Signed-off-by: Oleksij Rempel Acked-by: Juergen Borleis --- fs/ubifs/super.c | 1 + 1 file

mtd: rawnand: gpmi: regression since e5e5631cc88987a6f3cd8304660bd9190da95916

2020-11-17 Thread Juergen Borleis
00 00 00 00 00 00 00 00 00 00 || 0830 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 || Juergen -- Pengutronix e.K. | Juergen Borleis | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hil

[PATCH] regmap: debugfs: really fix memory leak in regmap_debugfs_init()

2020-06-30 Thread Juergen Borleis
be NULL on the first call. So, it should be safe to kfree() this member unconditionally prior allocating a new string for this member. Fixes: 2899872b627e ("regmap: debugfs: Fix memory leak in regmap_debugfs_init") Signed-off-by: Juergen Borleis --- drivers/base/regmap/regmap-debugfs.c | 1 + 1 f

[PATCH 9/9] ARM: dts: TQma53: describe the full power supply tree

2017-09-07 Thread Juergen Borleis
-> internal use | | | | | | | \--> 5.0 V -o--> internal use | /--> 3.8 V --> PMIC | | | | | | | \>|-o--> 3.2 V --> internal use | | | Signed-off-b

[PATCH 9/9] ARM: dts: TQma53: describe the full power supply tree

2017-09-07 Thread Juergen Borleis
-> internal use | | | | | | | \--> 5.0 V -o--> internal use | /--> 3.8 V --> PMIC | | | | | | | \>|-o--> 3.2 V --> internal use | | | Signed-off-by:

[PATCH 5/9] ARM: dts: TQma53: define eMMC's power supply

2017-09-07 Thread Juergen Borleis
The eMMC is part of the 'TQma53' CPU card and powered by its on-board power supply. Signed-off-by: Juergen Borleis <j...@pengutronix.de> --- arch/arm/boot/dts/imx53-tqma53.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/imx53-tqma53.dtsi b/arch/arm/boot/dts

[PATCH 5/9] ARM: dts: TQma53: define eMMC's power supply

2017-09-07 Thread Juergen Borleis
The eMMC is part of the 'TQma53' CPU card and powered by its on-board power supply. Signed-off-by: Juergen Borleis --- arch/arm/boot/dts/imx53-tqma53.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/imx53-tqma53.dtsi b/arch/arm/boot/dts/imx53-tqma53.dtsi index

[PATCH 7/9] ARM: dts: TQma53: move PMIC's IRQ pin control where it belongs to

2017-09-07 Thread Juergen Borleis
Signal needs SoC's internal pull down. Signed-off-by: Juergen Borleis <j...@pengutronix.de> --- arch/arm/boot/dts/imx53-tqma53.dtsi | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx53-tqma53.dtsi b/arch/arm/boot/dts/imx53-tqma53.dtsi

[PATCH 7/9] ARM: dts: TQma53: move PMIC's IRQ pin control where it belongs to

2017-09-07 Thread Juergen Borleis
Signal needs SoC's internal pull down. Signed-off-by: Juergen Borleis --- arch/arm/boot/dts/imx53-tqma53.dtsi | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx53-tqma53.dtsi b/arch/arm/boot/dts/imx53-tqma53.dtsi index 02eb3f4b605de..1c5cd103ed841

Cleanup devicetree for the i.MX53 based TQma53 + mba53 development kit

2017-09-07 Thread Juergen Borleis
This series is a cleanup of the devicetree for the TQ's 'TQma53' CPU card in conjunction with its 'mba53' development baseboard. The cleanup should also simplify the use of the 'TQma53' CPU card for a customized baseboard instead of the development baseboard. Comments are welcome. Juergen

Cleanup devicetree for the i.MX53 based TQma53 + mba53 development kit

2017-09-07 Thread Juergen Borleis
This series is a cleanup of the devicetree for the TQ's 'TQma53' CPU card in conjunction with its 'mba53' development baseboard. The cleanup should also simplify the use of the 'TQma53' CPU card for a customized baseboard instead of the development baseboard. Comments are welcome. Juergen

[PATCH 6/9] ARM: dts: TQma53: fix and move regulator to its correct location

2017-09-07 Thread Juergen Borleis
The referenced 3.3 V regulator is a 3.2 V regulator and part of the 'TQma53' CPU card instead of the development 'mba53' baseboard. So fix the voltage and move it to where it belongs to. Signed-off-by: Juergen Borleis <j...@pengutronix.de> --- arch/arm/boot/dts/imx53-mba53.dts

[PATCH 6/9] ARM: dts: TQma53: fix and move regulator to its correct location

2017-09-07 Thread Juergen Borleis
The referenced 3.3 V regulator is a 3.2 V regulator and part of the 'TQma53' CPU card instead of the development 'mba53' baseboard. So fix the voltage and move it to where it belongs to. Signed-off-by: Juergen Borleis --- arch/arm/boot/dts/imx53-mba53.dts | 10 +- arch/arm/boot/dts

[PATCH 2/9] ARM: dts: TQma53: define GPIO's active level by macro instead of anonymous number

2017-09-07 Thread Juergen Borleis
Signed-off-by: Juergen Borleis <j...@pengutronix.de> --- arch/arm/boot/dts/imx53-mba53.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx53-mba53.dts b/arch/arm/boot/dts/imx53-mba53.dts index 11c61844d5d85..5a21562a2dc1b 100644 --- a/arch/arm/bo

[PATCH 2/9] ARM: dts: TQma53: define GPIO's active level by macro instead of anonymous number

2017-09-07 Thread Juergen Borleis
Signed-off-by: Juergen Borleis --- arch/arm/boot/dts/imx53-mba53.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx53-mba53.dts b/arch/arm/boot/dts/imx53-mba53.dts index 11c61844d5d85..5a21562a2dc1b 100644 --- a/arch/arm/boot/dts/imx53-mba53.dts +++ b

[PATCH 3/9] ARM: dts: TQma53: define IRQ's active level by macro instead of anonymous number

2017-09-07 Thread Juergen Borleis
Signed-off-by: Juergen Borleis <j...@pengutronix.de> --- arch/arm/boot/dts/imx53-tqma53.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx53-tqma53.dtsi b/arch/arm/boot/dts/imx53-tqma53.dtsi index 4aff91e31f288..eedeced3c8810 100644 --- a/arch/ar

[PATCH 3/9] ARM: dts: TQma53: define IRQ's active level by macro instead of anonymous number

2017-09-07 Thread Juergen Borleis
Signed-off-by: Juergen Borleis --- arch/arm/boot/dts/imx53-tqma53.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx53-tqma53.dtsi b/arch/arm/boot/dts/imx53-tqma53.dtsi index 4aff91e31f288..eedeced3c8810 100644 --- a/arch/arm/boot/dts/imx53-tqma53

[PATCH 8/9] ARM: dts: TQma53: move network phy reset GPIO where it belongs to

2017-09-07 Thread Juergen Borleis
Signal has an external pullup and works with weakest settings (driver strength and speed). Signed-off-by: Juergen Borleis <j...@pengutronix.de> --- arch/arm/boot/dts/imx53-mba53.dts | 7 +++ arch/arm/boot/dts/imx53-tqma53.dtsi | 1 - 2 files changed, 7 insertions(+), 1 deletion(-)

[PATCH 8/9] ARM: dts: TQma53: move network phy reset GPIO where it belongs to

2017-09-07 Thread Juergen Borleis
Signal has an external pullup and works with weakest settings (driver strength and speed). Signed-off-by: Juergen Borleis --- arch/arm/boot/dts/imx53-mba53.dts | 7 +++ arch/arm/boot/dts/imx53-tqma53.dtsi | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot

[PATCH 4/9] ARM: dts: TQma53: ESDHC2: use correct IO lines power supply

2017-09-07 Thread Juergen Borleis
IO lines only. The SD card socket is not part of the CPU card, so the 'vmmc' info must be part of the baseboard devicetree. Signed-off-by: Juergen Borleis <j...@pengutronix.de> --- arch/arm/boot/dts/imx53-mba53.dts | 1 + arch/arm/boot/dts/imx53-tqma53.dtsi | 2 +- 2 files changed, 2 inse

[PATCH 1/9] ARM: dts: TQma53: regulators are no bus

2017-09-07 Thread Juergen Borleis
Signed-off-by: Juergen Borleis <j...@pengutronix.de> --- arch/arm/boot/dts/imx53-mba53.dts | 33 + arch/arm/boot/dts/imx53-tqma53.dtsi | 19 ++- 2 files changed, 19 insertions(+), 33 deletions(-) diff --git a/arch/arm/boot/dts/imx53-mba53.

[PATCH 4/9] ARM: dts: TQma53: ESDHC2: use correct IO lines power supply

2017-09-07 Thread Juergen Borleis
IO lines only. The SD card socket is not part of the CPU card, so the 'vmmc' info must be part of the baseboard devicetree. Signed-off-by: Juergen Borleis --- arch/arm/boot/dts/imx53-mba53.dts | 1 + arch/arm/boot/dts/imx53-tqma53.dtsi | 2 +- 2 files changed, 2 insertions(+), 1 deletion

[PATCH 1/9] ARM: dts: TQma53: regulators are no bus

2017-09-07 Thread Juergen Borleis
Signed-off-by: Juergen Borleis --- arch/arm/boot/dts/imx53-mba53.dts | 33 + arch/arm/boot/dts/imx53-tqma53.dtsi | 19 ++- 2 files changed, 19 insertions(+), 33 deletions(-) diff --git a/arch/arm/boot/dts/imx53-mba53.dts b/arch/arm/boot/dts

Re: [PATCH v2 net-next 2/3] net: dsa: lan9303: define LAN9303_NUM_PORTS 3

2017-08-01 Thread Juergen Borleis
3_NUM_PORTS 3 > + > /* 13.2 System Control and Status Registers > * Multiply register number by 4 to get address offset. > */ Maybe we should put this macro into a shared location because in "net/dsa/tag_lan9303.c" there is already a "#define LAN

Re: [PATCH v2 net-next 2/3] net: dsa: lan9303: define LAN9303_NUM_PORTS 3

2017-08-01 Thread Juergen Borleis
13.2 System Control and Status Registers > * Multiply register number by 4 to get address offset. > */ Maybe we should put this macro into a shared location because in "net/dsa/tag_lan9303.c" there is already a "#define LAN9303_MAX_PORTS 3". jb -- Pengutronix e

Re: [PATCH v2 net-next 0/4] net: dsa: lan9303: Fix MDIO issues.

2017-07-31 Thread Juergen Borleis
my setup still works. Tested-by: Juergen Borleis <j...@pengutronix.de> Cheers Juergen -- Pengutronix e.K.                             | Juergen Borleis             | Industrial Linux Solutions                   | http://www.pengutronix.de/  |

Re: [PATCH v2 net-next 0/4] net: dsa: lan9303: Fix MDIO issues.

2017-07-31 Thread Juergen Borleis
my setup still works. Tested-by: Juergen Borleis Cheers Juergen -- Pengutronix e.K.                             | Juergen Borleis             | Industrial Linux Solutions                   | http://www.pengutronix.de/  |

Re: [PATCH net-next] net: dsa: LAN9303: add i2c dependency

2017-04-24 Thread Juergen Borleis
DSA > + depends on NET_DSA && I2C > select NET_DSA_SMSC_LAN9303 > select REGMAP_I2C > ---help--- Thanks, but already found and fixed by Arnd Bergmann. jb -- Pengutronix e.K.                            | Juergen Borleis             | Industrial Linux Solutions                  | http://www.pengutronix.de/  |

Re: [PATCH net-next] net: dsa: LAN9303: add i2c dependency

2017-04-24 Thread Juergen Borleis
A && I2C > select NET_DSA_SMSC_LAN9303 > select REGMAP_I2C > ---help--- Thanks, but already found and fixed by Arnd Bergmann. jb -- Pengutronix e.K.                            | Juergen Borleis             | Industrial Linux Solutions                  | http://www.pengutronix.de/  |

Re: [PATCH net-next] net: dsa: Remove redundant NULL dst check

2017-04-21 Thread Juergen Borleis
} > - > ds = dst->ds[0]; > > if (unlikely(!ds)) { Thanks! Acked-by: Juergen Borleis <j...@pengutronix.de> -- Pengutronix e.K.                             | Juergen Borleis             | Industrial Linux Solutions                   | http://www.pengutronix.de/  |

Re: [PATCH net-next] net: dsa: Remove redundant NULL dst check

2017-04-21 Thread Juergen Borleis
v, struct dsa_switch *ds; > unsigned int source_port; > > - if (unlikely(!dst)) { > - dev_warn_ratelimited(>dev, "Dropping packet, due to > missing switch tree device\n"); > - return NULL; > - } > - > d

Re: [PATCHv5] net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver

2017-04-18 Thread Juergen Borleis
atic variants (hopefully) and run-time tested the static variant and the I2C module variant. jb -- Pengutronix e.K.                            | Juergen Borleis             | Industrial Linux Solutions                  | http://www.pengutronix.de/  |

Re: [PATCHv5] net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver

2017-04-18 Thread Juergen Borleis
atic variants (hopefully) and run-time tested the static variant and the I2C module variant. jb -- Pengutronix e.K.                            | Juergen Borleis             | Industrial Linux Solutions                  | http://www.pengutronix.de/  |

[PATCH v6 3/4] net: dsa: LAN9303: add I2C managed mode support

2017-04-18 Thread Juergen Borleis
In this mode the switch device and the internal phys will be managed via I2C interface. The MDIO interface is still supported, but for the (emulated) CPU port only. Signed-off-by: Juergen Borleis <j...@pengutronix.de> CC: devicet...@vger.kernel.org CC: robh...@kernel.org CC: mark.rutl...@a

[PATCH v6 3/4] net: dsa: LAN9303: add I2C managed mode support

2017-04-18 Thread Juergen Borleis
In this mode the switch device and the internal phys will be managed via I2C interface. The MDIO interface is still supported, but for the (emulated) CPU port only. Signed-off-by: Juergen Borleis CC: devicet...@vger.kernel.org CC: robh...@kernel.org CC: mark.rutl...@arm.com --- .../devicetree

[PATCH v6 4/4] net: dsa: LAN9303: add MDIO managed mode support

2017-04-18 Thread Juergen Borleis
When the LAN9303 device is in MDIO manged mode, all register accesses must be done via MDIO. Please note: this code is compile time tested only due to the absence of such configured hardware. It is based on a patch from Stefan Roese from 2014. Signed-off-by: Juergen Borleis <j...@pengutronix

[PATCH v6 4/4] net: dsa: LAN9303: add MDIO managed mode support

2017-04-18 Thread Juergen Borleis
When the LAN9303 device is in MDIO manged mode, all register accesses must be done via MDIO. Please note: this code is compile time tested only due to the absence of such configured hardware. It is based on a patch from Stefan Roese from 2014. Signed-off-by: Juergen Borleis CC: devicet

[PATCH v6 1/4] net: dsa: add support for the SMSC-LAN9303 tagging format

2017-04-18 Thread Juergen Borleis
the destination and the source of an ethernet packet. Signed-off-by: Juergen Borleis <j...@pengutronix.de> --- include/net/dsa.h | 1 + net/dsa/Kconfig | 4 ++ net/dsa/Makefile | 1 + net/dsa/dsa.c | 3 ++ net/dsa/dsa_priv.h| 3 ++ net/dsa/tag_lan9303.c

[PATCH v6 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-18 Thread Juergen Borleis
The SMSC/Microchip LAN9303 is an ethernet switch device with one CPU port and two external ethernet ports with built-in phys. This driver uses the DSA framework, but is currently only capable of separating the two external ports. There is no offload support yet. Signed-off-by: Juergen Borleis &l

[PATCH v6 1/4] net: dsa: add support for the SMSC-LAN9303 tagging format

2017-04-18 Thread Juergen Borleis
the destination and the source of an ethernet packet. Signed-off-by: Juergen Borleis --- include/net/dsa.h | 1 + net/dsa/Kconfig | 4 ++ net/dsa/Makefile | 1 + net/dsa/dsa.c | 3 ++ net/dsa/dsa_priv.h| 3 ++ net/dsa/tag_lan9303.c | 141

[PATCH v6 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-18 Thread Juergen Borleis
The SMSC/Microchip LAN9303 is an ethernet switch device with one CPU port and two external ethernet ports with built-in phys. This driver uses the DSA framework, but is currently only capable of separating the two external ports. There is no offload support yet. Signed-off-by: Juergen Borleis

[PATCHv6] net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver

2017-04-18 Thread Juergen Borleis
The LAN9303 is a three port 10/100 ethernet switch with integrated phys for the two external ethernet ports. The third port is an RMII/MII interface to a host master network interface (e.g. fixed link). While the LAN9303 device itself supports offload packet processing, this driver does not make

[PATCHv6] net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver

2017-04-18 Thread Juergen Borleis
The LAN9303 is a three port 10/100 ethernet switch with integrated phys for the two external ethernet ports. The third port is an RMII/MII interface to a host master network interface (e.g. fixed link). While the LAN9303 device itself supports offload packet processing, this driver does not make

[PATCH v5 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-13 Thread Juergen Borleis
The SMSC/Microchip LAN9303 is an ethernet switch device with one CPU port and two external ethernet ports with built-in phys. This driver uses the DSA framework, but is currently only capable of separating the two external ports. There is no offload support yet. Signed-off-by: Juergen Borleis &l

[PATCH v5 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-13 Thread Juergen Borleis
The SMSC/Microchip LAN9303 is an ethernet switch device with one CPU port and two external ethernet ports with built-in phys. This driver uses the DSA framework, but is currently only capable of separating the two external ports. There is no offload support yet. Signed-off-by: Juergen Borleis

[PATCHv5] net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver

2017-04-13 Thread Juergen Borleis
The LAN9303 is a three port 10/100 ethernet switch with integrated phys for the two external ethernet ports. The third port is an RMII/MII interface to a host master network interface (e.g. fixed link). While the LAN9303 device itself supports offload packet processing, this driver does not make

[PATCHv5] net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver

2017-04-13 Thread Juergen Borleis
The LAN9303 is a three port 10/100 ethernet switch with integrated phys for the two external ethernet ports. The third port is an RMII/MII interface to a host master network interface (e.g. fixed link). While the LAN9303 device itself supports offload packet processing, this driver does not make

[PATCH v5 3/4] net: dsa: LAN9303: add I2C managed mode support

2017-04-13 Thread Juergen Borleis
In this mode the switch device and the internal phys will be managed via I2C interface. The MDIO interface is still supported, but for the (emulated) CPU port only. Signed-off-by: Juergen Borleis <j...@pengutronix.de> Reviewed-by: Andrew Lunn <and...@lunn.ch> CC: devicet...@vger.k

[PATCH v5 3/4] net: dsa: LAN9303: add I2C managed mode support

2017-04-13 Thread Juergen Borleis
In this mode the switch device and the internal phys will be managed via I2C interface. The MDIO interface is still supported, but for the (emulated) CPU port only. Signed-off-by: Juergen Borleis Reviewed-by: Andrew Lunn CC: devicet...@vger.kernel.org CC: robh...@kernel.org CC: mark.rutl

[PATCH v5 1/4] net: dsa: add support for the SMSC-LAN9303 tagging format

2017-04-13 Thread Juergen Borleis
the destination and the source of an ethernet packet. Signed-off-by: Juergen Borleis <j...@pengutronix.de> --- include/net/dsa.h | 1 + net/dsa/Kconfig | 4 ++ net/dsa/Makefile | 1 + net/dsa/dsa.c | 3 ++ net/dsa/dsa_priv.h| 3 ++ net/dsa/tag_lan9303.c

[PATCH v5 4/4] net: dsa: LAN9303: add MDIO managed mode support

2017-04-13 Thread Juergen Borleis
When the LAN9303 device is in MDIO manged mode, all register accesses must be done via MDIO. Please note: this code is compile time tested only due to the absence of such configured hardware. It is based on a patch from Stefan Roese from 2014. Signed-off-by: Juergen Borleis <j...@pengutronix

[PATCH v5 1/4] net: dsa: add support for the SMSC-LAN9303 tagging format

2017-04-13 Thread Juergen Borleis
the destination and the source of an ethernet packet. Signed-off-by: Juergen Borleis --- include/net/dsa.h | 1 + net/dsa/Kconfig | 4 ++ net/dsa/Makefile | 1 + net/dsa/dsa.c | 3 ++ net/dsa/dsa_priv.h| 3 ++ net/dsa/tag_lan9303.c | 141

[PATCH v5 4/4] net: dsa: LAN9303: add MDIO managed mode support

2017-04-13 Thread Juergen Borleis
When the LAN9303 device is in MDIO manged mode, all register accesses must be done via MDIO. Please note: this code is compile time tested only due to the absence of such configured hardware. It is based on a patch from Stefan Roese from 2014. Signed-off-by: Juergen Borleis Reviewed-by: Andrew

Re: [PATCHv4] net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver

2017-04-13 Thread Juergen Borleis
u. > > Actually, this doesn't even build. Please fix this and resubmit. Sorry, did a temporary fix in 'dsa_priv.h'a and so this missing #include slipped through. Fix in v5 is coming soon. Regards, Juergen -- Pengutronix e.K.                             | Juergen Borleis      

Re: [PATCHv4] net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver

2017-04-13 Thread Juergen Borleis
u. > > Actually, this doesn't even build. Please fix this and resubmit. Sorry, did a temporary fix in 'dsa_priv.h'a and so this missing #include slipped through. Fix in v5 is coming soon. Regards, Juergen -- Pengutronix e.K.                             | Juergen Borleis      

[PATCH v3 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-12 Thread Juergen Borleis
The SMSC/Microchip LAN9303 is an ethernet switch device with one CPU port and two external ethernet ports with built-in phys. This driver uses the DSA framework, but is currently only capable of separating the two external ports. There is no offload support yet. Signed-off-by: Juergen Borleis &l

[PATCH v3 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-12 Thread Juergen Borleis
The SMSC/Microchip LAN9303 is an ethernet switch device with one CPU port and two external ethernet ports with built-in phys. This driver uses the DSA framework, but is currently only capable of separating the two external ports. There is no offload support yet. Signed-off-by: Juergen Borleis

[PATCH v3 1/4] net: dsa: add support for the SMSC-LAN9303 tagging format

2017-04-12 Thread Juergen Borleis
the destination and the source of an ethernet packet. Signed-off-by: Juergen Borleis <j...@pengutronix.de> --- include/net/dsa.h | 1 + net/dsa/Kconfig | 4 ++ net/dsa/Makefile | 1 + net/dsa/dsa.c | 3 ++ net/dsa/dsa_priv.h| 3 ++ net/dsa/tag_lan9303.c

[PATCH v3 1/4] net: dsa: add support for the SMSC-LAN9303 tagging format

2017-04-12 Thread Juergen Borleis
the destination and the source of an ethernet packet. Signed-off-by: Juergen Borleis --- include/net/dsa.h | 1 + net/dsa/Kconfig | 4 ++ net/dsa/Makefile | 1 + net/dsa/dsa.c | 3 ++ net/dsa/dsa_priv.h| 3 ++ net/dsa/tag_lan9303.c | 140

[PATCH v3 4/4] net: dsa: LAN9303: add MDIO managed mode support

2017-04-12 Thread Juergen Borleis
When the LAN9303 device is in MDIO manged mode, all register accesses must be done via MDIO. Please note: this code is compile time tested only due to the absence of such configured hardware. It is based on a patch from Stefan Roese from 2014. Signed-off-by: Juergen Borleis <j...@pengutronix

[PATCH v3 4/4] net: dsa: LAN9303: add MDIO managed mode support

2017-04-12 Thread Juergen Borleis
When the LAN9303 device is in MDIO manged mode, all register accesses must be done via MDIO. Please note: this code is compile time tested only due to the absence of such configured hardware. It is based on a patch from Stefan Roese from 2014. Signed-off-by: Juergen Borleis Reviewed-by: Andrew

[PATCHv4] net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver

2017-04-12 Thread Juergen Borleis
The LAN9303 is a three port 10/100 ethernet switch with integrated phys for the two external ethernet ports. The third port is an RMII/MII interface to a host master network interface (e.g. fixed link). While the LAN9303 device itself supports offload packet processing, this driver does not make

[PATCHv4] net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver

2017-04-12 Thread Juergen Borleis
The LAN9303 is a three port 10/100 ethernet switch with integrated phys for the two external ethernet ports. The third port is an RMII/MII interface to a host master network interface (e.g. fixed link). While the LAN9303 device itself supports offload packet processing, this driver does not make

[PATCH v3 3/4] net: dsa: LAN9303: add I2C managed mode support

2017-04-12 Thread Juergen Borleis
In this mode the switch device and the internal phys will be managed via I2C interface. The MDIO interface is still supported, but for the (emulated) CPU port only. Signed-off-by: Juergen Borleis <j...@pengutronix.de> Reviewed-by: Andrew Lunn <and...@lunn.ch> CC: devicet...@vger.k

[PATCH v3 3/4] net: dsa: LAN9303: add I2C managed mode support

2017-04-12 Thread Juergen Borleis
In this mode the switch device and the internal phys will be managed via I2C interface. The MDIO interface is still supported, but for the (emulated) CPU port only. Signed-off-by: Juergen Borleis Reviewed-by: Andrew Lunn CC: devicet...@vger.kernel.org CC: robh...@kernel.org CC: mark.rutl

[PATCH v3 1/4] net: dsa: add support for the SMSC-LAN9303 tagging format

2017-04-11 Thread Juergen Borleis
the destination and the source of an ethernet packet. Signed-off-by: Juergen Borleis <j...@pengutronix.de> --- include/net/dsa.h | 1 + net/dsa/Kconfig | 3 + net/dsa/Makefile | 1 + net/dsa/dsa.c | 3 + net/dsa/dsa_priv.h| 3 + net/dsa/tag_lan9303.c

[PATCH v3 1/4] net: dsa: add support for the SMSC-LAN9303 tagging format

2017-04-11 Thread Juergen Borleis
the destination and the source of an ethernet packet. Signed-off-by: Juergen Borleis --- include/net/dsa.h | 1 + net/dsa/Kconfig | 3 + net/dsa/Makefile | 1 + net/dsa/dsa.c | 3 + net/dsa/dsa_priv.h| 3 + net/dsa/tag_lan9303.c | 158

[PATCH v3 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-11 Thread Juergen Borleis
The SMSC/Microchip LAN9303 is an ethernet switch device with one CPU port and two external ethernet ports with built-in phys. This driver uses the DSA framework, but is currently only capable of separating the two external ports. There is no offload support yet. Signed-off-by: Juergen Borleis &l

[PATCH v3 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-11 Thread Juergen Borleis
The SMSC/Microchip LAN9303 is an ethernet switch device with one CPU port and two external ethernet ports with built-in phys. This driver uses the DSA framework, but is currently only capable of separating the two external ports. There is no offload support yet. Signed-off-by: Juergen Borleis

[PATCHv3] net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver

2017-04-11 Thread Juergen Borleis
The LAN9303 is a three port 10/100 ethernet switch with integrated phys for the two external ethernet ports. The third port is an RMII/MII interface to a host master network interface (e.g. fixed link). While the LAN9303 device itself supports offload packet processing, this driver does not make

[PATCH v3 3/4] net: dsa: LAN9303: add I2C managed mode support

2017-04-11 Thread Juergen Borleis
In this mode the switch device and the internal phys will be managed via I2C interface. The MDIO interface is still supported, but for the (emulated) CPU port only. Signed-off-by: Juergen Borleis <j...@pengutronix.de> CC: devicet...@vger.kernel.org CC: robh...@kernel.org CC: mark.rutl...@a

[PATCH v3 4/4] net: dsa: LAN9303: add MDIO managed mode support

2017-04-11 Thread Juergen Borleis
When the LAN9303 device is in MDIO manged mode, all register accesses must be done via MDIO. Please note: this code is compile time tested only due to the absence of such configured hardware. It is based on a patch from Stefan Roese from 2014. Signed-off-by: Juergen Borleis <j...@pengutronix

[PATCHv3] net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver

2017-04-11 Thread Juergen Borleis
The LAN9303 is a three port 10/100 ethernet switch with integrated phys for the two external ethernet ports. The third port is an RMII/MII interface to a host master network interface (e.g. fixed link). While the LAN9303 device itself supports offload packet processing, this driver does not make

[PATCH v3 3/4] net: dsa: LAN9303: add I2C managed mode support

2017-04-11 Thread Juergen Borleis
In this mode the switch device and the internal phys will be managed via I2C interface. The MDIO interface is still supported, but for the (emulated) CPU port only. Signed-off-by: Juergen Borleis CC: devicet...@vger.kernel.org CC: robh...@kernel.org CC: mark.rutl...@arm.com --- .../devicetree

[PATCH v3 4/4] net: dsa: LAN9303: add MDIO managed mode support

2017-04-11 Thread Juergen Borleis
When the LAN9303 device is in MDIO manged mode, all register accesses must be done via MDIO. Please note: this code is compile time tested only due to the absence of such configured hardware. It is based on a patch from Stefan Roese from 2014. Signed-off-by: Juergen Borleis CC: devicet

Re: [PATCH v2 3/4] net: dsa: LAN9303: add I2C managed mode support

2017-04-10 Thread Juergen Borleis
eg = <1>; > > + label = "lan1; > > + }; > > These are not PHY nodes, so does this compatible string do anything? I removed them and nothing changed. Regards, Juergen -- Pengutronix e.K.                             | Juergen Borleis             | Industrial Linux Solutions                  | http://www.pengutronix.de/  |

Re: [PATCH v2 3/4] net: dsa: LAN9303: add I2C managed mode support

2017-04-10 Thread Juergen Borleis
eg = <1>; > > + label = "lan1; > > + }; > > These are not PHY nodes, so does this compatible string do anything? I removed them and nothing changed. Regards, Juergen -- Pengutronix e.K.                             | Juergen Borleis             | Industrial Linux Solutions                  | http://www.pengutronix.de/  |

Re: [PATCH v2 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-10 Thread Juergen Borleis
DIO emulation case): Generic PHY 63fec000.etherne:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=63fec000.etherne:00, irq=-1) And for the fixed-link case: Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=-1) Regards, Juergen -- Pengutr

Re: [PATCH v2 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-10 Thread Juergen Borleis
DIO emulation case): Generic PHY 63fec000.etherne:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=63fec000.etherne:00, irq=-1) And for the fixed-link case: Generic PHY fixed-0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=fixed-0:00, irq=-1) Regards, Juergen -- Pengutr

Re: [PATCH v2 1/4] net: dsa: add support for the SMSC-LAN9303 tagging format

2017-04-10 Thread Juergen Borleis
Hi Andrew, On Friday 07 April 2017 15:06:10 Andrew Lunn wrote: > On Fri, Apr 07, 2017 at 10:14:59AM +0200, Juergen Borleis wrote: > > To define the outgoing port and to discover the incoming port a regular > > VLAN tag is used by the LAN9303. But its VID meaning is 'special'. &

Re: [PATCH v2 1/4] net: dsa: add support for the SMSC-LAN9303 tagging format

2017-04-10 Thread Juergen Borleis
Hi Andrew, On Friday 07 April 2017 15:06:10 Andrew Lunn wrote: > On Fri, Apr 07, 2017 at 10:14:59AM +0200, Juergen Borleis wrote: > > To define the outgoing port and to discover the incoming port a regular > > VLAN tag is used by the LAN9303. But its VID meaning is 'special'. &

[PATCH v2 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-07 Thread Juergen Borleis
The SMSC/Microchip LAN9303 is an ethernet switch device with one CPU port and two external ethernet ports with built-in phys. This driver uses the DSA framework, but is currently only capable of separating the two external ports. There is no offload support yet. Signed-off-by: Juergen Borleis &l

[PATCH v2 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-07 Thread Juergen Borleis
The SMSC/Microchip LAN9303 is an ethernet switch device with one CPU port and two external ethernet ports with built-in phys. This driver uses the DSA framework, but is currently only capable of separating the two external ports. There is no offload support yet. Signed-off-by: Juergen Borleis

[PATCH v2 3/4] net: dsa: LAN9303: add I2C managed mode support

2017-04-07 Thread Juergen Borleis
In this mode the switch device and the internal phys will be managed via I2C interface. The MDIO interface is still supported, but for the (emulated) CPU port only. Signed-off-by: Juergen Borleis <j...@pengutronix.de> --- .../devicetree/bindings/net/dsa/lan9303.txt

[PATCH v2 3/4] net: dsa: LAN9303: add I2C managed mode support

2017-04-07 Thread Juergen Borleis
In this mode the switch device and the internal phys will be managed via I2C interface. The MDIO interface is still supported, but for the (emulated) CPU port only. Signed-off-by: Juergen Borleis --- .../devicetree/bindings/net/dsa/lan9303.txt| 64 drivers/net/dsa/Kconfig

[PATCH v2 4/4] net: dsa: LAN9303: add MDIO managed mode support

2017-04-07 Thread Juergen Borleis
When the LAN9303 device is in MDIO manged mode, all register accesses must be done via MDIO. Please note: this code is *untested* yet due to the absence of such configured hardware. It is based on a patch of Stefan Roese from 2014. Signed-off-by: Juergen Borleis <j...@pengutronix

[PATCH v2 4/4] net: dsa: LAN9303: add MDIO managed mode support

2017-04-07 Thread Juergen Borleis
When the LAN9303 device is in MDIO manged mode, all register accesses must be done via MDIO. Please note: this code is *untested* yet due to the absence of such configured hardware. It is based on a patch of Stefan Roese from 2014. Signed-off-by: Juergen Borleis --- .../devicetree/bindings/net

[PATCH v2 1/4] net: dsa: add support for the SMSC-LAN9303 tagging format

2017-04-07 Thread Juergen Borleis
the destination and the source of an ethernet packet. Signed-off-by: Juergen Borleis <j...@pengutronix.de> --- include/net/dsa.h | 1 + net/dsa/Kconfig | 3 + net/dsa/Makefile | 1 + net/dsa/dsa.c | 3 + net/dsa/dsa_priv.h| 3 + net/dsa/tag_lan9303.c

[PATCH v2 1/4] net: dsa: add support for the SMSC-LAN9303 tagging format

2017-04-07 Thread Juergen Borleis
the destination and the source of an ethernet packet. Signed-off-by: Juergen Borleis --- include/net/dsa.h | 1 + net/dsa/Kconfig | 3 + net/dsa/Makefile | 1 + net/dsa/dsa.c | 3 + net/dsa/dsa_priv.h| 3 + net/dsa/tag_lan9303.c | 158

[PATCHv2] net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver

2017-04-07 Thread Juergen Borleis
The LAN9303 is a three port 10/100 ethernet switch with integrated phys for the two external ethernet ports. The third port is an RMII/MII interface to a host master network interface (e.g. fixed link). While the LAN9303 device itself supports offload packet processing, this driver does not make

[PATCHv2] net: dsa: add SMSC/Microchip LAN9303 three port ethernet switch driver

2017-04-07 Thread Juergen Borleis
The LAN9303 is a three port 10/100 ethernet switch with integrated phys for the two external ethernet ports. The third port is an RMII/MII interface to a host master network interface (e.g. fixed link). While the LAN9303 device itself supports offload packet processing, this driver does not make

Re: [PATCH 3/4] net: dsa: LAN9303: add I2C managed mode support

2017-04-06 Thread Juergen Borleis
s = <1>; > > + #size-cells = <0>; > > + > > + port@0 { /* RMII fixed link to master */ > > + reg = <0>; > > + label = "cpu"; > > + ethernet = <>; > > + max-speed = <100>; > > max-speed does not do anything i think, since there is no adjust_link > function. Removed in v2. Thanks. Juergen -- Pengutronix e.K.                            | Juergen Borleis             | Industrial Linux Solutions                  | http://www.pengutronix.de/  |

Re: [PATCH 3/4] net: dsa: LAN9303: add I2C managed mode support

2017-04-06 Thread Juergen Borleis
s = <1>; > > + #size-cells = <0>; > > + > > + port@0 { /* RMII fixed link to master */ > > + reg = <0>; > > + label = "cpu"; > > + ethernet = <>; > > + max-speed = <100>; > > max-speed does not do anything i think, since there is no adjust_link > function. Removed in v2. Thanks. Juergen -- Pengutronix e.K.                            | Juergen Borleis             | Industrial Linux Solutions                  | http://www.pengutronix.de/  |

Re: [PATCH 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-06 Thread Juergen Borleis
conjunction with calling lan9303_port_disable(). In v2 I do not > > touch the phy anymore. > > So this is touching the BMCR_PDOWN bit? Using the #define would of > helped explain this. Okay. Juergen -- Pengutronix e.K.                            | Juergen Borleis             | Industrial Linux Solutions                   | http://www.pengutronix.de/  |

Re: [PATCH 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-06 Thread Juergen Borleis
conjunction with calling lan9303_port_disable(). In v2 I do not > > touch the phy anymore. > > So this is touching the BMCR_PDOWN bit? Using the #define would of > helped explain this. Okay. Juergen -- Pengutronix e.K.                            | Juergen Borleis             | Industrial Linux Solutions                   | http://www.pengutronix.de/  |

Re: [PATCH 1/4] net: dsa: add support for the SMSC-LAN9303 tagging format

2017-04-06 Thread Juergen Borleis
> > +* and the current ethertype field. > > +*/ > > + skb_pull_rcsum(skb, 2 + 2); > > + memmove(skb->data - ETH_HLEN, skb->data - (ETH_HLEN + LAN9303_TAG_LEN), > > + 2 * ETH_ALEN); > > + skb_push(skb, ETH_HLEN); > > Do you need t

Re: [PATCH 1/4] net: dsa: add support for the SMSC-LAN9303 tagging format

2017-04-06 Thread Juergen Borleis
> > +* and the current ethertype field. > > +*/ > > + skb_pull_rcsum(skb, 2 + 2); > > + memmove(skb->data - ETH_HLEN, skb->data - (ETH_HLEN + LAN9303_TAG_LEN), > > + 2 * ETH_ALEN); > > + skb_push(skb, ETH_HLEN); > > Do you need t

Re: [PATCH 2/4] net: dsa: add new DSA switch driver for the SMSC-LAN9303

2017-04-06 Thread Juergen Borleis
n PHYs :) Juergen -- Pengutronix e.K.                            | Juergen Borleis             | Industrial Linux Solutions                  | http://www.pengutronix.de/  |

  1   2   3   >