* [PATCH net-next 0/4] net: phy: clean up phy.h
@ 2025-02-13 21:47 Heiner Kallweit
2025-02-13 21:48 ` [PATCH net-next 1/4] net: phy: remove fixup-related definitions from phy.h which are not used outside phylib Heiner Kallweit
` (4 more replies)
0 siblings, 5 replies; 16+ messages in thread
From: Heiner Kallweit @ 2025-02-13 21:47 UTC (permalink / raw)
To: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni,
Jakub Kicinski, David Miller, Eric Dumazet
Cc: netdev@vger.kernel.org
This series is a starting point to clean up phy.h and remove
definitions which are phylib-internal.
Heiner Kallweit (4):
net: phy: remove fixup-related definitions from phy.h which are not
used outside phylib
net: phy: stop exporting feature arrays which aren't used outside
phylib
net: phy: stop exporting phy_queue_state_machine
net: phy: remove helper phy_is_internal
drivers/net/phy/phy.c | 6 +++---
drivers/net/phy/phy_device.c | 40 ++++++++++++++++++------------------
include/linux/phy.h | 29 --------------------------
3 files changed, 23 insertions(+), 52 deletions(-)
--
2.48.1
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH net-next 1/4] net: phy: remove fixup-related definitions from phy.h which are not used outside phylib
2025-02-13 21:47 [PATCH net-next 0/4] net: phy: clean up phy.h Heiner Kallweit
@ 2025-02-13 21:48 ` Heiner Kallweit
2025-02-14 10:59 ` Mateusz Polchlopek
2025-02-14 14:51 ` Russell King (Oracle)
2025-02-13 21:49 ` [PATCH net-next 2/4] net: phy: stop exporting feature arrays which aren't " Heiner Kallweit
` (3 subsequent siblings)
4 siblings, 2 replies; 16+ messages in thread
From: Heiner Kallweit @ 2025-02-13 21:48 UTC (permalink / raw)
To: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni,
Jakub Kicinski, David Miller, Eric Dumazet
Cc: netdev@vger.kernel.org
Certain fixup-related definitions aren't used outside phy_device.c.
So make them private and remove them from phy.h.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/net/phy/phy_device.c | 16 +++++++++++++---
include/linux/phy.h | 14 --------------
2 files changed, 13 insertions(+), 17 deletions(-)
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
index 9b06ba92f..14c312ad2 100644
--- a/drivers/net/phy/phy_device.c
+++ b/drivers/net/phy/phy_device.c
@@ -45,6 +45,17 @@ MODULE_DESCRIPTION("PHY library");
MODULE_AUTHOR("Andy Fleming");
MODULE_LICENSE("GPL");
+#define PHY_ANY_ID "MATCH ANY PHY"
+#define PHY_ANY_UID 0xffffffff
+
+struct phy_fixup {
+ struct list_head list;
+ char bus_id[MII_BUS_ID_SIZE + 3];
+ u32 phy_uid;
+ u32 phy_uid_mask;
+ int (*run)(struct phy_device *phydev);
+};
+
__ETHTOOL_DECLARE_LINK_MODE_MASK(phy_basic_features) __ro_after_init;
EXPORT_SYMBOL_GPL(phy_basic_features);
@@ -378,8 +389,8 @@ static SIMPLE_DEV_PM_OPS(mdio_bus_phy_pm_ops, mdio_bus_phy_suspend,
* comparison
* @run: The actual code to be run when a matching PHY is found
*/
-int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask,
- int (*run)(struct phy_device *))
+static int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask,
+ int (*run)(struct phy_device *))
{
struct phy_fixup *fixup = kzalloc(sizeof(*fixup), GFP_KERNEL);
@@ -397,7 +408,6 @@ int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask,
return 0;
}
-EXPORT_SYMBOL(phy_register_fixup);
/* Registers a fixup to be run on any PHY with the UID in phy_uid */
int phy_register_fixup_for_uid(u32 phy_uid, u32 phy_uid_mask,
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 29df4c602..96e427c2c 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -1277,9 +1277,6 @@ struct phy_driver {
#define to_phy_driver(d) container_of_const(to_mdio_common_driver(d), \
struct phy_driver, mdiodrv)
-#define PHY_ANY_ID "MATCH ANY PHY"
-#define PHY_ANY_UID 0xffffffff
-
#define PHY_ID_MATCH_EXACT(id) .phy_id = (id), .phy_id_mask = GENMASK(31, 0)
#define PHY_ID_MATCH_MODEL(id) .phy_id = (id), .phy_id_mask = GENMASK(31, 4)
#define PHY_ID_MATCH_VENDOR(id) .phy_id = (id), .phy_id_mask = GENMASK(31, 10)
@@ -1312,15 +1309,6 @@ static inline bool phydev_id_compare(struct phy_device *phydev, u32 id)
return phy_id_compare(id, phydev->phy_id, phydev->drv->phy_id_mask);
}
-/* A Structure for boards to register fixups with the PHY Lib */
-struct phy_fixup {
- struct list_head list;
- char bus_id[MII_BUS_ID_SIZE + 3];
- u32 phy_uid;
- u32 phy_uid_mask;
- int (*run)(struct phy_device *phydev);
-};
-
const char *phy_speed_to_str(int speed);
const char *phy_duplex_to_str(unsigned int duplex);
const char *phy_rate_matching_to_str(int rate_matching);
@@ -2117,8 +2105,6 @@ s32 phy_get_internal_delay(struct phy_device *phydev, struct device *dev,
void phy_resolve_pause(unsigned long *local_adv, unsigned long *partner_adv,
bool *tx_pause, bool *rx_pause);
-int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask,
- int (*run)(struct phy_device *));
int phy_register_fixup_for_id(const char *bus_id,
int (*run)(struct phy_device *));
int phy_register_fixup_for_uid(u32 phy_uid, u32 phy_uid_mask,
--
2.48.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH net-next 2/4] net: phy: stop exporting feature arrays which aren't used outside phylib
2025-02-13 21:47 [PATCH net-next 0/4] net: phy: clean up phy.h Heiner Kallweit
2025-02-13 21:48 ` [PATCH net-next 1/4] net: phy: remove fixup-related definitions from phy.h which are not used outside phylib Heiner Kallweit
@ 2025-02-13 21:49 ` Heiner Kallweit
2025-02-14 11:10 ` Mateusz Polchlopek
2025-02-14 14:52 ` Russell King (Oracle)
2025-02-13 21:50 ` [PATCH net-next 3/4] net: phy: stop exporting phy_queue_state_machine Heiner Kallweit
` (2 subsequent siblings)
4 siblings, 2 replies; 16+ messages in thread
From: Heiner Kallweit @ 2025-02-13 21:49 UTC (permalink / raw)
To: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni,
Jakub Kicinski, David Miller, Eric Dumazet
Cc: netdev@vger.kernel.org
Stop exporting feature arrays which aren't used outside phylib.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/net/phy/phy_device.c | 22 ++++++----------------
include/linux/phy.h | 5 -----
2 files changed, 6 insertions(+), 21 deletions(-)
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
index 14c312ad2..1c10c774b 100644
--- a/drivers/net/phy/phy_device.c
+++ b/drivers/net/phy/phy_device.c
@@ -91,37 +91,28 @@ static const int phy_all_ports_features_array[7] = {
ETHTOOL_LINK_MODE_Backplane_BIT,
};
-const int phy_10_100_features_array[4] = {
+static const int phy_10_100_features_array[4] = {
ETHTOOL_LINK_MODE_10baseT_Half_BIT,
ETHTOOL_LINK_MODE_10baseT_Full_BIT,
ETHTOOL_LINK_MODE_100baseT_Half_BIT,
ETHTOOL_LINK_MODE_100baseT_Full_BIT,
};
-EXPORT_SYMBOL_GPL(phy_10_100_features_array);
-const int phy_basic_t1_features_array[3] = {
+static const int phy_basic_t1_features_array[3] = {
ETHTOOL_LINK_MODE_TP_BIT,
ETHTOOL_LINK_MODE_10baseT1L_Full_BIT,
ETHTOOL_LINK_MODE_100baseT1_Full_BIT,
};
-EXPORT_SYMBOL_GPL(phy_basic_t1_features_array);
-const int phy_basic_t1s_p2mp_features_array[2] = {
+static const int phy_basic_t1s_p2mp_features_array[2] = {
ETHTOOL_LINK_MODE_TP_BIT,
ETHTOOL_LINK_MODE_10baseT1S_P2MP_Half_BIT,
};
-EXPORT_SYMBOL_GPL(phy_basic_t1s_p2mp_features_array);
-const int phy_gbit_features_array[2] = {
+static const int phy_gbit_features_array[2] = {
ETHTOOL_LINK_MODE_1000baseT_Half_BIT,
ETHTOOL_LINK_MODE_1000baseT_Full_BIT,
};
-EXPORT_SYMBOL_GPL(phy_gbit_features_array);
-
-const int phy_10gbit_features_array[1] = {
- ETHTOOL_LINK_MODE_10000baseT_Full_BIT,
-};
-EXPORT_SYMBOL_GPL(phy_10gbit_features_array);
static const int phy_eee_cap1_features_array[] = {
ETHTOOL_LINK_MODE_100baseT_Full_BIT,
@@ -196,9 +187,8 @@ static void features_init(void)
linkmode_set_bit_array(phy_gbit_features_array,
ARRAY_SIZE(phy_gbit_features_array),
phy_10gbit_features);
- linkmode_set_bit_array(phy_10gbit_features_array,
- ARRAY_SIZE(phy_10gbit_features_array),
- phy_10gbit_features);
+ linkmode_set_bit(ETHTOOL_LINK_MODE_10000baseT_Full_BIT,
+ phy_10gbit_features);
linkmode_set_bit_array(phy_eee_cap1_features_array,
ARRAY_SIZE(phy_eee_cap1_features_array),
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 96e427c2c..33e2c2c93 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -54,11 +54,6 @@ extern __ETHTOOL_DECLARE_LINK_MODE_MASK(phy_eee_cap2_features) __ro_after_init;
#define PHY_EEE_CAP2_FEATURES ((unsigned long *)&phy_eee_cap2_features)
extern const int phy_basic_ports_array[3];
-extern const int phy_10_100_features_array[4];
-extern const int phy_basic_t1_features_array[3];
-extern const int phy_basic_t1s_p2mp_features_array[2];
-extern const int phy_gbit_features_array[2];
-extern const int phy_10gbit_features_array[1];
/*
* Set phydev->irq to PHY_POLL if interrupts are not supported,
--
2.48.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH net-next 3/4] net: phy: stop exporting phy_queue_state_machine
2025-02-13 21:47 [PATCH net-next 0/4] net: phy: clean up phy.h Heiner Kallweit
2025-02-13 21:48 ` [PATCH net-next 1/4] net: phy: remove fixup-related definitions from phy.h which are not used outside phylib Heiner Kallweit
2025-02-13 21:49 ` [PATCH net-next 2/4] net: phy: stop exporting feature arrays which aren't " Heiner Kallweit
@ 2025-02-13 21:50 ` Heiner Kallweit
2025-02-14 11:00 ` Mateusz Polchlopek
2025-02-14 14:53 ` Russell King (Oracle)
2025-02-13 21:51 ` [PATCH net-next 4/4] net: phy: remove helper phy_is_internal Heiner Kallweit
2025-02-15 1:20 ` [PATCH net-next 0/4] net: phy: clean up phy.h patchwork-bot+netdevbpf
4 siblings, 2 replies; 16+ messages in thread
From: Heiner Kallweit @ 2025-02-13 21:50 UTC (permalink / raw)
To: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni,
Jakub Kicinski, David Miller, Eric Dumazet
Cc: netdev@vger.kernel.org
phy_queue_state_machine() isn't used outside phy.c,
so stop exporting it.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/net/phy/phy.c | 4 ++--
include/linux/phy.h | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index d0c1718e2..8738ffb4c 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -520,12 +520,12 @@ int __phy_hwtstamp_set(struct phy_device *phydev,
* @phydev: the phy_device struct
* @jiffies: Run the state machine after these jiffies
*/
-void phy_queue_state_machine(struct phy_device *phydev, unsigned long jiffies)
+static void phy_queue_state_machine(struct phy_device *phydev,
+ unsigned long jiffies)
{
mod_delayed_work(system_power_efficient_wq, &phydev->state_queue,
jiffies);
}
-EXPORT_SYMBOL(phy_queue_state_machine);
/**
* phy_trigger_machine - Trigger the state machine to run now
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 33e2c2c93..bb7454364 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -2061,7 +2061,6 @@ int phy_drivers_register(struct phy_driver *new_driver, int n,
struct module *owner);
void phy_error(struct phy_device *phydev);
void phy_state_machine(struct work_struct *work);
-void phy_queue_state_machine(struct phy_device *phydev, unsigned long jiffies);
void phy_trigger_machine(struct phy_device *phydev);
void phy_mac_interrupt(struct phy_device *phydev);
void phy_start_machine(struct phy_device *phydev);
--
2.48.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH net-next 4/4] net: phy: remove helper phy_is_internal
2025-02-13 21:47 [PATCH net-next 0/4] net: phy: clean up phy.h Heiner Kallweit
` (2 preceding siblings ...)
2025-02-13 21:50 ` [PATCH net-next 3/4] net: phy: stop exporting phy_queue_state_machine Heiner Kallweit
@ 2025-02-13 21:51 ` Heiner Kallweit
2025-02-14 11:01 ` Mateusz Polchlopek
2025-02-14 14:54 ` Russell King (Oracle)
2025-02-15 1:20 ` [PATCH net-next 0/4] net: phy: clean up phy.h patchwork-bot+netdevbpf
4 siblings, 2 replies; 16+ messages in thread
From: Heiner Kallweit @ 2025-02-13 21:51 UTC (permalink / raw)
To: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni,
Jakub Kicinski, David Miller, Eric Dumazet
Cc: netdev@vger.kernel.org
Helper phy_is_internal() is just used in two places phylib-internally.
So let's remove it from the API.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/net/phy/phy.c | 2 +-
drivers/net/phy/phy_device.c | 2 +-
include/linux/phy.h | 9 ---------
3 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 8738ffb4c..77b3fb843 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -302,7 +302,7 @@ void phy_ethtool_ksettings_get(struct phy_device *phydev,
cmd->base.port = PORT_BNC;
else
cmd->base.port = phydev->port;
- cmd->base.transceiver = phy_is_internal(phydev) ?
+ cmd->base.transceiver = phydev->is_internal ?
XCVR_INTERNAL : XCVR_EXTERNAL;
cmd->base.phy_address = phydev->mdio.addr;
cmd->base.autoneg = phydev->autoneg;
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
index 1c10c774b..35ec99b4d 100644
--- a/drivers/net/phy/phy_device.c
+++ b/drivers/net/phy/phy_device.c
@@ -544,7 +544,7 @@ phy_interface_show(struct device *dev, struct device_attribute *attr, char *buf)
struct phy_device *phydev = to_phy_device(dev);
const char *mode = NULL;
- if (phy_is_internal(phydev))
+ if (phydev->is_internal)
mode = "internal";
else
mode = phy_modes(phydev->interface);
diff --git a/include/linux/phy.h b/include/linux/phy.h
index bb7454364..8efbf62d8 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -1729,15 +1729,6 @@ static inline bool phy_is_default_hwtstamp(struct phy_device *phydev)
return phy_has_hwtstamp(phydev) && phydev->default_timestamp;
}
-/**
- * phy_is_internal - Convenience function for testing if a PHY is internal
- * @phydev: the phy_device struct
- */
-static inline bool phy_is_internal(struct phy_device *phydev)
-{
- return phydev->is_internal;
-}
-
/**
* phy_on_sfp - Convenience function for testing if a PHY is on an SFP module
* @phydev: the phy_device struct
--
2.48.1
^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH net-next 1/4] net: phy: remove fixup-related definitions from phy.h which are not used outside phylib
2025-02-13 21:48 ` [PATCH net-next 1/4] net: phy: remove fixup-related definitions from phy.h which are not used outside phylib Heiner Kallweit
@ 2025-02-14 10:59 ` Mateusz Polchlopek
2025-02-14 11:11 ` Heiner Kallweit
2025-02-14 14:51 ` Russell King (Oracle)
1 sibling, 1 reply; 16+ messages in thread
From: Mateusz Polchlopek @ 2025-02-14 10:59 UTC (permalink / raw)
To: Heiner Kallweit, Andrew Lunn, Russell King - ARM Linux,
Paolo Abeni, Jakub Kicinski, David Miller, Eric Dumazet
Cc: netdev@vger.kernel.org
On 2/13/2025 10:48 PM, Heiner Kallweit wrote:
> Certain fixup-related definitions aren't used outside phy_device.c.
> So make them private and remove them from phy.h.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
> drivers/net/phy/phy_device.c | 16 +++++++++++++---
> include/linux/phy.h | 14 --------------
> 2 files changed, 13 insertions(+), 17 deletions(-)
>
> diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
> index 9b06ba92f..14c312ad2 100644
> --- a/drivers/net/phy/phy_device.c
> +++ b/drivers/net/phy/phy_device.c
> @@ -45,6 +45,17 @@ MODULE_DESCRIPTION("PHY library");
> MODULE_AUTHOR("Andy Fleming");
> MODULE_LICENSE("GPL");
>
> +#define PHY_ANY_ID "MATCH ANY PHY"
> +#define PHY_ANY_UID 0xffffffff
> +
Overall looks like a nice cleanup but I am not sure about this space
between #define and PHY_ANY_ID or PHY_ANY_UID...
> +struct phy_fixup {
> + struct list_head list;
> + char bus_id[MII_BUS_ID_SIZE + 3];
> + u32 phy_uid;
> + u32 phy_uid_mask;
> + int (*run)(struct phy_device *phydev);
> +};
> +
> __ETHTOOL_DECLARE_LINK_MODE_MASK(phy_basic_features) __ro_after_init;
> EXPORT_SYMBOL_GPL(phy_basic_features);
>
> @@ -378,8 +389,8 @@ static SIMPLE_DEV_PM_OPS(mdio_bus_phy_pm_ops, mdio_bus_phy_suspend,
> * comparison
> * @run: The actual code to be run when a matching PHY is found
> */
> -int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask,
> - int (*run)(struct phy_device *))
> +static int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask,
> + int (*run)(struct phy_device *))
> {
> struct phy_fixup *fixup = kzalloc(sizeof(*fixup), GFP_KERNEL);
>
> @@ -397,7 +408,6 @@ int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask,
>
> return 0;
> }
> -EXPORT_SYMBOL(phy_register_fixup);
>
> /* Registers a fixup to be run on any PHY with the UID in phy_uid */
> int phy_register_fixup_for_uid(u32 phy_uid, u32 phy_uid_mask,
> diff --git a/include/linux/phy.h b/include/linux/phy.h
> index 29df4c602..96e427c2c 100644
> --- a/include/linux/phy.h
> +++ b/include/linux/phy.h
> @@ -1277,9 +1277,6 @@ struct phy_driver {
> #define to_phy_driver(d) container_of_const(to_mdio_common_driver(d), \
> struct phy_driver, mdiodrv)
>
> -#define PHY_ANY_ID "MATCH ANY PHY"
> -#define PHY_ANY_UID 0xffffffff
> -
> #define PHY_ID_MATCH_EXACT(id) .phy_id = (id), .phy_id_mask = GENMASK(31, 0)
> #define PHY_ID_MATCH_MODEL(id) .phy_id = (id), .phy_id_mask = GENMASK(31, 4)
> #define PHY_ID_MATCH_VENDOR(id) .phy_id = (id), .phy_id_mask = GENMASK(31, 10)
> @@ -1312,15 +1309,6 @@ static inline bool phydev_id_compare(struct phy_device *phydev, u32 id)
> return phy_id_compare(id, phydev->phy_id, phydev->drv->phy_id_mask);
> }
>
> -/* A Structure for boards to register fixups with the PHY Lib */
> -struct phy_fixup {
> - struct list_head list;
> - char bus_id[MII_BUS_ID_SIZE + 3];
> - u32 phy_uid;
> - u32 phy_uid_mask;
> - int (*run)(struct phy_device *phydev);
> -};
> -
> const char *phy_speed_to_str(int speed);
> const char *phy_duplex_to_str(unsigned int duplex);
> const char *phy_rate_matching_to_str(int rate_matching);
> @@ -2117,8 +2105,6 @@ s32 phy_get_internal_delay(struct phy_device *phydev, struct device *dev,
> void phy_resolve_pause(unsigned long *local_adv, unsigned long *partner_adv,
> bool *tx_pause, bool *rx_pause);
>
> -int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask,
> - int (*run)(struct phy_device *));
> int phy_register_fixup_for_id(const char *bus_id,
> int (*run)(struct phy_device *));
> int phy_register_fixup_for_uid(u32 phy_uid, u32 phy_uid_mask,
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH net-next 3/4] net: phy: stop exporting phy_queue_state_machine
2025-02-13 21:50 ` [PATCH net-next 3/4] net: phy: stop exporting phy_queue_state_machine Heiner Kallweit
@ 2025-02-14 11:00 ` Mateusz Polchlopek
2025-02-14 14:53 ` Russell King (Oracle)
1 sibling, 0 replies; 16+ messages in thread
From: Mateusz Polchlopek @ 2025-02-14 11:00 UTC (permalink / raw)
To: Heiner Kallweit, Andrew Lunn, Russell King - ARM Linux,
Paolo Abeni, Jakub Kicinski, David Miller, Eric Dumazet
Cc: netdev@vger.kernel.org
On 2/13/2025 10:50 PM, Heiner Kallweit wrote:
> phy_queue_state_machine() isn't used outside phy.c,
> so stop exporting it.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
> drivers/net/phy/phy.c | 4 ++--
> include/linux/phy.h | 1 -
> 2 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
> index d0c1718e2..8738ffb4c 100644
> --- a/drivers/net/phy/phy.c
> +++ b/drivers/net/phy/phy.c
> @@ -520,12 +520,12 @@ int __phy_hwtstamp_set(struct phy_device *phydev,
> * @phydev: the phy_device struct
> * @jiffies: Run the state machine after these jiffies
> */
> -void phy_queue_state_machine(struct phy_device *phydev, unsigned long jiffies)
> +static void phy_queue_state_machine(struct phy_device *phydev,
> + unsigned long jiffies)
> {
> mod_delayed_work(system_power_efficient_wq, &phydev->state_queue,
> jiffies);
> }
> -EXPORT_SYMBOL(phy_queue_state_machine);
>
> /**
> * phy_trigger_machine - Trigger the state machine to run now
> diff --git a/include/linux/phy.h b/include/linux/phy.h
> index 33e2c2c93..bb7454364 100644
> --- a/include/linux/phy.h
> +++ b/include/linux/phy.h
> @@ -2061,7 +2061,6 @@ int phy_drivers_register(struct phy_driver *new_driver, int n,
> struct module *owner);
> void phy_error(struct phy_device *phydev);
> void phy_state_machine(struct work_struct *work);
> -void phy_queue_state_machine(struct phy_device *phydev, unsigned long jiffies);
> void phy_trigger_machine(struct phy_device *phydev);
> void phy_mac_interrupt(struct phy_device *phydev);
> void phy_start_machine(struct phy_device *phydev);
Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH net-next 4/4] net: phy: remove helper phy_is_internal
2025-02-13 21:51 ` [PATCH net-next 4/4] net: phy: remove helper phy_is_internal Heiner Kallweit
@ 2025-02-14 11:01 ` Mateusz Polchlopek
2025-02-14 14:54 ` Russell King (Oracle)
1 sibling, 0 replies; 16+ messages in thread
From: Mateusz Polchlopek @ 2025-02-14 11:01 UTC (permalink / raw)
To: Heiner Kallweit, Andrew Lunn, Russell King - ARM Linux,
Paolo Abeni, Jakub Kicinski, David Miller, Eric Dumazet
Cc: netdev@vger.kernel.org
On 2/13/2025 10:51 PM, Heiner Kallweit wrote:
> Helper phy_is_internal() is just used in two places phylib-internally.
> So let's remove it from the API.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
> drivers/net/phy/phy.c | 2 +-
> drivers/net/phy/phy_device.c | 2 +-
> include/linux/phy.h | 9 ---------
> 3 files changed, 2 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
> index 8738ffb4c..77b3fb843 100644
> --- a/drivers/net/phy/phy.c
> +++ b/drivers/net/phy/phy.c
> @@ -302,7 +302,7 @@ void phy_ethtool_ksettings_get(struct phy_device *phydev,
> cmd->base.port = PORT_BNC;
> else
> cmd->base.port = phydev->port;
> - cmd->base.transceiver = phy_is_internal(phydev) ?
> + cmd->base.transceiver = phydev->is_internal ?
> XCVR_INTERNAL : XCVR_EXTERNAL;
> cmd->base.phy_address = phydev->mdio.addr;
> cmd->base.autoneg = phydev->autoneg;
> diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
> index 1c10c774b..35ec99b4d 100644
> --- a/drivers/net/phy/phy_device.c
> +++ b/drivers/net/phy/phy_device.c
> @@ -544,7 +544,7 @@ phy_interface_show(struct device *dev, struct device_attribute *attr, char *buf)
> struct phy_device *phydev = to_phy_device(dev);
> const char *mode = NULL;
>
> - if (phy_is_internal(phydev))
> + if (phydev->is_internal)
> mode = "internal";
> else
> mode = phy_modes(phydev->interface);
> diff --git a/include/linux/phy.h b/include/linux/phy.h
> index bb7454364..8efbf62d8 100644
> --- a/include/linux/phy.h
> +++ b/include/linux/phy.h
> @@ -1729,15 +1729,6 @@ static inline bool phy_is_default_hwtstamp(struct phy_device *phydev)
> return phy_has_hwtstamp(phydev) && phydev->default_timestamp;
> }
>
> -/**
> - * phy_is_internal - Convenience function for testing if a PHY is internal
> - * @phydev: the phy_device struct
> - */
> -static inline bool phy_is_internal(struct phy_device *phydev)
> -{
> - return phydev->is_internal;
> -}
> -
> /**
> * phy_on_sfp - Convenience function for testing if a PHY is on an SFP module
> * @phydev: the phy_device struct
Thanks for that change.
Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH net-next 2/4] net: phy: stop exporting feature arrays which aren't used outside phylib
2025-02-13 21:49 ` [PATCH net-next 2/4] net: phy: stop exporting feature arrays which aren't " Heiner Kallweit
@ 2025-02-14 11:10 ` Mateusz Polchlopek
2025-02-14 14:52 ` Russell King (Oracle)
1 sibling, 0 replies; 16+ messages in thread
From: Mateusz Polchlopek @ 2025-02-14 11:10 UTC (permalink / raw)
To: Heiner Kallweit, Andrew Lunn, Russell King - ARM Linux,
Paolo Abeni, Jakub Kicinski, David Miller, Eric Dumazet
Cc: netdev@vger.kernel.org
On 2/13/2025 10:49 PM, Heiner Kallweit wrote:
> Stop exporting feature arrays which aren't used outside phylib.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> ---
> drivers/net/phy/phy_device.c | 22 ++++++----------------
> include/linux/phy.h | 5 -----
> 2 files changed, 6 insertions(+), 21 deletions(-)
>
> diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
> index 14c312ad2..1c10c774b 100644
> --- a/drivers/net/phy/phy_device.c
> +++ b/drivers/net/phy/phy_device.c
> @@ -91,37 +91,28 @@ static const int phy_all_ports_features_array[7] = {
> ETHTOOL_LINK_MODE_Backplane_BIT,
> };
>
> -const int phy_10_100_features_array[4] = {
> +static const int phy_10_100_features_array[4] = {
> ETHTOOL_LINK_MODE_10baseT_Half_BIT,
> ETHTOOL_LINK_MODE_10baseT_Full_BIT,
> ETHTOOL_LINK_MODE_100baseT_Half_BIT,
> ETHTOOL_LINK_MODE_100baseT_Full_BIT,
> };
> -EXPORT_SYMBOL_GPL(phy_10_100_features_array);
>
> -const int phy_basic_t1_features_array[3] = {
> +static const int phy_basic_t1_features_array[3] = {
> ETHTOOL_LINK_MODE_TP_BIT,
> ETHTOOL_LINK_MODE_10baseT1L_Full_BIT,
> ETHTOOL_LINK_MODE_100baseT1_Full_BIT,
> };
> -EXPORT_SYMBOL_GPL(phy_basic_t1_features_array);
>
> -const int phy_basic_t1s_p2mp_features_array[2] = {
> +static const int phy_basic_t1s_p2mp_features_array[2] = {
> ETHTOOL_LINK_MODE_TP_BIT,
> ETHTOOL_LINK_MODE_10baseT1S_P2MP_Half_BIT,
> };
> -EXPORT_SYMBOL_GPL(phy_basic_t1s_p2mp_features_array);
>
> -const int phy_gbit_features_array[2] = {
> +static const int phy_gbit_features_array[2] = {
> ETHTOOL_LINK_MODE_1000baseT_Half_BIT,
> ETHTOOL_LINK_MODE_1000baseT_Full_BIT,
> };
> -EXPORT_SYMBOL_GPL(phy_gbit_features_array);
> -
> -const int phy_10gbit_features_array[1] = {
> - ETHTOOL_LINK_MODE_10000baseT_Full_BIT,
> -};
> -EXPORT_SYMBOL_GPL(phy_10gbit_features_array);
>
> static const int phy_eee_cap1_features_array[] = {
> ETHTOOL_LINK_MODE_100baseT_Full_BIT,
> @@ -196,9 +187,8 @@ static void features_init(void)
> linkmode_set_bit_array(phy_gbit_features_array,
> ARRAY_SIZE(phy_gbit_features_array),
> phy_10gbit_features);
> - linkmode_set_bit_array(phy_10gbit_features_array,
> - ARRAY_SIZE(phy_10gbit_features_array),
> - phy_10gbit_features);
> + linkmode_set_bit(ETHTOOL_LINK_MODE_10000baseT_Full_BIT,
> + phy_10gbit_features);
>
> linkmode_set_bit_array(phy_eee_cap1_features_array,
> ARRAY_SIZE(phy_eee_cap1_features_array),
> diff --git a/include/linux/phy.h b/include/linux/phy.h
> index 96e427c2c..33e2c2c93 100644
> --- a/include/linux/phy.h
> +++ b/include/linux/phy.h
> @@ -54,11 +54,6 @@ extern __ETHTOOL_DECLARE_LINK_MODE_MASK(phy_eee_cap2_features) __ro_after_init;
> #define PHY_EEE_CAP2_FEATURES ((unsigned long *)&phy_eee_cap2_features)
>
> extern const int phy_basic_ports_array[3];
> -extern const int phy_10_100_features_array[4];
> -extern const int phy_basic_t1_features_array[3];
> -extern const int phy_basic_t1s_p2mp_features_array[2];
> -extern const int phy_gbit_features_array[2];
> -extern const int phy_10gbit_features_array[1];
>
> /*
> * Set phydev->irq to PHY_POLL if interrupts are not supported,
Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH net-next 1/4] net: phy: remove fixup-related definitions from phy.h which are not used outside phylib
2025-02-14 10:59 ` Mateusz Polchlopek
@ 2025-02-14 11:11 ` Heiner Kallweit
2025-02-14 15:49 ` Andrew Lunn
0 siblings, 1 reply; 16+ messages in thread
From: Heiner Kallweit @ 2025-02-14 11:11 UTC (permalink / raw)
To: Mateusz Polchlopek, Andrew Lunn, Russell King - ARM Linux,
Paolo Abeni, Jakub Kicinski, David Miller, Eric Dumazet
Cc: netdev@vger.kernel.org
On 14.02.2025 11:59, Mateusz Polchlopek wrote:
>
>
> On 2/13/2025 10:48 PM, Heiner Kallweit wrote:
>> Certain fixup-related definitions aren't used outside phy_device.c.
>> So make them private and remove them from phy.h.
>>
>> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
>> ---
>> drivers/net/phy/phy_device.c | 16 +++++++++++++---
>> include/linux/phy.h | 14 --------------
>> 2 files changed, 13 insertions(+), 17 deletions(-)
>>
>> diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
>> index 9b06ba92f..14c312ad2 100644
>> --- a/drivers/net/phy/phy_device.c
>> +++ b/drivers/net/phy/phy_device.c
>> @@ -45,6 +45,17 @@ MODULE_DESCRIPTION("PHY library");
>> MODULE_AUTHOR("Andy Fleming");
>> MODULE_LICENSE("GPL");
>> +#define PHY_ANY_ID "MATCH ANY PHY"
>> +#define PHY_ANY_UID 0xffffffff
>> +
>
> Overall looks like a nice cleanup but I am not sure about this space
> between #define and PHY_ANY_ID or PHY_ANY_UID...
>
There's a tab, which effectively equals a space. Maybe it's just the
diff which is misleading. At least checkpatch didn't complain.
>> +struct phy_fixup {
>> + struct list_head list;
>> + char bus_id[MII_BUS_ID_SIZE + 3];
>> + u32 phy_uid;
>> + u32 phy_uid_mask;
>> + int (*run)(struct phy_device *phydev);
>> +};
>> +
>> __ETHTOOL_DECLARE_LINK_MODE_MASK(phy_basic_features) __ro_after_init;
>> EXPORT_SYMBOL_GPL(phy_basic_features);
>> @@ -378,8 +389,8 @@ static SIMPLE_DEV_PM_OPS(mdio_bus_phy_pm_ops, mdio_bus_phy_suspend,
>> * comparison
>> * @run: The actual code to be run when a matching PHY is found
>> */
>> -int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask,
>> - int (*run)(struct phy_device *))
>> +static int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask,
>> + int (*run)(struct phy_device *))
>> {
>> struct phy_fixup *fixup = kzalloc(sizeof(*fixup), GFP_KERNEL);
>> @@ -397,7 +408,6 @@ int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask,
>> return 0;
>> }
>> -EXPORT_SYMBOL(phy_register_fixup);
>> /* Registers a fixup to be run on any PHY with the UID in phy_uid */
>> int phy_register_fixup_for_uid(u32 phy_uid, u32 phy_uid_mask,
>> diff --git a/include/linux/phy.h b/include/linux/phy.h
>> index 29df4c602..96e427c2c 100644
>> --- a/include/linux/phy.h
>> +++ b/include/linux/phy.h
>> @@ -1277,9 +1277,6 @@ struct phy_driver {
>> #define to_phy_driver(d) container_of_const(to_mdio_common_driver(d), \
>> struct phy_driver, mdiodrv)
>> -#define PHY_ANY_ID "MATCH ANY PHY"
>> -#define PHY_ANY_UID 0xffffffff
>> -
>> #define PHY_ID_MATCH_EXACT(id) .phy_id = (id), .phy_id_mask = GENMASK(31, 0)
>> #define PHY_ID_MATCH_MODEL(id) .phy_id = (id), .phy_id_mask = GENMASK(31, 4)
>> #define PHY_ID_MATCH_VENDOR(id) .phy_id = (id), .phy_id_mask = GENMASK(31, 10)
>> @@ -1312,15 +1309,6 @@ static inline bool phydev_id_compare(struct phy_device *phydev, u32 id)
>> return phy_id_compare(id, phydev->phy_id, phydev->drv->phy_id_mask);
>> }
>> -/* A Structure for boards to register fixups with the PHY Lib */
>> -struct phy_fixup {
>> - struct list_head list;
>> - char bus_id[MII_BUS_ID_SIZE + 3];
>> - u32 phy_uid;
>> - u32 phy_uid_mask;
>> - int (*run)(struct phy_device *phydev);
>> -};
>> -
>> const char *phy_speed_to_str(int speed);
>> const char *phy_duplex_to_str(unsigned int duplex);
>> const char *phy_rate_matching_to_str(int rate_matching);
>> @@ -2117,8 +2105,6 @@ s32 phy_get_internal_delay(struct phy_device *phydev, struct device *dev,
>> void phy_resolve_pause(unsigned long *local_adv, unsigned long *partner_adv,
>> bool *tx_pause, bool *rx_pause);
>> -int phy_register_fixup(const char *bus_id, u32 phy_uid, u32 phy_uid_mask,
>> - int (*run)(struct phy_device *));
>> int phy_register_fixup_for_id(const char *bus_id,
>> int (*run)(struct phy_device *));
>> int phy_register_fixup_for_uid(u32 phy_uid, u32 phy_uid_mask,
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH net-next 1/4] net: phy: remove fixup-related definitions from phy.h which are not used outside phylib
2025-02-13 21:48 ` [PATCH net-next 1/4] net: phy: remove fixup-related definitions from phy.h which are not used outside phylib Heiner Kallweit
2025-02-14 10:59 ` Mateusz Polchlopek
@ 2025-02-14 14:51 ` Russell King (Oracle)
1 sibling, 0 replies; 16+ messages in thread
From: Russell King (Oracle) @ 2025-02-14 14:51 UTC (permalink / raw)
To: Heiner Kallweit
Cc: Andrew Lunn, Paolo Abeni, Jakub Kicinski, David Miller,
Eric Dumazet, netdev@vger.kernel.org
On Thu, Feb 13, 2025 at 10:48:11PM +0100, Heiner Kallweit wrote:
> Certain fixup-related definitions aren't used outside phy_device.c.
> So make them private and remove them from phy.h.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thanks!
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH net-next 2/4] net: phy: stop exporting feature arrays which aren't used outside phylib
2025-02-13 21:49 ` [PATCH net-next 2/4] net: phy: stop exporting feature arrays which aren't " Heiner Kallweit
2025-02-14 11:10 ` Mateusz Polchlopek
@ 2025-02-14 14:52 ` Russell King (Oracle)
1 sibling, 0 replies; 16+ messages in thread
From: Russell King (Oracle) @ 2025-02-14 14:52 UTC (permalink / raw)
To: Heiner Kallweit
Cc: Andrew Lunn, Paolo Abeni, Jakub Kicinski, David Miller,
Eric Dumazet, netdev@vger.kernel.org
On Thu, Feb 13, 2025 at 10:49:19PM +0100, Heiner Kallweit wrote:
> Stop exporting feature arrays which aren't used outside phylib.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
My grep confirms.
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thanks!
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH net-next 3/4] net: phy: stop exporting phy_queue_state_machine
2025-02-13 21:50 ` [PATCH net-next 3/4] net: phy: stop exporting phy_queue_state_machine Heiner Kallweit
2025-02-14 11:00 ` Mateusz Polchlopek
@ 2025-02-14 14:53 ` Russell King (Oracle)
1 sibling, 0 replies; 16+ messages in thread
From: Russell King (Oracle) @ 2025-02-14 14:53 UTC (permalink / raw)
To: Heiner Kallweit
Cc: Andrew Lunn, Paolo Abeni, Jakub Kicinski, David Miller,
Eric Dumazet, netdev@vger.kernel.org
On Thu, Feb 13, 2025 at 10:50:02PM +0100, Heiner Kallweit wrote:
> phy_queue_state_machine() isn't used outside phy.c,
> so stop exporting it.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
My grep confirms.
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thanks!
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH net-next 4/4] net: phy: remove helper phy_is_internal
2025-02-13 21:51 ` [PATCH net-next 4/4] net: phy: remove helper phy_is_internal Heiner Kallweit
2025-02-14 11:01 ` Mateusz Polchlopek
@ 2025-02-14 14:54 ` Russell King (Oracle)
1 sibling, 0 replies; 16+ messages in thread
From: Russell King (Oracle) @ 2025-02-14 14:54 UTC (permalink / raw)
To: Heiner Kallweit
Cc: Andrew Lunn, Paolo Abeni, Jakub Kicinski, David Miller,
Eric Dumazet, netdev@vger.kernel.org
On Thu, Feb 13, 2025 at 10:51:53PM +0100, Heiner Kallweit wrote:
> Helper phy_is_internal() is just used in two places phylib-internally.
> So let's remove it from the API.
>
> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
My grep confirms.
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thanks!
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH net-next 1/4] net: phy: remove fixup-related definitions from phy.h which are not used outside phylib
2025-02-14 11:11 ` Heiner Kallweit
@ 2025-02-14 15:49 ` Andrew Lunn
0 siblings, 0 replies; 16+ messages in thread
From: Andrew Lunn @ 2025-02-14 15:49 UTC (permalink / raw)
To: Heiner Kallweit
Cc: Mateusz Polchlopek, Russell King - ARM Linux, Paolo Abeni,
Jakub Kicinski, David Miller, Eric Dumazet,
netdev@vger.kernel.org
On Fri, Feb 14, 2025 at 12:11:09PM +0100, Heiner Kallweit wrote:
> On 14.02.2025 11:59, Mateusz Polchlopek wrote:
> >
> >
> > On 2/13/2025 10:48 PM, Heiner Kallweit wrote:
> >> Certain fixup-related definitions aren't used outside phy_device.c.
> >> So make them private and remove them from phy.h.
> >>
> >> Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
> >> ---
> >> drivers/net/phy/phy_device.c | 16 +++++++++++++---
> >> include/linux/phy.h | 14 --------------
> >> 2 files changed, 13 insertions(+), 17 deletions(-)
> >>
> >> diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c
> >> index 9b06ba92f..14c312ad2 100644
> >> --- a/drivers/net/phy/phy_device.c
> >> +++ b/drivers/net/phy/phy_device.c
> >> @@ -45,6 +45,17 @@ MODULE_DESCRIPTION("PHY library");
> >> MODULE_AUTHOR("Andy Fleming");
> >> MODULE_LICENSE("GPL");
> >> +#define PHY_ANY_ID "MATCH ANY PHY"
> >> +#define PHY_ANY_UID 0xffffffff
> >> +
> >
> > Overall looks like a nice cleanup but I am not sure about this space
> > between #define and PHY_ANY_ID or PHY_ANY_UID...
> >
> There's a tab, which effectively equals a space. Maybe it's just the
> diff which is misleading. At least checkpatch didn't complain.
So long as it is a straight cut/paste from the old location, this is
fine.
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH net-next 0/4] net: phy: clean up phy.h
2025-02-13 21:47 [PATCH net-next 0/4] net: phy: clean up phy.h Heiner Kallweit
` (3 preceding siblings ...)
2025-02-13 21:51 ` [PATCH net-next 4/4] net: phy: remove helper phy_is_internal Heiner Kallweit
@ 2025-02-15 1:20 ` patchwork-bot+netdevbpf
4 siblings, 0 replies; 16+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-02-15 1:20 UTC (permalink / raw)
To: Heiner Kallweit; +Cc: andrew, linux, pabeni, kuba, davem, edumazet, netdev
Hello:
This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Thu, 13 Feb 2025 22:47:04 +0100 you wrote:
> This series is a starting point to clean up phy.h and remove
> definitions which are phylib-internal.
>
> Heiner Kallweit (4):
> net: phy: remove fixup-related definitions from phy.h which are not
> used outside phylib
> net: phy: stop exporting feature arrays which aren't used outside
> phylib
> net: phy: stop exporting phy_queue_state_machine
> net: phy: remove helper phy_is_internal
>
> [...]
Here is the summary with links:
- [net-next,1/4] net: phy: remove fixup-related definitions from phy.h which are not used outside phylib
https://git.kernel.org/netdev/net-next/c/ea47e70e476f
- [net-next,2/4] net: phy: stop exporting feature arrays which aren't used outside phylib
https://git.kernel.org/netdev/net-next/c/d3a0e217f850
- [net-next,3/4] net: phy: stop exporting phy_queue_state_machine
https://git.kernel.org/netdev/net-next/c/ef6249e37df5
- [net-next,4/4] net: phy: remove helper phy_is_internal
https://git.kernel.org/netdev/net-next/c/6b2edfba7469
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2025-02-15 1:20 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-13 21:47 [PATCH net-next 0/4] net: phy: clean up phy.h Heiner Kallweit
2025-02-13 21:48 ` [PATCH net-next 1/4] net: phy: remove fixup-related definitions from phy.h which are not used outside phylib Heiner Kallweit
2025-02-14 10:59 ` Mateusz Polchlopek
2025-02-14 11:11 ` Heiner Kallweit
2025-02-14 15:49 ` Andrew Lunn
2025-02-14 14:51 ` Russell King (Oracle)
2025-02-13 21:49 ` [PATCH net-next 2/4] net: phy: stop exporting feature arrays which aren't " Heiner Kallweit
2025-02-14 11:10 ` Mateusz Polchlopek
2025-02-14 14:52 ` Russell King (Oracle)
2025-02-13 21:50 ` [PATCH net-next 3/4] net: phy: stop exporting phy_queue_state_machine Heiner Kallweit
2025-02-14 11:00 ` Mateusz Polchlopek
2025-02-14 14:53 ` Russell King (Oracle)
2025-02-13 21:51 ` [PATCH net-next 4/4] net: phy: remove helper phy_is_internal Heiner Kallweit
2025-02-14 11:01 ` Mateusz Polchlopek
2025-02-14 14:54 ` Russell King (Oracle)
2025-02-15 1:20 ` [PATCH net-next 0/4] net: phy: clean up phy.h patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).