linux-stable/drivers/net/dsa/microchip
Christophe JAILLET 3d2f8f1f18 net: dsa: microchip: ksz8795: Correctly handle huge frame configuration
Because of the logic in place, SW_HUGE_PACKET can never be set.
(If the first condition is true, then the 2nd one is also true, but is not
executed)

Change the logic and update each bit individually.

Fixes: 29d1e85f45 ("net: dsa: microchip: ksz8: add MTU configuration support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/43107d9e8b5b8b05f0cbd4e1f47a2bb88c8747b2.1681755535.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-04-19 11:28:49 -07:00
..
Kconfig net: dsa: microchip: ptp: fix up PTP dependency 2023-01-31 13:21:38 +01:00
ksz8.h net: dsa: microchip: ksz8: add MTU configuration support 2022-12-07 11:57:58 +01:00
ksz8795.c net: dsa: microchip: ksz8795: Correctly handle huge frame configuration 2023-04-19 11:28:49 -07:00
ksz8795_reg.h net: dsa: microchip: ksz8: add MTU configuration support 2022-12-07 11:57:58 +01:00
ksz8863_smi.c net: dsa: microchip: ksz8863_smi: fix bulk access 2023-03-25 11:17:32 +00:00
ksz9477.c net: dsa: microchip: add support for credit based shaper 2023-01-23 22:12:35 -08:00
ksz9477.h net: dsa: microchip: add support for credit based shaper 2023-01-23 22:12:35 -08:00
ksz9477_i2c.c net: dsa: microchip: fix probe of I2C-connected KSZ8563 2023-01-23 21:40:54 -08:00
ksz9477_reg.h net: dsa: microchip: add support for credit based shaper 2023-01-23 22:12:35 -08:00
ksz_common.c net: dsa: microchip: ksz8: fix MDB configuration with non-zero VID 2023-03-25 11:17:32 +00:00
ksz_common.h net: dsa: microchip: add support for credit based shaper 2023-01-23 22:12:35 -08:00
ksz_ptp.c net: dsa: microchip: ptp: Fix error code in ksz_hwtstamp_set() 2023-01-19 18:57:16 -08:00
ksz_ptp.h net: dsa: microchip: ptp: add support for perout programmable pins 2023-01-13 08:40:41 +00:00
ksz_ptp_reg.h net: dsa: microchip: ptp: lan937x: Enable periodic output in LED pins 2023-01-13 08:40:41 +00:00
ksz_spi.c net: dsa: microchip: add dev_err_probe in probe functions 2022-11-09 13:06:01 +00:00
lan937x.h net: dsa: microchip: add support for credit based shaper 2023-01-23 22:12:35 -08:00
lan937x_main.c net: dsa: microchip: add support for credit based shaper 2023-01-23 22:12:35 -08:00
lan937x_reg.h net: dsa: microchip: add support for credit based shaper 2023-01-23 22:12:35 -08:00
Makefile net: dsa: microchip: ptp: add the posix clock support 2023-01-13 08:40:40 +00:00