Yang Yingliang
d1ce245fe4
phy: Sparx5 Eth SerDes: check return value after calling platform_get_resource()
...
It will cause null-ptr-deref if platform_get_resource() returns NULL,
we need check the return value.
Signed-off-by: Yang Yingliang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2021-06-03 11:18:19 +05:30
kernel test robot
cbc336c09b
phy: fix resource_size.cocci warnings
...
drivers/phy/microchip/sparx5_serdes.c:2440:54-57: ERROR: Missing resource_size with iores
Use resource_size function on resource object
instead of explicit computation.
Generated by: scripts/coccinelle/api/resource_size.cocci
Fixes: 2ff8a1eeb5 ("phy: Add Sparx5 ethernet serdes PHY driver")
CC: Steen Hegelund <[email protected] >
Reported-by: kernel test robot <[email protected] >
Signed-off-by: kernel test robot <[email protected] >
Link: https://lore.kernel.org/r/20210318232844.GA65886@63b0c5462fda
Signed-off-by: Vinod Koul <[email protected] >
2021-04-06 10:39:20 +05:30
Steen Hegelund
8595ffb52f
phy: Sparx5 Eth SerDes: Use direct register operations
...
Use direct register operations instead of a table of register
information to lower the stack usage.
Signed-off-by: Steen Hegelund <[email protected] >
Reported-by: kernel test robot <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2021-04-06 10:37:57 +05:30
Geert Uytterhoeven
a113ef0a5e
phy: microchip: PHY_SPARX5_SERDES should depend on ARCH_SPARX5
...
The Microchip Sparx5 SerDes PHY is present only Microchip Sparx5 SoCs.
Hence add a dependency on ARCH_SPARX5, to prevent asking the user about
this driver when configuring a kernel without support for Sparx5 SoCs.
Fixes: 2ff8a1eeb5 ("phy: Add Sparx5 ethernet serdes PHY driver")
Signed-off-by: Geert Uytterhoeven <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2021-03-31 16:46:41 +05:30
Steen Hegelund
2ff8a1eeb5
phy: Add Sparx5 ethernet serdes PHY driver
...
Add the Microchip Sparx5 ethernet serdes PHY driver for the 6G, 10G and 25G
interfaces available in the Sparx5 SoC.
Signed-off-by: Bjarni Jonasson <[email protected] >
Signed-off-by: Steen Hegelund <[email protected] >
Reviewed-by: Andrew Lunn <[email protected] >
Reviewed-by: Alexandre Belloni <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2021-03-17 12:13:19 +05:30