[net-next v5 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-08-25 Thread Vadym Kochan
ped-by: Volodymyr Mytnyk Signed-off-by: Volodymyr Mytnyk Co-developed-by: Vadym Kochan Signed-off-by: Vadym Kochan --- PATCH v5: 1) Make SPDX license as separate comment 2) Change 'u8 *' -> 'void *' in prestera.h: struct prestera_device->{send_req,recv_msg} callbacks. It allows

[net-next v5 2/6] net: marvell: prestera: Add PCI interface support

2020-08-25 Thread Vadym Kochan
ABI is not changed. Firmware image file name contains only MAJOR and MINOR numbers to make driver be compatible with any PATCH version. Co-developed-by: Oleksandr Mazur Signed-off-by: Oleksandr Mazur Co-developed-by: Vadym Kochan Signed-off-by: Vadym Kochan --- PATCH v5: 1) Remove not-ne

[net-next v5 6/6] dt-bindings: marvell,prestera: Add description for device-tree bindings

2020-08-25 Thread Vadym Kochan
Add brief description how to configure base mac address binding in device-tree. Describe requirement for the PCI port which is connected to the ASIC, to allow access to the firmware related registers. Signed-off-by: Vadym Kochan --- .../bindings/net/marvell,prestera.txt | 34

[net-next v5 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-08-25 Thread Vadym Kochan
w.c 10) Add base_mac setting as module parameter. base_mac is required for generation default port's mac. Vadym Kochan (6): net: marvell: prestera: Add driver for Prestera family ASIC devices net: marvell: prestera: Add PCI interface support net: marvell: prestera: Add basic devlink

