[PATCH] i2c-mux-pca954x: use OF match table

2023-12-21 Thread Alvin Šipraga
From: Alvin Šipraga Allow the mux driver to match against device tree compatible strings. Signed-off-by: Alvin Šipraga --- drivers/i2c/muxes/i2c-mux-pca954x.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c

[PATCH 1/4] net: fec_imx: reverse registration order of mdiobus and edev

2023-12-21 Thread Alvin Šipraga
From: Alvin Šipraga This is necessary so that on systems with MDIO-connected Etheret switches, DSA can find the master edev during switch registration. Otherwise the switch setup will fail. Signed-off-by: Alvin Šipraga --- drivers/net/fec_imx.c | 10 +- 1 file changed, 5

[PATCH 0/4] fix barebox support for MDIO-connected Realtek Ethernet switches

2023-12-21 Thread Alvin Šipraga
While bringing up a new board with an MDIO-connected RTL8365MB, I had to make some changes to barebox to get network boot to work. This small series addresses all of the problems I encountered along the way. Signed-off-by: Alvin Šipraga --- Alvin Šipraga (4): net: fec_imx: reverse

[PATCH 4/4] net: mdio_bus: associate OF nodes with their devices

2023-12-21 Thread Alvin Šipraga
From: Alvin Šipraga barebox deep-probe will walk the device tree to ensure dependent devices have been probed. In so doing, it uses the device_node::dev pointer to check whether a given node has a device; if not, a device is created on demand. The behaviour is recursive, so parent nodes without

[PATCH 3/4] net: dsa: realtek: unify ds_ops

2023-12-21 Thread Alvin Šipraga
From: Alvin Šipraga Now that neither interface driver requires .phy_read or .phy_write, the ops are the same and some code can be deleted. No functional change. Signed-off-by: Alvin Šipraga --- drivers/net/realtek-dsa/realtek-mdio.c | 2 +- drivers/net/realtek-dsa/realtek-smi.c | 2 +-

[PATCH 2/4] net: dsa: realtek: fix support for MDIO-connected switches

2023-12-21 Thread Alvin Šipraga
From: Alvin Šipraga DSA offers drivers the option to have the core register an MDIO bus, intended for platforms which do not have a specific OF node for the MDIO bus or corresponding phy-handle properties on the switch port nodes. This logic works OK, but is incidentally broken in barebox

Re: [PATCH v2] nvmem: regmap: Fix nvmem size

2023-12-21 Thread Ahmad Fatoum
On 20.12.23 13:38, Robin van der Gracht wrote: > Hi Ahmad, > > On 2023-12-20 10:00, Ahmad Fatoum wrote: >> Hello Robin, >> >> Thanks for the fix. >> >> On 20.12.23 09:29, Robin van der Gracht wrote: >>> -    if (roffset + rbytes > stride * regmap_get_max_register(map)) >>> +    if (roffset +