Re: [PATCH wpan-next v3 11/11] ieee802154: Give the user the association list

2023-09-19 Thread Miquel Raynal
Hello, >net/ieee802154/nl802154.c: In function 'nl802154_list_associations': > >> net/ieee802154/nl802154.c:1778:15: error: implicit declaration of function > >> 'nl802154_prepare_wpan_dev_dump' [-Werror=implicit-function-declaration] > 1778 | err = nl802154_prepare_wpan_dev_dum

Re: [PATCH wpan-next v2 02/11] ieee802154: Internal PAN management

2023-09-19 Thread Miquel Raynal
Hi Alexander, aahri...@redhat.com wrote on Mon, 18 Sep 2023 19:01:14 -0400: > Hi, > > On Mon, Sep 18, 2023 at 10:15 AM Miquel Raynal > wrote: > > > > Hi Alexander, > > > > > > > > > > > +// SPDX-License-Identifier: GPL-2.0 > &g

[PATCH wpan-next v3 09/11] mac802154: Follow the number of associated devices

2023-09-18 Thread Miquel Raynal
maximum number of associations, which will lead to an access denied error status returned to the peers trying to associate. Signed-off-by: Miquel Raynal --- include/net/cfg802154.h | 1 + net/ieee802154/core.c | 2 ++ net/mac802154/cfg.c | 1 + net/mac802154/scan.c| 33

Re: [PATCH wpan-next v2 02/11] ieee802154: Internal PAN management

2023-09-18 Thread Miquel Raynal
Hi Alexander, > > > > > +// SPDX-License-Identifier: GPL-2.0 > > > > > +/* > > > > > + * IEEE 802.15.4 PAN management > > > > > + * > > > > > + * Copyright (C) 2021 Qorvo US, Inc > > &g

[PATCH wpan-next v3 06/11] mac802154: Handle disassociations

2023-09-18 Thread Miquel Raynal
itself disassociated anyway. Signed-off-by: Miquel Raynal --- net/ieee802154/pan.c | 2 + net/mac802154/cfg.c | 100 +++ net/mac802154/ieee802154_i.h | 4 ++ net/mac802154/scan.c | 60 + 4 files changed, 166 insertions

[PATCH wpan-next v3 07/11] mac802154: Handle association requests from peers

2023-09-18 Thread Miquel Raynal
the short address allocated for the peer and expecting it to be ack'ed. If anything fails during this procedure, the peer is considered not associated. Signed-off-by: Miquel Raynal --- include/net/cfg802154.h | 7 ++ include/net/ieee802154_netdev.h | 6 ++ net/ieee802154/c

[PATCH wpan-next v3 02/11] ieee802154: Internal PAN management

2023-09-18 Thread Miquel Raynal
Introduce structures to describe peer devices in a PAN as well as a few related helpers. We basically care about: - Our unique parent after associating with a coordinator. - Peer devices, children, which successfully associated with us. Signed-off-by: Miquel Raynal --- include/net/cfg802154.h

[PATCH wpan-next v3 08/11] ieee802154: Add support for limiting the number of associated devices

2023-09-18 Thread Miquel Raynal
epted or not. Signed-off-by: Miquel Raynal --- include/net/cfg802154.h | 8 include/net/nl802154.h| 2 ++ net/ieee802154/core.c | 1 + net/ieee802154/nl802154.c | 28 net/ieee802154/pan.c | 8 5 files changed, 47 insertions(+)

[PATCH wpan-next v3 01/11] ieee802154: Let PAN IDs be reset

2023-09-18 Thread Miquel Raynal
Soon association and disassociation will be implemented, which will require to be able to either change the PAN ID from 0x to a real value when association succeeded, or to reset the PAN ID to 0x upon disassociation. Let's allow to do that manually for now. Signed-off-by: Miquel R

[PATCH wpan-next v3 00/11] ieee802154: Associations between devices

2023-09-18 Thread Miquel Raynal
en allocating a child short address: it must be different than ours. * Rebased on top of v6.5. Miquel Raynal (11): ieee802154: Let PAN IDs be reset ieee802154: Internal PAN management ieee802154: Add support for user association requests mac802154: Handle associating ieee802154: Add s

[PATCH wpan-next v3 03/11] ieee802154: Add support for user association requests

2023-09-18 Thread Miquel Raynal
Users may decide to associate with a peer, which becomes our parent coordinator. Let's add the necessary netlink support for this. Signed-off-by: Miquel Raynal --- include/net/cfg802154.h | 4 +++ include/net/ieee802154_netdev.h | 38 + include/net/nl8