Re: [EXT] Re: [net-next v4 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-08-25 Thread Vadym Kochan
; > Andrew This 'compatible' string is just for parsing the DTS node related to this driver. There is no any relation in this name matching for fw compatibility but only to describe some properties which might be applied by the driver. Regards, Vadym Kochan

Re: [net-next v4 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-08-20 Thread Vadym Kochan
Hi Andrew, On Fri, Aug 14, 2020 at 03:18:15PM +0200, Andrew Lunn wrote: > > > > Currently > > > > > > > > compatible = "marvell,prestera" > > > > > > > > is used as default, so may be > > > > > > > > you mean to support few matching including particular silicon too, like > > > > ? > > >

Re: [net-next v4 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-08-14 Thread Vadym Kochan
On Fri, Aug 14, 2020 at 01:05:36PM +0100, Jonathan McDowell wrote: > On Fri, Aug 14, 2020 at 11:20:54AM +0300, Vadym Kochan wrote: > > On Thu, Aug 13, 2020 at 09:03:22AM +0100, Jonathan McDowell wrote: > > > On Mon, Jul 27, 2020 at 03:22:37PM +0300, Vadym Kochan wrote: > &

Re: [PATCH v2 2/2] nvmem: add ONIE NVMEM cells support

2020-08-14 Thread Vadym Kochan
Hi Srinivas, On Mon, Jun 15, 2020 at 12:06:11PM +0100, Srinivas Kandagatla wrote: > > > On 05/06/2020 11:53, Vadym Kochan wrote: > > > One of the example is atmel eeprom (at24), but there might be different > > > devices. > > > > > > But can you pl

Re: [net-next v4 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-08-14 Thread Vadym Kochan
Hi Jonathan, On Thu, Aug 13, 2020 at 09:03:22AM +0100, Jonathan McDowell wrote: > On Mon, Jul 27, 2020 at 03:22:37PM +0300, Vadym Kochan wrote: > > Marvell Prestera 98DX326x integrates up to 24 ports of 1GbE with 8 > > ports of 10GbE uplinks or 2 ports of 40Gbps stackin

Re: [net-next v4 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-07-31 Thread Vadym Kochan
Hi Andy, On Fri, Jul 31, 2020 at 07:02:47PM +0300, Andy Shevchenko wrote: > On Fri, Jul 31, 2020 at 6:22 PM Vadym Kochan wrote: > > On Mon, Jul 27, 2020 at 03:59:13PM +0300, Andy Shevchenko wrote: > > > On Mon, Jul 27, 2020 at 3:23 PM Vadym Kochan > > > wrote: >

Re: [net-next v4 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-07-31 Thread Vadym Kochan
Hi Andy, On Mon, Jul 27, 2020 at 03:59:13PM +0300, Andy Shevchenko wrote: > On Mon, Jul 27, 2020 at 3:23 PM Vadym Kochan wrote: > > > > Marvell Prestera 98DX326x integrates up to 24 ports of 1GbE with 8 > > ports of 10GbE uplinks or 2 ports of 40Gbps stacking for a lar

Re: [net-next v4 3/6] net: marvell: prestera: Add basic devlink support

2020-07-28 Thread Vadym Kochan
Hi Andy, On Mon, Jul 27, 2020 at 04:07:07PM +0300, Andy Shevchenko wrote: > On Mon, Jul 27, 2020 at 3:23 PM Vadym Kochan wrote: > > > > Add very basic support for devlink interface: > > > > - driver name > > - fw version > > - de

Re: [net-next v4 2/6] net: marvell: prestera: Add PCI interface support

2020-07-27 Thread Vadym Kochan
> > > >PATCH - indicates only fixes, firmware ABI is not changed. > > > >Firmware image file name contains only MAJOR and MINOR numbers to make > >driver be compatible with any PATCH version. > > > >Signed-off-by: Oleksandr Mazur > >Signed-off-b

[net-next v4 5/6] net: marvell: prestera: Add Switchdev driver implementation

2020-07-27 Thread Vadym Kochan
timeout parameter is set globally per device Signed-off-by: Serhiy Boiko Signed-off-by: Serhiy Pshyk Signed-off-by: Taras Chornyi Signed-off-by: Vadym Kochan --- PATCH v4: 1) Check for the prestera dev interface in switchdev event handler to ignore unsupported topology. .../net

[net-next v4 6/6] dt-bindings: marvell,prestera: Add description for device-tree bindings

2020-07-27 Thread Vadym Kochan
Add brief description how to configure base mac address binding in device-tree. Describe requirement for the PCI port which is connected to the ASIC, to allow access to the firmware related registers. Signed-off-by: Vadym Kochan --- .../bindings/net/marvell,prestera.txt | 34

[net-next v4 4/6] net: marvell: prestera: Add ethtool interface support

2020-07-27 Thread Vadym Kochan
autoneg on - forward error correction feature is supported only on SFP ports, 10G speed - auto-negotiation and MDI-x features are not supported on Copper-to-Fiber SFP module Signed-off-by: Andrii Savka Signed-off-by: Serhiy Boiko Signed-off-by: Vadym Kochan --- PATCH v4: 1

[net-next v4 2/6] net: marvell: prestera: Add PCI interface support

2020-07-27 Thread Vadym Kochan
ABI is not changed. Firmware image file name contains only MAJOR and MINOR numbers to make driver be compatible with any PATCH version. Signed-off-by: Oleksandr Mazur Signed-off-by: Vadym Kochan Acked-by: Jiri Pirko --- PATCH v4: 1) Get rid of "packed" attribute for the f

[net-next v4 3/6] net: marvell: prestera: Add basic devlink support

2020-07-27 Thread Vadym Kochan
Add very basic support for devlink interface: - driver name - fw version - devlink ports Signed-off-by: Vadym Kochan Reviewed-by: Jiri Pirko --- drivers/net/ethernet/marvell/prestera/Kconfig | 1 + .../net/ethernet/marvell/prestera/Makefile| 2 +- .../net/ethernet/marvell

[net-next v4 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-07-27 Thread Vadym Kochan
vka Signed-off-by: Oleksandr Mazur Signed-off-by: Serhiy Boiko Signed-off-by: Serhiy Pshyk Signed-off-by: Taras Chornyi Signed-off-by: Volodymyr Mytnyk Signed-off-by: Vadym Kochan --- PATCH v4: 1) Use prestera_ prefix for netdev_ops struct var. PATCH v3: 1) Simplify __be32 type cast

[net-next v4 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-07-27 Thread Vadym Kochan
s module parameter. base_mac is required for generation default port's mac. Vadym Kochan (6): net: marvell: prestera: Add driver for Prestera family ASIC devices net: marvell: prestera: Add PCI interface support net: marvell: prestera: Add basic devlink support net: marvell: prestera: Add

Re: [net-next v3 2/6] net: marvell: prestera: Add PCI interface support

2020-07-27 Thread Vadym Kochan
Hi Andy, On Mon, Jul 27, 2020 at 11:04:56AM +0300, Andy Shevchenko wrote: > On Mon, Jul 27, 2020 at 1:55 AM Vadym Kochan wrote: > > On Sun, Jul 26, 2020 at 01:32:19PM +0300, Andy Shevchenko wrote: > > > On Sat, Jul 25, 2020 at 6:10 PM Vadym Kochan > > > wrote

Re: [net-next v3 2/6] net: marvell: prestera: Add PCI interface support

2020-07-26 Thread Vadym Kochan
Hi Andy, On Sun, Jul 26, 2020 at 01:32:19PM +0300, Andy Shevchenko wrote: > On Sat, Jul 25, 2020 at 6:10 PM Vadym Kochan wrote: > > > > Add PCI interface driver for Prestera Switch ASICs family devices, which > > provides: > > > > - Firmware loading mech

[net-next v3 6/6] dt-bindings: marvell,prestera: Add description for device-tree bindings

2020-07-25 Thread Vadym Kochan
Add brief description how to configure base mac address binding in device-tree. Describe requirement for the PCI port which is connected to the ASIC, to allow access to the firmware related registers. Signed-off-by: Vadym Kochan --- .../bindings/net/marvell,prestera.txt | 34

[net-next v3 2/6] net: marvell: prestera: Add PCI interface support

2020-07-25 Thread Vadym Kochan
ABI is not changed. Firmware image file name contains only MAJOR and MINOR numbers to make driver be compatible with any PATCH version. Signed-off-by: Oleksandr Mazur Signed-off-by: Vadym Kochan --- drivers/net/ethernet/marvell/prestera/Kconfig | 11 + .../net/ethernet/marvell/prestera/Makefile|

[net-next v3 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-07-25 Thread Vadym Kochan
vka Signed-off-by: Oleksandr Mazur Signed-off-by: Serhiy Boiko Signed-off-by: Serhiy Pshyk Signed-off-by: Taras Chornyi Signed-off-by: Volodymyr Mytnyk Signed-off-by: Vadym Kochan --- PATCHv3: 1) Simplify __be32 type casting in prestera_dsa.c: prestera_dsa_parse(...) drivers/net/ether

[net-next v3 5/6] net: marvell: prestera: Add Switchdev driver implementation

2020-07-25 Thread Vadym Kochan
timeout parameter is set globally per device Signed-off-by: Serhiy Boiko Signed-off-by: Serhiy Pshyk Signed-off-by: Taras Chornyi Signed-off-by: Vadym Kochan --- .../net/ethernet/marvell/prestera/Makefile|3 +- .../net/ethernet/marvell/prestera/prestera.h | 33 +- .../ethernet/marvell

[net-next v3 4/6] net: marvell: prestera: Add ethtool interface support

2020-07-25 Thread Vadym Kochan
autoneg on - forward error correction feature is supported only on SFP ports, 10G speed - auto-negotiation and MDI-x features are not supported on Copper-to-Fiber SFP module Signed-off-by: Andrii Savka Signed-off-by: Serhiy Boiko Signed-off-by: Vadym Kochan --- .../net

[net-next v3 3/6] net: marvell: prestera: Add basic devlink support

2020-07-25 Thread Vadym Kochan
Add very basic support for devlink interface: - driver name - fw version - devlink ports Signed-off-by: Vadym Kochan --- drivers/net/ethernet/marvell/prestera/Kconfig | 1 + .../net/ethernet/marvell/prestera/Makefile| 2 +- .../net/ethernet/marvell/prestera/prestera.h

[net-next v3 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-07-25 Thread Vadym Kochan
d of macro usage for sending fw requests in prestera_hw.c 10) Add base_mac setting as module parameter. base_mac is required for generation default port's mac. Vadym Kochan (6): net: marvell: prestera: Add driver for Prestera family ASIC devices net: marvell: prestera: Add PCI interfa

[net-next v2 4/6] net: marvell: prestera: Add ethtool interface support

2020-07-24 Thread Vadym Kochan
autoneg on - forward error correction feature is supported only on SFP ports, 10G speed - auto-negotiation and MDI-x features are not supported on Copper-to-Fiber SFP module Signed-off-by: Andrii Savka Signed-off-by: Serhiy Boiko Signed-off-by: Vadym Kochan --- .../net

[net-next v2 5/6] net: marvell: prestera: Add Switchdev driver implementation

2020-07-24 Thread Vadym Kochan
timeout parameter is set globally per device Signed-off-by: Serhiy Boiko Signed-off-by: Serhiy Pshyk Signed-off-by: Taras Chornyi Signed-off-by: Vadym Kochan --- .../net/ethernet/marvell/prestera/Makefile|3 +- .../net/ethernet/marvell/prestera/prestera.h | 33 +- .../ethernet/marvell

[net-next v2 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-07-24 Thread Vadym Kochan
vka Signed-off-by: Oleksandr Mazur Signed-off-by: Serhiy Boiko Signed-off-by: Serhiy Pshyk Signed-off-by: Taras Chornyi Signed-off-by: Volodymyr Mytnyk Signed-off-by: Vadym Kochan --- drivers/net/ethernet/marvell/Kconfig | 1 + drivers/net/ethernet/marvell/Makefile |

[net-next v2 2/6] net: marvell: prestera: Add PCI interface support

2020-07-24 Thread Vadym Kochan
ABI is not changed. Firmware image file name contains only MAJOR and MINOR numbers to make driver be compatible with any PATCH version. Signed-off-by: Oleksandr Mazur Signed-off-by: Vadym Kochan --- drivers/net/ethernet/marvell/prestera/Kconfig | 11 + .../net/ethernet/marvell/prestera/Makefile|

[net-next v2 6/6] dt-bindings: marvell,prestera: Add description for device-tree bindings

2020-07-24 Thread Vadym Kochan
Add brief description how to configure base mac address binding in device-tree. Describe requirement for the PCI port which is connected to the ASIC, to allow access to the firmware related registers. Signed-off-by: Vadym Kochan --- .../bindings/net/marvell,prestera.txt | 34

[net-next v2 3/6] net: marvell: prestera: Add basic devlink support

2020-07-24 Thread Vadym Kochan
Add very basic support for devlink interface: - driver name - fw version - devlink ports Signed-off-by: Vadym Kochan --- drivers/net/ethernet/marvell/prestera/Kconfig | 1 + .../net/ethernet/marvell/prestera/Makefile| 2 +- .../net/ethernet/marvell/prestera/prestera.h

[net-next v2 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-07-24 Thread Vadym Kochan
for generation default port's mac. Vadym Kochan (6): net: marvell: prestera: Add driver for Prestera family ASIC devices net: marvell: prestera: Add PCI interface support net: marvell: prestera: Add basic devlink support net: marvell: prestera: Add ethtool interface support net: ma

Re: [net-next 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-06-20 Thread Vadym Kochan
Hi Jiri, Ido, On Mon, Jun 01, 2020 at 08:24:17AM +0200, Jiri Pirko wrote: > Sat, May 30, 2020 at 05:54:29PM CEST, ido...@idosch.org wrote: > >On Sat, May 30, 2020 at 05:52:31PM +0300, Vadym Kochan wrote: > > [...] > > > >> > WARNING: do not add new typedef

Re: [net-next 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-06-20 Thread Vadym Kochan
Hi Ido, On Wed, Jun 03, 2020 at 12:23:58PM +0300, Ido Schimmel wrote: > On Mon, Jun 01, 2020 at 01:50:13PM +0300, Vadym Kochan wrote: > > Hi Ido, > > > > On Sat, May 30, 2020 at 06:48:01PM +0300, Ido Schimmel wrote: > > > On Thu, May 28, 2020 at 06:12:

Re: [net-next 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-06-10 Thread Vadym Kochan
On Wed, Jun 03, 2020 at 04:16:32PM +0200, Jiri Pirko wrote: > Thu, May 28, 2020 at 05:12:40PM CEST, vadym.koc...@plvision.eu wrote: > > [...] > > >+} > >+ > >+int prestera_hw_port_info_get(const struct prestera_port *port, > >+ u16 *fp_id, u32 *hw_id, u32 *dev_id) > >

Re: [PATCH v2 2/2] nvmem: add ONIE NVMEM cells support

2020-06-05 Thread Vadym Kochan
Hi Srinivas, On Mon, Jun 01, 2020 at 01:27:49PM +0300, Vadym Kochan wrote: > On Mon, Jun 01, 2020 at 10:13:05AM +0100, Srinivas Kandagatla wrote: > > > > > > On 01/06/2020 10:03, Vadym Kochan wrote: > > > > > + > > > > > + nvmem = of_nvm

Re: [net-next 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-06-01 Thread Vadym Kochan
Hi Ido, On Sat, May 30, 2020 at 06:48:01PM +0300, Ido Schimmel wrote: > On Thu, May 28, 2020 at 06:12:40PM +0300, Vadym Kochan wrote: > [...] > Nit: "From" ? > > > + PRESTERA_DSA_CMD_FROM_CPU, > > +}; > > + > > +struct prestera_dsa_vlan { >

Re: [PATCH v2 2/2] nvmem: add ONIE NVMEM cells support

2020-06-01 Thread Vadym Kochan
On Mon, Jun 01, 2020 at 10:13:05AM +0100, Srinivas Kandagatla wrote: > > > On 01/06/2020 10:03, Vadym Kochan wrote: > > > > + > > > > + nvmem = of_nvmem_device_get(np, NULL); > > > > + if (IS_ERR(nvmem)) > > > > +

Re: [PATCH v2 2/2] nvmem: add ONIE NVMEM cells support

2020-06-01 Thread Vadym Kochan
Hi, On Mon, Jun 01, 2020 at 09:50:52AM +0100, Srinivas Kandagatla wrote: > > > On 30/05/2020 00:04, Vadym Kochan wrote: > > ONIE is a small operating system, pre-installed on bare metal network > > switches, that provides an environment for automated provisioning. > >

Re: [net-next 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-05-30 Thread Vadym Kochan
Hi Ido, On Sat, May 30, 2020 at 05:29:28PM +0300, Ido Schimmel wrote: > On Thu, May 28, 2020 at 06:12:39PM +0300, Vadym Kochan wrote: > > Marvell Prestera 98DX326x integrates up to 24 ports of 1GbE with 8 > > ports of 10GbE uplinks or 2 ports of 40Gbps stacking for a largely &

Re: [net-next 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-05-29 Thread Vadym Kochan
Hi David, On Fri, May 29, 2020 at 05:18:39PM -0700, David Miller wrote: > > Please remove all of the __packed attributes. > > I looked at your data structures and all of them use fixed sized types > and are multiples of 4 so the __packed attribute is completely > unnecessary. > > The alignment

[PATCH v2 2/2] nvmem: add ONIE NVMEM cells support

2020-05-29 Thread Vadym Kochan
registers ONIE TLV attributes as NVMEM cells which can be accessed by other platform driver. Also it allows to use of_get_mac_address() to retrieve mac address for the netdev. Signed-off-by: Vadym Kochan --- drivers/nvmem/Kconfig | 9 + drivers/nvmem/Makefile | 3 + drivers/nvmem/onie

[PATCH v2 1/2] nvmem: core: allow to register cells for existing device

2020-05-29 Thread Vadym Kochan
Current implementation does not allow to register nvmem cells for existing device and requires that this will be done before device is registered. But there might a driver which provides only cells info which needs to be added for already registered nvmem device. Signed-off-by: Vadym Kochan

[PATCH v2 0/2] nvmem: add ONIE NVMEM cells provider

2020-05-29 Thread Vadym Kochan
logic because current logic only allows to add additional cells only before nvmem device registration. v2: 1) Fixed wrong memcmp comparison Vadym Kochan (2): nvmem: core: allow to register cells for existing device nvmem: add ONIE NVMEM cells support drivers/nvmem/Kconfig | 9

[net-next 6/6] dt-bindings: marvell,prestera: Add description for device-tree bindings

2020-05-28 Thread Vadym Kochan
Add brief description how to configure base mac address binding in device-tree. Describe requirement for the PCI port which is connected to the ASIC, to allow access to the firmware related registers. Signed-off-by: Vadym Kochan --- .../bindings/net/marvell,prestera.txt | 34

[net-next 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-05-28 Thread Vadym Kochan
vka Signed-off-by: Oleksandr Mazur Signed-off-by: Serhiy Boiko Signed-off-by: Serhiy Pshyk Signed-off-by: Taras Chornyi Signed-off-by: Volodymyr Mytnyk Signed-off-by: Vadym Kochan --- drivers/net/ethernet/marvell/Kconfig | 1 + drivers/net/ethernet/marvell/Makefile |

[net-next 5/6] net: marvell: prestera: Add Switchdev driver implementation

2020-05-28 Thread Vadym Kochan
timeout parameter is set globally per device Signed-off-by: Serhiy Boiko Signed-off-by: Serhiy Pshyk Signed-off-by: Taras Chornyi Signed-off-by: Vadym Kochan --- .../net/ethernet/marvell/prestera/Makefile|3 +- .../net/ethernet/marvell/prestera/prestera.h | 33 +- .../ethernet/marvell

[net-next 4/6] net: marvell: prestera: Add ethtool interface support

2020-05-28 Thread Vadym Kochan
autoneg on - forward error correction feature is supported only on SFP ports, 10G speed - auto-negotiation and MDI-x features are not supported on Copper-to-Fiber SFP module Signed-off-by: Andrii Savka Signed-off-by: Serhiy Boiko Signed-off-by: Vadym Kochan --- .../net

[net-next 3/6] net: marvell: prestera: Add basic devlink support

2020-05-28 Thread Vadym Kochan
Add very basic support for devlink interface: - driver name - fw version - devlink ports Signed-off-by: Vadym Kochan --- drivers/net/ethernet/marvell/prestera/Kconfig | 1 + .../net/ethernet/marvell/prestera/Makefile| 2 +- .../net/ethernet/marvell/prestera/prestera.h

[net-next 2/6] net: marvell: prestera: Add PCI interface support

2020-05-28 Thread Vadym Kochan
ABI is not changed. Firmware image file name contains only MAJOR and MINOR numbers to make driver be compatible with any PATCH version. Signed-off-by: Oleksandr Mazur Signed-off-by: Vadym Kochan --- drivers/net/ethernet/marvell/prestera/Kconfig | 11 + .../net/ethernet/marvell/prestera/Makefile|

[net-next 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-05-28 Thread Vadym Kochan
e_device which may confuse. - use refcount_t 9) Get rid of macro usage for sending fw requests in prestera_hw.c 10) Add base_mac setting as module parameter. base_mac is required for generation default port's mac. Vadym Kochan (6): net: marvell: prestera: Add driver for Pr

[net-next 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-05-28 Thread Vadym Kochan
e_device which may confuse. - use refcount_t 9) Get rid of macro usage for sending fw requests in prestera_hw.c 10) Add base_mac setting as module parameter. base_mac is required for generation default port's mac. Vadym Kochan (6): net: marvell: prestera: Add driver for Pr

pull: mrvl: add firmware for Prestera ASIC devices

2020-05-28 Thread Vadym Kochan
-firmware.git mrvl-prestera for you to fetch changes up to 561100014bb60b17c070aaa5449ee9970afa6620: mrvl: add firmware for Prestera ASIC devices (2020-05-28 14:07:49 +0300) Vadym Kochan (1): mrvl: add firmware for Prestera ASIC

[PATCH 2/2] nvmem: add ONIE NVMEM cells support

2020-05-27 Thread Vadym Kochan
registers ONIE TLV attributes as NVMEM cells which can be accessed by other platform driver. Also it allows to use of_get_mac_address() to retrieve mac address for the netdev. Signed-off-by: Vadym Kochan --- drivers/nvmem/Kconfig | 9 + drivers/nvmem/Makefile | 3 + drivers/nvmem/onie

[PATCH 0/2] nvmem: add ONIE NVMEM cells provider

2020-05-27 Thread Vadym Kochan
logic because current logic only allows to add additional cells only before nvmem device registration. Vadym Kochan (2): nvmem: core: allow to register cells for existing device nvmem: add ONIE NVMEM cells support drivers/nvmem/Kconfig | 9 ++ drivers/nvmem/Makefile | 3

[PATCH 1/2] nvmem: core: allow to register cells for existing device

2020-05-27 Thread Vadym Kochan
Current implementation does not allow to register nvmem cells for existing device and requires that this will be done before device is registered. But there might a driver which provides only cells info which needs to be added for already registered nvmem device. Signed-off-by: Vadym Kochan

Re: [net-next RFC v3 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-05-26 Thread Vadym Kochan
Thanks Jakub! I fixed these locally, should I wait a bit for other comments before sending next version ? On Tue, May 26, 2020 at 11:35:12AM -0700, Jakub Kicinski wrote: > On Tue, 26 May 2020 20:12:56 +0300 Vadym Kochan wrote: > > Marvell Prestera 98DX326x integrates up to 24 port

[net-next RFC v3 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-05-26 Thread Vadym Kochan
vka Signed-off-by: Oleksandr Mazur Signed-off-by: Serhiy Boiko Signed-off-by: Serhiy Pshyk Signed-off-by: Taras Chornyi Signed-off-by: Volodymyr Mytnyk Signed-off-by: Vadym Kochan --- drivers/net/ethernet/marvell/Kconfig | 1 + drivers/net/ethernet/marvell/Makefile |

[net-next RFC v3 2/6] net: marvell: prestera: Add PCI interface support

2020-05-26 Thread Vadym Kochan
ABI is not changed. Firmware image file name contains only MAJOR and MINOR numbers to make driver be compatible with any PATCH version. Signed-off-by: Oleksandr Mazur Signed-off-by: Vadym Kochan --- drivers/net/ethernet/marvell/prestera/Kconfig | 11 + .../net/ethernet/marvell/prestera/Makefile|

[net-next RFC v3 3/6] net: marvell: prestera: Add basic devlink support

2020-05-26 Thread Vadym Kochan
Add very basic support for devlink interface: - driver name - fw version - devlink ports Signed-off-by: Vadym Kochan --- drivers/net/ethernet/marvell/prestera/Kconfig | 1 + .../net/ethernet/marvell/prestera/Makefile| 2 +- .../net/ethernet/marvell/prestera/prestera.h

[net-next RFC v3 5/6] net: marvell: prestera: Add Switchdev driver implementation

2020-05-26 Thread Vadym Kochan
timeout parameter is set globally per device Signed-off-by: Serhiy Boiko Signed-off-by: Serhiy Pshyk Signed-off-by: Taras Chornyi Signed-off-by: Vadym Kochan --- .../net/ethernet/marvell/prestera/Makefile|3 +- .../net/ethernet/marvell/prestera/prestera.h | 33 +- .../ethernet/marvell

[net-next RFC v3 4/6] net: marvell: prestera: Add ethtool interface support

2020-05-26 Thread Vadym Kochan
autoneg on - forward error correction feature is supported only on SFP ports, 10G speed - auto-negotiation and MDI-x features are not supported on Copper-to-Fiber SFP module Signed-off-by: Andrii Savka Signed-off-by: Serhiy Boiko Signed-off-by: Vadym Kochan --- .../net

[net-next RFC v3 6/6] dt-bindings: marvell,prestera: Add description for device-tree bindings

2020-05-26 Thread Vadym Kochan
Add brief description how to configure base mac address binding in device-tree. Describe requirement for the PCI port which is connected to the ASIC, to allow access to the firmware related registers. Signed-off-by: Vadym Kochan --- .../bindings/net/marvell,prestera.txt | 34

[net-next RFC v3 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-05-26 Thread Vadym Kochan
h may confuse. - use refcount_t 9) Get rid of macro usage for sending fw requests in prestera_hw.c 10) Add base_mac setting as module parameter. base_mac is required for generation default port's mac. Vadym Kochan (6): net: marvell: prestera: Add driver for Prestera family ASIC

Re: [RFC net-next 1/3] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX325x (AC3x)

2020-05-04 Thread Vadym Kochan
Hi Ido, On Sat, May 02, 2020 at 06:20:49PM +0300, Vadym Kochan wrote: > Hi Ido, > > On Thu, Mar 05, 2020 at 04:49:37PM +0200, Ido Schimmel wrote: > > On Tue, Feb 25, 2020 at 04:30:54PM +0000, Vadym Kochan wrote: > > > +int mvsw_pr_port_learning_set(struct mvsw_p

Re: [RFC net-next 1/3] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX325x (AC3x)

2020-05-02 Thread Vadym Kochan
Hi Ido, On Thu, Mar 05, 2020 at 04:49:37PM +0200, Ido Schimmel wrote: > On Tue, Feb 25, 2020 at 04:30:54PM +0000, Vadym Kochan wrote: > > +int mvsw_pr_port_learning_set(struct mvsw_pr_port *port, bool learn) > > +{ > > + return mvsw_pr_hw_port_learning_set(port, learn);

<    1   2