[PATCH] ltq-vdsl/ltq-adsl: fix elapsed time calculation

2022-04-25 Thread Jan Hoffmann
The driver maintains elapsed times by repeatedly accumulating the time since the previous update in a loop. For the elapsed showtime time, the time difference is truncated to seconds before adding it, leading to a sizable error over time. Move the truncation to before calculation of the time diffe

[PATCH] ltq-atm/ltq-ptm: avoid unnecessary build dependencies

2022-04-25 Thread Jan Hoffmann
Right now, both ltq-adsl-mei and ltq-vdsl-mei are always built, even when they aren't necessary for the selected variant. This can cause the build to fail, for example ltq-vdsl-mei doesn't build successfully here on xway target due to the vectoring callback. Make these dependencies conditional on

Re: [PATCH] realtek: Trap all frames with switch as destination to CPU-port

2022-04-25 Thread Sander Vanheule
Hi Birger, On Sun, 2022-04-24 at 20:37 +0200, Birger Koblitz wrote: > This fixes a bug where frames sent to the switch itself were > flooded to all ports unless the MAC address of the CPU-port > was learned otherwise. > > Tested-by: Wenli Looi > Tested-by: Bjørn Mork > Signed-off-by: Birger Kob