[PATCH wpan-next v3 11/11] ieee802154: Give the user the association list

2023-09-18 Thread Miquel Raynal
Upon request, we must be able to provide to the user the list of associations currently in place. Let's add a new netlink command and attribute for this purpose. Signed-off-by: Miquel Raynal --- include/net/nl802154.h| 18 ++- net/ieee802154/nl802154.c

[PATCH wpan-next v3 05/11] ieee802154: Add support for user disassociation requests

2023-09-18 Thread Miquel Raynal
A device may decide at some point to disassociate from a PAN, let's introduce a netlink command for this purpose. Signed-off-by: Miquel Raynal --- include/net/cfg802154.h | 3 +++ include/net/ieee802154_netdev.h | 11 + include/net/nl802154.h | 1 + net/ieee8

[PATCH wpan-next v3 10/11] mac802154: Handle disassociation notifications from peers

2023-09-18 Thread Miquel Raynal
tures. Signed-off-by: Miquel Raynal --- net/mac802154/ieee802154_i.h | 2 ++ net/mac802154/rx.c | 8 ++ net/mac802154/scan.c | 52 3 files changed, 62 insertions(+) diff --git a/net/mac802154/ieee802154_i.h b/net/mac802154/ieee802154_i.h

[PATCH wpan-next v3 04/11] mac802154: Handle associating

2023-09-18 Thread Miquel Raynal
association response contains the association status, eventually a reason if the association was unsuccessful, and finally a short address that we should use for intra-PAN communication from now on, if we required one (which is the default, and not yet configurable). Signed-off-by: Miquel Raynal

Re: [PATCH wpan-next v3 00/11] ieee802154: Associations between devices

2023-09-18 Thread Miquel Raynal
th a coordinator: for now only the extended address of the > coordinator is relevant so this is the only address we care about. > * Drop a useless NULL check before a kfree() call. > * Add a check when allocating a child short address: it must be > different than ours. > * Rebased on

Re: [PATCH wpan-next v2 02/11] ieee802154: Internal PAN management

2023-09-18 Thread Miquel Raynal
Hello, aahri...@redhat.com wrote on Sun, 17 Sep 2023 07:50:55 -0400: > Hi, > > On Sat, Sep 16, 2023 at 11:39 AM Stefan Schmidt > wrote: > > > > Hello Miquel. > > > > On 01.09.23 19:04, Miquel Raynal wrote: > > > Introduce structures to de

Re: [PATCH wpan-next v2 07/11] mac802154: Handle association requests from peers

2023-09-18 Thread Miquel Raynal
Hi Stefan, > > +static int > > +mac802154_send_association_resp_locked(struct ieee802154_sub_if_data > > *sdata, > > + struct ieee802154_pan_device *target, > > + struct ieee802154_assoc_resp_pl > > *assoc_resp_pl) > > +{ > > +

Re: [PATCH wpan-next v2 11/11] ieee802154: Give the user the association list

2023-09-18 Thread Miquel Raynal
Hi Stefan, ste...@datenfreihafen.org wrote on Sat, 16 Sep 2023 17:36:41 +0200: > Hello Miquel. > > On 01.09.23 19:05, Miquel Raynal wrote: > > Upon request, we must be able to provide to the user the list of > > associations currently in place. Let's add a new netlink

Re: [PATCH 06/10] mtd: Remove drivers used by TX49xx

2021-01-05 Thread Miquel Raynal
Hi Thomas, Thomas Bogendoerfer wrote on Tue, 5 Jan 2021 15:02:51 +0100: > CPU support for TX49xx is getting removed, so remove MTD support for it. > > Signed-off-by: Thomas Bogendoerfer If the removal happens, you may take this patch through the mips tree. Acked-by: Miquel Ray

Re: [trivial PATCH] treewide: Convert switch/case fallthrough; to break;

2020-09-15 Thread Miquel Raynal
Hi Joe, For MTD: > drivers/mtd/nand/raw/nandsim.c| 2 +- Reviewed-by: Miquel Raynal Thanks, Miquèl

Re: [PATCH net-next v3] net: dsa: mv88e6xxx: Prevent suspend to RAM

2019-02-05 Thread Miquel Raynal
Hi Vivien, Vivien Didelot wrote on Tue, 5 Feb 2019 11:28:57 -0500: > Hi Miquel, > > On Tue, 5 Feb 2019 12:07:28 +0100, Miquel Raynal > wrote: > > > +/* There is no suspend to RAM support at DSA level yet, the switch > > configuration > > + * would be lost

[PATCH net-next v3] net: dsa: mv88e6xxx: Prevent suspend to RAM

2019-02-05 Thread Miquel Raynal
to recover reliably the switch configuration. To avoid the kernel to freeze when suspending with a switch driven by the mv88e6xxx driver, we choose to prevent the driver suspension and in the same way, the whole platform. Signed-off-by: Miquel Raynal --- Changes since v1/v2

Re: [PATCH net-next v2 1/2] net: dsa: mv88e6xxx: Save switch rules

2019-02-01 Thread Miquel Raynal
Hi Andrew, Andrew Lunn wrote on Fri, 1 Feb 2019 15:08:31 +0100: > On Fri, Feb 01, 2019 at 12:01:19PM +0100, Miquel Raynal wrote: > > Hi Vivien, > > > > Vivien Didelot wrote on Wed, 30 Jan 2019 > > 19:46:08 -0500: > > > > > Hi Miquèl, > > >

Re: [PATCH net-next v2 1/2] net: dsa: mv88e6xxx: Save switch rules

2019-02-01 Thread Miquel Raynal
Hi Vivien, Vivien Didelot wrote on Wed, 30 Jan 2019 19:46:08 -0500: > Hi Miquèl, > > On Wed, 30 Jan 2019 10:46:06 +0100, Miquel Raynal > wrote: > > > > > > Today, there is no S2RAM support for switches. First, I proposed to > > > > > add > &

Re: [PATCH net-next v2 1/2] net: dsa: mv88e6xxx: Save switch rules

2019-01-30 Thread Miquel Raynal
Hi Vivien & Andrew, Vivien Didelot wrote on Tue, 29 Jan 2019 10:46:13 -0500: > Hi Miquèl, > > On Tue, 29 Jan 2019 15:51:57 +0100, Andrew Lunn wrote: > > > > Today, there is no S2RAM support for switches. First, I proposed to add > > > suspend/resume callbacks to the mv88e6xxx driver - just en

Re: [PATCH net-next v2 1/2] net: dsa: mv88e6xxx: Save switch rules

2019-01-29 Thread Miquel Raynal
Hi Andrew, Andrew Lunn wrote on Mon, 28 Jan 2019 18:42:46 +0100: > On Mon, Jan 28, 2019 at 04:57:49PM +0100, Miquel Raynal wrote: > > Hi Andrew, > > > > Thanks for helping! > > > > Andrew Lunn wrote on Mon, 28 Jan 2019 15:44:17 +0100: > > &g

Re: [PATCH net-next v2 1/2] net: dsa: mv88e6xxx: Save switch rules

2019-01-28 Thread Miquel Raynal
Hi Andrew, Thanks for helping! Andrew Lunn wrote on Mon, 28 Jan 2019 15:44:17 +0100: > > I don't see where VLAN and bridge information are cached, can you point > > me to the relevant locations? > > Miquèl > > The bridge should have all that information. You need to ask it to > enumerate th

Re: [PATCH net-next v2 1/2] net: dsa: mv88e6xxx: Save switch rules

2019-01-28 Thread Miquel Raynal
Hi Florian, Florian Fainelli wrote on Fri, 25 Jan 2019 10:37:38 -0800: > Hi Miquel, > > On 1/25/19 1:55 AM, Miquel Raynal wrote: > > The user might apply a specific switch configuration, with specific > > forwarding rules, VLAN, bridges, etc. > > > > Durin

[PATCH net-next v2 0/2] mv88e6xxx DSA suspend to RAM support

2019-01-25 Thread Miquel Raynal
correctly, please let me know if you spot anything else that is missing. Thanks, Miquèl Miquel Raynal (2): net: dsa: mv88e6xxx: Save switch rules net: dsa: mv88e6xxx: Add suspend to RAM support drivers/net/dsa/mv88e6xxx/chip.c | 359 --- drivers/net/dsa/mv88e6xxx

[PATCH net-next v2 1/2] net: dsa: mv88e6xxx: Save switch rules

2019-01-25 Thread Miquel Raynal
) To avoid recursion problems when replaying the rules, the content of the above *_add()/*_join() callbacks has been moved in separate helpers with a '_' prefix. Hence, each callback just calls the corresponding helper and the corresponding *_add_xxx_rule(). Signed-off-by: Miquel Rayna

[PATCH net-next v2 2/2] net: dsa: mv88e6xxx: Add suspend to RAM support

2019-01-25 Thread Miquel Raynal
Bring S2RAM support to the mv88e6xxx DSA driver. The content of the *_irq_poll() helper is moved in *_do_irq_poll() so that that the function can be called from the ->resume() callback without using the *work pointer. Signed-off-by: Miquel Raynal --- Changes since v1: = * Ad

Re: [PATCH net-next] net: dsa: mv88e6xxx: Add suspend/resume callbacks

2019-01-22 Thread Miquel Raynal
Hi Andrew, Andrew Lunn wrote on Tue, 22 Jan 2019 14:20:05 +0100: > > I am not sure to understand what is lost. On my setup ethtool shows > > that everything is fine after resume but maybe I fall into a "default" > > working case. > > Hi Miquèl > > Is the power removed from the switch? If so,

Re: [PATCH net-next] net: dsa: mv88e6xxx: Add suspend/resume callbacks

2019-01-22 Thread Miquel Raynal
Hi Florian, Florian Fainelli wrote on Thu, 17 Jan 2019 10:00:46 -0800: > On 1/17/19 7:50 AM, Miquel Raynal wrote: > > Hi Andrew, Vivien, > > > > Vivien Didelot wrote on Thu, 17 Jan 2019 > > 10:46:41 -0500: > > > >> Hi, > >> > >

Re: [PATCH net-next] net: dsa: mv88e6xxx: Add suspend/resume callbacks

2019-01-17 Thread Miquel Raynal
Hi Andrew, Vivien, Vivien Didelot wrote on Thu, 17 Jan 2019 10:46:41 -0500: > Hi, > > On Wed, 16 Jan 2019 23:23:29 +0100, Andrew Lunn wrote: > > Hi Florian > > > > > A possible approach could be to call the port_disable, port_enable > > > callbacks from dsa_slave_suspend() and dsa_slave_res

[PATCH net-next] net: dsa: mv88e6xxx: Add suspend/resume callbacks

2019-01-16 Thread Miquel Raynal
Bring S2RAM support to the mv88e6xxx DSA driver. The content of the *_irq_poll() helper is moved in *_do_irq_poll() so that that the function can be called from the ->resume() callback without using the *work pointer. Signed-off-by: Miquel Raynal --- drivers/net/dsa/mv88e6xxx/chip.c |

Re: [PATCH v2 05/13] mtd: rawnand: marvell: remove the dmaengine compat need

2018-05-24 Thread Miquel Raynal
he dma resource acquisition, using the more > generic function dma_request_slave_channel(). > > Signed-off-by: Signed-off-by: Daniel Mack > Signed-off-by: Robert Jarzmik > --- > drivers/mtd/nand/raw/marvell_nand.c | 17 + > 1 file changed, 1 insertion(+),

Re: [PATCH 5/5] mtd: Stop updating erase_info->state and calling mtd_erase_callback()

2018-02-13 Thread Miquel Raynal
Hi Boris, On Tue, 13 Feb 2018 09:17:14 +0100, Boris Brezillon wrote: > On Tue, 13 Feb 2018 08:42:46 +0100 > Miquel Raynal wrote: > > > Hi Boris, > > > > Just a few comments about the form. > > > > Otherwise: > > Reviewed-by: Miquel Raynal >

Re: [PATCH 5/5] mtd: Stop updating erase_info->state and calling mtd_erase_callback()

2018-02-12 Thread Miquel Raynal
Hi Boris, Just a few comments about the form. Otherwise: Reviewed-by: Miquel Raynal > diff --git a/drivers/mtd/devices/lart.c b/drivers/mtd/devices/lart.c > index 555b94406e0b..3d6c8ffd351f 100644 > --- a/drivers/mtd/devices/lart.c > +++ b/drivers/mtd/devices/lart.c > @

[PATCH net-next] net: mvpp2: fix GOP statistics loop start and stop conditions

2017-11-08 Thread Miquel Raynal
stoping it when the port is up or down will be fine, while minimizing unnecessary CPU usage. Fixes: 118d6298f6f0 ("net: mvpp2: add ethtool GOP statistics") Reported-by: Stefan Chulski Signed-off-by: Miquel Raynal --- Hi David, This is the required fix for 118d6298f6f0 ("net: mvpp2:

Re: [PATCH net-next v3] net: mvpp2: add ethtool GOP statistics

2017-11-07 Thread Miquel RAYNAL
Hi David, > > On Wed, Nov 08, 2017 at 01:54:56PM +0900, David Miller wrote: > >> From: Miquel Raynal > >> Date: Mon, 6 Nov 2017 22:56:53 +0100 > >> > >> > Add ethtool statistics support by reading the GOP statistics > >> > from th

[PATCH net-next v4] net: mvpp2: add ethtool GOP statistics

2017-11-07 Thread Miquel Raynal
Add ethtool statistics support by reading the GOP statistics from the hardware counters. Also implement a workqueue to gather the statistics every second or some 32-bit counters could overflow. Suggested-by: Stefan Chulski Signed-off-by: Miquel Raynal Reviewed-by: Andrew Lunn --- Hi, Stefan

Re: [PATCH net-next v2] net: mvpp2: add ethtool GOP statistics

2017-11-06 Thread Miquel RAYNAL
Hi Stefan, +David Miller/Net ML > > @@ -6844,6 +7023,10 @@ static int mvpp2_open(struct net_device > > *dev) > > > > mvpp2_start_dev(port); > > > > + /* Start hardware statistics gathering */ > > + queue_delayed_work(priv->stats_queue, &priv->stats_work, > > + MVPP2

[PATCH net-next v3] net: mvpp2: add ethtool GOP statistics

2017-11-06 Thread Miquel Raynal
Add ethtool statistics support by reading the GOP statistics from the hardware counters. Also implement a workqueue to gather the statistics every second or some 32-bit counters could overflow. Suggested-by: Stefan Chulski Signed-off-by: Miquel Raynal --- Changes since v2: - Use netdev_name

Re: [PATCH net-next v2] net: mvpp2: add ethtool GOP statistics

2017-11-06 Thread Miquel RAYNAL
Hi Andrew, > > Here I do have a problem: I choose the IDA solution because it was > > quite straightforward but I agree it would be better to use an > > unique name. Unfortunately, on the Armada-8040-DB that instantiate > > this driver twice, the node name is not unique. There are two CP > > (mast

Re: [PATCH net-next v2] net: mvpp2: add ethtool GOP statistics

2017-11-06 Thread Miquel RAYNAL
Hi Andrew, On Fri, 3 Nov 2017 16:19:06 +0100 Andrew Lunn wrote: > > @@ -817,6 +856,12 @@ struct mvpp2 { > > > > /* Maximum number of RXQs per port */ > > unsigned int max_port_rxqs; > > + > > + /* Workqueue to gather hardware statistics with its lock */ > > + struct mutex gather_st

Re: [PATCH net-next v2] net: mvpp2: add ethtool GOP statistics

2017-11-03 Thread Miquel RAYNAL
On Fri, 3 Nov 2017 12:04:25 +0100 Miquel Raynal wrote: > Add ethtool statistics support by reading the GOP statistics from the > hardware counters. Also implement a workqueue to gather the statistics > every second or some 32-bit counters could overflow. > > Suggested-by:

[PATCH net-next v2] net: mvpp2: add ethtool GOP statistics

2017-11-03 Thread Miquel Raynal
Add ethtool statistics support by reading the GOP statistics from the hardware counters. Also implement a workqueue to gather the statistics every second or some 32-bit counters could overflow. Suggested-by: Stefan Chulski Signed-off-by: Miquel Raynal --- drivers/net/ethernet/marvell/mvpp2.c

Re: [PATCH] net: mvpp2: add ethtool GOP statistics

2017-11-03 Thread Miquel RAYNAL
Hi Florian, > > +static u64 mvpp2_read_count(struct mvpp2_port *port, unsigned int > > offset) +{ > > + bool reg_is_64b = > > + (offset == MVPP2_MIB_GOOD_OCTETS_RCVD_LOW) || > > + (offset == MVPP2_MIB_GOOD_OCTETS_SENT_LOW); > > This does not scale very well, put that in yo

Re: [PATCH] net: mvpp2: add ethtool GOP statistics

2017-11-03 Thread Miquel RAYNAL
Hi Andrew, Thanks for the review, I forgot to mention this is for net-next, I'll fix the subject line when sending the v2. > > +static struct mvpp2_ethtool_statistics mvpp2_ethtool_stats[] = { > > This can probably be const, and save a few bytes of RAM. Absolutely. > > > + { MVPP2_MIB_GOO

[PATCH] net: mvpp2: add ethtool GOP statistics

2017-11-02 Thread Miquel Raynal
Add ethtool statistics support by reading the GOP statistics from the hardware counters. Also implement a workqueue to gather the statistics every second or some 32-bit counters could overflow. Suggested-by: Stefan Chulski Signed-off-by: Miquel Raynal --- drivers/net/ethernet/marvell/mvpp2.c