* [RFC PATCH 0/5] phy: core: Use EOPNOTSUPP for disabled blob return value
@ 2026-09-22 2:47 Inochi Amaoto
2026-09-22 2:47 ` [RFC PATCH 1/5] " Inochi Amaoto
` (4 more replies)
0 siblings, 5 replies; 14+ messages in thread
From: Inochi Amaoto @ 2026-09-22 2:47 UTC (permalink / raw)
To: Hans de Goede, Damien Le Moal, Niklas Cassel, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
Minas Harutyunyan, Greg Kroah-Hartman, Thinh Nguyen, Vinod Koul,
Manivannan Sadhasivam, Damon Ding, Dmitry Baryshkov,
Heiko Stuebner
Cc: Inochi Amaoto, linux-ide, linux-kernel, dri-devel, linux-usb,
linux-phy, Yixun Lan, Longbin Li
Currently, the phy subsystem uses ENOSYS for dummy blob functions,
it does not reflect the function state correctly. As kernel already
has EOPNOTSUPP for disabled blob function, replace ENOSYS with
EOPNOTSUPP for a clear return value.
Inochi Amaoto (5):
phy: core: Use EOPNOTSUPP for disabled blob return value
ata: libahci_platform: Adapt the return value changed for disabled
blob
usb: dwc2: Adapt the return value changed for disabled blob
usb: dwc3: core: Adapt the return value changed for disabled blob
drm: bridge: analogix/dp: Adapt the return value changed for disabled
blob
drivers/ata/libahci_platform.c | 4 +-
.../drm/bridge/analogix/analogix_dp_core.c | 2 +-
drivers/usb/dwc2/platform.c | 2 +-
drivers/usb/dwc3/core.c | 4 +-
include/linux/phy/phy.h | 52 +++++++++----------
5 files changed, 32 insertions(+), 32 deletions(-)
--
2.55.0
^ permalink raw reply [flat|nested] 14+ messages in thread
* [RFC PATCH 1/5] phy: core: Use EOPNOTSUPP for disabled blob return value
2026-09-22 2:47 [RFC PATCH 0/5] phy: core: Use EOPNOTSUPP for disabled blob return value Inochi Amaoto
@ 2026-09-22 2:47 ` Inochi Amaoto
2026-09-22 5:35 ` Greg Kroah-Hartman
2026-09-22 2:47 ` [RFC PATCH 2/5] ata: libahci_platform: Adapt the return value changed for disabled blob Inochi Amaoto
` (3 subsequent siblings)
4 siblings, 1 reply; 14+ messages in thread
From: Inochi Amaoto @ 2026-09-22 2:47 UTC (permalink / raw)
To: Hans de Goede, Damien Le Moal, Niklas Cassel, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
Minas Harutyunyan, Greg Kroah-Hartman, Thinh Nguyen, Vinod Koul,
Manivannan Sadhasivam, Damon Ding, Dmitry Baryshkov,
Heiko Stuebner
Cc: Inochi Amaoto, linux-ide, linux-kernel, dri-devel, linux-usb,
linux-phy, Yixun Lan, Longbin Li
Currently, the phy subsystem uses ENOSYS for dummy blob functions,
it does not reflect the function state correctly. As kernel already
has EOPNOTSUPP for disabled blob function, replace ENOSYS with
EOPNOTSUPP for a clear return value.
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
---
include/linux/phy/phy.h | 52 ++++++++++++++++++++---------------------
1 file changed, 26 insertions(+), 26 deletions(-)
diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h
index ea47975e288a..3e84b54a4b03 100644
--- a/include/linux/phy/phy.h
+++ b/include/linux/phy/phy.h
@@ -314,14 +314,14 @@ static inline int phy_pm_runtime_get(struct phy *phy)
{
if (!phy)
return 0;
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
static inline int phy_pm_runtime_get_sync(struct phy *phy)
{
if (!phy)
return 0;
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
static inline void phy_pm_runtime_put(struct phy *phy)
@@ -332,35 +332,35 @@ static inline int phy_pm_runtime_put_sync(struct phy *phy)
{
if (!phy)
return 0;
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
static inline int phy_init(struct phy *phy)
{
if (!phy)
return 0;
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
static inline int phy_exit(struct phy *phy)
{
if (!phy)
return 0;
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
static inline int phy_power_on(struct phy *phy)
{
if (!phy)
return 0;
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
static inline int phy_power_off(struct phy *phy)
{
if (!phy)
return 0;
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
static inline int phy_set_mode_ext(struct phy *phy, enum phy_mode mode,
@@ -368,7 +368,7 @@ static inline int phy_set_mode_ext(struct phy *phy, enum phy_mode mode,
{
if (!phy)
return 0;
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
#define phy_set_mode(phy, mode) \
@@ -397,35 +397,35 @@ static inline int phy_reset(struct phy *phy)
{
if (!phy)
return 0;
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
static inline int phy_calibrate(struct phy *phy)
{
if (!phy)
return 0;
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
static inline int phy_notify_connect(struct phy *phy, int index)
{
if (!phy)
return 0;
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
static inline int phy_notify_disconnect(struct phy *phy, int index)
{
if (!phy)
return 0;
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
static inline int phy_notify_state(struct phy *phy, union phy_notify state)
{
if (!phy)
return 0;
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
static inline int phy_configure(struct phy *phy,
@@ -434,7 +434,7 @@ static inline int phy_configure(struct phy *phy,
if (!phy)
return 0;
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
static inline int phy_validate(struct phy *phy, enum phy_mode mode, int submode,
@@ -443,12 +443,12 @@ static inline int phy_validate(struct phy *phy, enum phy_mode mode, int submode,
if (!phy)
return 0;
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
static inline int phy_get_bus_width(struct phy *phy)
{
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
static inline void phy_set_bus_width(struct phy *phy, int bus_width)
@@ -458,12 +458,12 @@ static inline void phy_set_bus_width(struct phy *phy, int bus_width)
static inline struct phy *phy_get(struct device *dev, const char *string)
{
- return ERR_PTR(-ENOSYS);
+ return ERR_PTR(-EOPNOTSUPP);
}
static inline struct phy *devm_phy_get(struct device *dev, const char *string)
{
- return ERR_PTR(-ENOSYS);
+ return ERR_PTR(-EOPNOTSUPP);
}
static inline struct phy *devm_phy_optional_get(struct device *dev,
@@ -476,7 +476,7 @@ static inline struct phy *devm_of_phy_get(struct device *dev,
struct device_node *np,
const char *con_id)
{
- return ERR_PTR(-ENOSYS);
+ return ERR_PTR(-EOPNOTSUPP);
}
static inline struct phy *devm_of_phy_optional_get(struct device *dev,
@@ -490,7 +490,7 @@ static inline struct phy *devm_of_phy_get_by_index(struct device *dev,
struct device_node *np,
int index)
{
- return ERR_PTR(-ENOSYS);
+ return ERR_PTR(-EOPNOTSUPP);
}
static inline void of_phy_put(struct phy *phy)
@@ -507,27 +507,27 @@ static inline void devm_phy_put(struct device *dev, struct phy *phy)
static inline struct phy *of_phy_get(struct device_node *np, const char *con_id)
{
- return ERR_PTR(-ENOSYS);
+ return ERR_PTR(-EOPNOTSUPP);
}
static inline struct phy *of_phy_simple_xlate(struct device *dev,
const struct of_phandle_args *args)
{
- return ERR_PTR(-ENOSYS);
+ return ERR_PTR(-EOPNOTSUPP);
}
static inline struct phy *phy_create(struct device *dev,
struct device_node *node,
const struct phy_ops *ops)
{
- return ERR_PTR(-ENOSYS);
+ return ERR_PTR(-EOPNOTSUPP);
}
static inline struct phy *devm_phy_create(struct device *dev,
struct device_node *node,
const struct phy_ops *ops)
{
- return ERR_PTR(-ENOSYS);
+ return ERR_PTR(-EOPNOTSUPP);
}
static inline void phy_destroy(struct phy *phy)
@@ -543,7 +543,7 @@ static inline struct phy_provider *__of_phy_provider_register(
struct phy * (*of_xlate)(struct device *dev,
const struct of_phandle_args *args))
{
- return ERR_PTR(-ENOSYS);
+ return ERR_PTR(-EOPNOTSUPP);
}
static inline struct phy_provider *__devm_of_phy_provider_register(struct device
@@ -551,7 +551,7 @@ static inline struct phy_provider *__devm_of_phy_provider_register(struct device
struct phy * (*of_xlate)(struct device *dev,
const struct of_phandle_args *args))
{
- return ERR_PTR(-ENOSYS);
+ return ERR_PTR(-EOPNOTSUPP);
}
static inline void of_phy_provider_unregister(struct phy_provider *phy_provider)
--
2.55.0
^ permalink raw reply [flat|nested] 14+ messages in thread
* [RFC PATCH 2/5] ata: libahci_platform: Adapt the return value changed for disabled blob
2026-09-22 2:47 [RFC PATCH 0/5] phy: core: Use EOPNOTSUPP for disabled blob return value Inochi Amaoto
2026-09-22 2:47 ` [RFC PATCH 1/5] " Inochi Amaoto
@ 2026-09-22 2:47 ` Inochi Amaoto
2026-09-22 3:23 ` Damien Le Moal
2026-09-22 2:47 ` [RFC PATCH 3/5] usb: dwc2: " Inochi Amaoto
` (2 subsequent siblings)
4 siblings, 1 reply; 14+ messages in thread
From: Inochi Amaoto @ 2026-09-22 2:47 UTC (permalink / raw)
To: Hans de Goede, Damien Le Moal, Niklas Cassel, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
Minas Harutyunyan, Greg Kroah-Hartman, Thinh Nguyen, Vinod Koul,
Manivannan Sadhasivam, Damon Ding, Dmitry Baryshkov,
Heiko Stuebner
Cc: Inochi Amaoto, linux-ide, linux-kernel, dri-devel, linux-usb,
linux-phy, Yixun Lan, Longbin Li
Check EOPNOTSUPP for disabled helper function as the change in phy core.
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
---
drivers/ata/libahci_platform.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c
index 6e072d681341..3e8ddbeb49b3 100644
--- a/drivers/ata/libahci_platform.c
+++ b/drivers/ata/libahci_platform.c
@@ -371,11 +371,11 @@ static int ahci_platform_get_phy(struct ahci_host_priv *hpriv, u32 port,
rc = PTR_ERR(hpriv->phys[port]);
switch (rc) {
- case -ENOSYS:
+ case -EOPNOTSUPP:
/* No PHY support. Check if PHY is required. */
if (of_property_present(node, "phys")) {
dev_err(dev,
- "couldn't get PHY in node %pOFn: ENOSYS\n",
+ "couldn't get PHY in node %pOFn: EOPNOTSUPP\n",
node);
break;
}
--
2.55.0
^ permalink raw reply [flat|nested] 14+ messages in thread
* [RFC PATCH 3/5] usb: dwc2: Adapt the return value changed for disabled blob
2026-09-22 2:47 [RFC PATCH 0/5] phy: core: Use EOPNOTSUPP for disabled blob return value Inochi Amaoto
2026-09-22 2:47 ` [RFC PATCH 1/5] " Inochi Amaoto
2026-09-22 2:47 ` [RFC PATCH 2/5] ata: libahci_platform: Adapt the return value changed for disabled blob Inochi Amaoto
@ 2026-09-22 2:47 ` Inochi Amaoto
2026-09-22 2:47 ` [RFC PATCH 4/5] usb: dwc3: core: " Inochi Amaoto
2026-09-22 2:47 ` [RFC PATCH 5/5] drm: bridge: analogix/dp: " Inochi Amaoto
4 siblings, 0 replies; 14+ messages in thread
From: Inochi Amaoto @ 2026-09-22 2:47 UTC (permalink / raw)
To: Hans de Goede, Damien Le Moal, Niklas Cassel, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
Minas Harutyunyan, Greg Kroah-Hartman, Thinh Nguyen, Vinod Koul,
Manivannan Sadhasivam, Damon Ding, Dmitry Baryshkov,
Heiko Stuebner
Cc: Inochi Amaoto, linux-ide, linux-kernel, dri-devel, linux-usb,
linux-phy, Yixun Lan, Longbin Li
Check EOPNOTSUPP for disabled helper function as the change in phy core.
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
---
drivers/usb/dwc2/platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
index ef0d73077034..62b663ef1504 100644
--- a/drivers/usb/dwc2/platform.c
+++ b/drivers/usb/dwc2/platform.c
@@ -243,7 +243,7 @@ static int dwc2_lowlevel_hw_init(struct dwc2_hsotg *hsotg)
ret = PTR_ERR(hsotg->phy);
switch (ret) {
case -ENODEV:
- case -ENOSYS:
+ case -EOPNOTSUPP:
hsotg->phy = NULL;
break;
default:
--
2.55.0
^ permalink raw reply [flat|nested] 14+ messages in thread
* [RFC PATCH 4/5] usb: dwc3: core: Adapt the return value changed for disabled blob
2026-09-22 2:47 [RFC PATCH 0/5] phy: core: Use EOPNOTSUPP for disabled blob return value Inochi Amaoto
` (2 preceding siblings ...)
2026-09-22 2:47 ` [RFC PATCH 3/5] usb: dwc2: " Inochi Amaoto
@ 2026-09-22 2:47 ` Inochi Amaoto
2026-09-22 5:34 ` Greg Kroah-Hartman
2026-09-22 2:47 ` [RFC PATCH 5/5] drm: bridge: analogix/dp: " Inochi Amaoto
4 siblings, 1 reply; 14+ messages in thread
From: Inochi Amaoto @ 2026-09-22 2:47 UTC (permalink / raw)
To: Hans de Goede, Damien Le Moal, Niklas Cassel, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
Minas Harutyunyan, Greg Kroah-Hartman, Thinh Nguyen, Vinod Koul,
Manivannan Sadhasivam, Damon Ding, Dmitry Baryshkov,
Heiko Stuebner
Cc: Inochi Amaoto, linux-ide, linux-kernel, dri-devel, linux-usb,
linux-phy, Yixun Lan, Longbin Li
Check EOPNOTSUPP for disabled helper function as the change in phy core.
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
---
drivers/usb/dwc3/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
index fd5c2cd36c59..6d253810c71f 100644
--- a/drivers/usb/dwc3/core.c
+++ b/drivers/usb/dwc3/core.c
@@ -1588,7 +1588,7 @@ static int dwc3_core_get_phy(struct dwc3 *dwc)
dwc->usb2_generic_phy[i] = devm_phy_get(dev, phy_name);
if (IS_ERR(dwc->usb2_generic_phy[i])) {
ret = PTR_ERR(dwc->usb2_generic_phy[i]);
- if (ret == -ENOSYS || ret == -ENODEV)
+ if (ret == -EOPNOTSUPP || ret == -ENODEV)
dwc->usb2_generic_phy[i] = NULL;
else
return dev_err_probe(dev, ret, "failed to lookup phy %s\n",
@@ -1605,7 +1605,7 @@ static int dwc3_core_get_phy(struct dwc3 *dwc)
dwc->usb3_generic_phy[i] = devm_phy_get(dev, phy_name);
if (IS_ERR(dwc->usb3_generic_phy[i])) {
ret = PTR_ERR(dwc->usb3_generic_phy[i]);
- if (ret == -ENOSYS || ret == -ENODEV)
+ if (ret == -EOPNOTSUPP || ret == -ENODEV)
dwc->usb3_generic_phy[i] = NULL;
else
return dev_err_probe(dev, ret, "failed to lookup phy %s\n",
--
2.55.0
^ permalink raw reply [flat|nested] 14+ messages in thread
* [RFC PATCH 5/5] drm: bridge: analogix/dp: Adapt the return value changed for disabled blob
2026-09-22 2:47 [RFC PATCH 0/5] phy: core: Use EOPNOTSUPP for disabled blob return value Inochi Amaoto
` (3 preceding siblings ...)
2026-09-22 2:47 ` [RFC PATCH 4/5] usb: dwc3: core: " Inochi Amaoto
@ 2026-09-22 2:47 ` Inochi Amaoto
4 siblings, 0 replies; 14+ messages in thread
From: Inochi Amaoto @ 2026-09-22 2:47 UTC (permalink / raw)
To: Hans de Goede, Damien Le Moal, Niklas Cassel, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
Minas Harutyunyan, Greg Kroah-Hartman, Thinh Nguyen, Vinod Koul,
Manivannan Sadhasivam, Damon Ding, Dmitry Baryshkov,
Heiko Stuebner
Cc: Inochi Amaoto, linux-ide, linux-kernel, dri-devel, linux-usb,
linux-phy, Yixun Lan, Longbin Li
Check EOPNOTSUPP for disabled helper function as the change in phy core.
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
---
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
index 30c0c0b41d5a..8e26cd772482 100644
--- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
+++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
@@ -1360,7 +1360,7 @@ analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data)
* phy itself is not enabled, so we can move forward
* assigning NULL to phy pointer.
*/
- if (ret == -ENOSYS || ret == -ENODEV)
+ if (ret == -EOPNOTSUPP || ret == -ENODEV)
dp->phy = NULL;
else
return ERR_PTR(ret);
--
2.55.0
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [RFC PATCH 2/5] ata: libahci_platform: Adapt the return value changed for disabled blob
2026-09-22 2:47 ` [RFC PATCH 2/5] ata: libahci_platform: Adapt the return value changed for disabled blob Inochi Amaoto
@ 2026-09-22 3:23 ` Damien Le Moal
2026-09-22 6:10 ` Inochi Amaoto
0 siblings, 1 reply; 14+ messages in thread
From: Damien Le Moal @ 2026-09-22 3:23 UTC (permalink / raw)
To: Inochi Amaoto, Hans de Goede, Niklas Cassel, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
Minas Harutyunyan, Greg Kroah-Hartman, Thinh Nguyen, Vinod Koul,
Manivannan Sadhasivam, Damon Ding, Dmitry Baryshkov,
Heiko Stuebner
Cc: linux-ide, linux-kernel, dri-devel, linux-usb, linux-phy,
Yixun Lan, Longbin Li
On 9/22/26 11:47, Inochi Amaoto wrote:
> Check EOPNOTSUPP for disabled helper function as the change in phy core.
>
> Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
> ---
> drivers/ata/libahci_platform.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c
> index 6e072d681341..3e8ddbeb49b3 100644
> --- a/drivers/ata/libahci_platform.c
> +++ b/drivers/ata/libahci_platform.c
> @@ -371,11 +371,11 @@ static int ahci_platform_get_phy(struct ahci_host_priv *hpriv, u32 port,
>
> rc = PTR_ERR(hpriv->phys[port]);
> switch (rc) {
> - case -ENOSYS:
> + case -EOPNOTSUPP:
> /* No PHY support. Check if PHY is required. */
> if (of_property_present(node, "phys")) {
> dev_err(dev,
> - "couldn't get PHY in node %pOFn: ENOSYS\n",
> + "couldn't get PHY in node %pOFn: EOPNOTSUPP\n",
I do not see the point in printing an error code name. Instead, let's make the
error message more sensible. Something like:
dev_err(dev, "Node %pOFn: PHY not supported\n", node);
Or
dev_err(dev, "PHY not supported on node %pOFn\n", node);
> node);
> break;
> }
--
Damien Le Moal
Western Digital Research
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [RFC PATCH 4/5] usb: dwc3: core: Adapt the return value changed for disabled blob
2026-09-22 2:47 ` [RFC PATCH 4/5] usb: dwc3: core: " Inochi Amaoto
@ 2026-09-22 5:34 ` Greg Kroah-Hartman
2026-09-22 6:11 ` Inochi Amaoto
0 siblings, 1 reply; 14+ messages in thread
From: Greg Kroah-Hartman @ 2026-09-22 5:34 UTC (permalink / raw)
To: Inochi Amaoto
Cc: Hans de Goede, Damien Le Moal, Niklas Cassel, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
Minas Harutyunyan, Thinh Nguyen, Vinod Koul,
Manivannan Sadhasivam, Damon Ding, Dmitry Baryshkov,
Heiko Stuebner, linux-ide, linux-kernel, dri-devel, linux-usb,
linux-phy, Yixun Lan, Longbin Li
On Tue, Sep 22, 2026 at 10:47:19AM +0800, Inochi Amaoto wrote:
> Check EOPNOTSUPP for disabled helper function as the change in phy core.
That says what, but not why. And what "as the change" specifically? Be
verbose please.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [RFC PATCH 1/5] phy: core: Use EOPNOTSUPP for disabled blob return value
2026-09-22 2:47 ` [RFC PATCH 1/5] " Inochi Amaoto
@ 2026-09-22 5:35 ` Greg Kroah-Hartman
2026-09-22 6:10 ` Inochi Amaoto
0 siblings, 1 reply; 14+ messages in thread
From: Greg Kroah-Hartman @ 2026-09-22 5:35 UTC (permalink / raw)
To: Inochi Amaoto
Cc: Hans de Goede, Damien Le Moal, Niklas Cassel, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
Minas Harutyunyan, Thinh Nguyen, Vinod Koul,
Manivannan Sadhasivam, Damon Ding, Dmitry Baryshkov,
Heiko Stuebner, linux-ide, linux-kernel, dri-devel, linux-usb,
linux-phy, Yixun Lan, Longbin Li
On Tue, Sep 22, 2026 at 10:47:16AM +0800, Inochi Amaoto wrote:
> Currently, the phy subsystem uses ENOSYS for dummy blob functions,
> it does not reflect the function state correctly. As kernel already
> has EOPNOTSUPP for disabled blob function, replace ENOSYS with
> EOPNOTSUPP for a clear return value.
>
> Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
> ---
> include/linux/phy/phy.h | 52 ++++++++++++++++++++---------------------
> 1 file changed, 26 insertions(+), 26 deletions(-)
Based on the other patches in this series, this patch now breaks the
users, right? Shouldn't this all happen at once?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [RFC PATCH 1/5] phy: core: Use EOPNOTSUPP for disabled blob return value
2026-09-22 5:35 ` Greg Kroah-Hartman
@ 2026-09-22 6:10 ` Inochi Amaoto
2026-09-22 6:16 ` Greg Kroah-Hartman
0 siblings, 1 reply; 14+ messages in thread
From: Inochi Amaoto @ 2026-09-22 6:10 UTC (permalink / raw)
To: Greg Kroah-Hartman, Inochi Amaoto
Cc: Hans de Goede, Damien Le Moal, Niklas Cassel, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
Minas Harutyunyan, Thinh Nguyen, Vinod Koul,
Manivannan Sadhasivam, Damon Ding, Dmitry Baryshkov,
Heiko Stuebner, linux-ide, linux-kernel, dri-devel, linux-usb,
linux-phy, Yixun Lan, Longbin Li
On Tue, Sep 22, 2026 at 07:35:19AM +0200, Greg Kroah-Hartman wrote:
> On Tue, Sep 22, 2026 at 10:47:16AM +0800, Inochi Amaoto wrote:
> > Currently, the phy subsystem uses ENOSYS for dummy blob functions,
> > it does not reflect the function state correctly. As kernel already
> > has EOPNOTSUPP for disabled blob function, replace ENOSYS with
> > EOPNOTSUPP for a clear return value.
> >
> > Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
> > ---
> > include/linux/phy/phy.h | 52 ++++++++++++++++++++---------------------
> > 1 file changed, 26 insertions(+), 26 deletions(-)
>
> Based on the other patches in this series, this patch now breaks the
> users, right? Shouldn't this all happen at once?
>
> thanks,
>
> greg k-h
It will break, and the change should happen at one. But I think
the affect should be limited as it only affect a special edge
case: build kernel with CONFIG_GENERIC_PHY disabled. So the
break should be limited.
IIRC I was told to seperate the patch into small part so each
maintainer can take its own. Is it fine to squash these patches
into one in this a case?
Regards,
Inochi
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [RFC PATCH 2/5] ata: libahci_platform: Adapt the return value changed for disabled blob
2026-09-22 3:23 ` Damien Le Moal
@ 2026-09-22 6:10 ` Inochi Amaoto
0 siblings, 0 replies; 14+ messages in thread
From: Inochi Amaoto @ 2026-09-22 6:10 UTC (permalink / raw)
To: Damien Le Moal, Inochi Amaoto, Hans de Goede, Niklas Cassel,
Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, David Airlie, Simona Vetter,
Minas Harutyunyan, Greg Kroah-Hartman, Thinh Nguyen, Vinod Koul,
Manivannan Sadhasivam, Damon Ding, Dmitry Baryshkov,
Heiko Stuebner
Cc: linux-ide, linux-kernel, dri-devel, linux-usb, linux-phy,
Yixun Lan, Longbin Li
On Tue, Sep 22, 2026 at 12:23:54PM +0900, Damien Le Moal wrote:
> On 9/22/26 11:47, Inochi Amaoto wrote:
> > Check EOPNOTSUPP for disabled helper function as the change in phy core.
> >
> > Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
> > ---
> > drivers/ata/libahci_platform.c | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c
> > index 6e072d681341..3e8ddbeb49b3 100644
> > --- a/drivers/ata/libahci_platform.c
> > +++ b/drivers/ata/libahci_platform.c
> > @@ -371,11 +371,11 @@ static int ahci_platform_get_phy(struct ahci_host_priv *hpriv, u32 port,
> >
> > rc = PTR_ERR(hpriv->phys[port]);
> > switch (rc) {
> > - case -ENOSYS:
> > + case -EOPNOTSUPP:
> > /* No PHY support. Check if PHY is required. */
> > if (of_property_present(node, "phys")) {
> > dev_err(dev,
> > - "couldn't get PHY in node %pOFn: ENOSYS\n",
> > + "couldn't get PHY in node %pOFn: EOPNOTSUPP\n",
>
> I do not see the point in printing an error code name. Instead, let's make the
> error message more sensible. Something like:
>
> dev_err(dev, "Node %pOFn: PHY not supported\n", node);
>
> Or
>
> dev_err(dev, "PHY not supported on node %pOFn\n", node);
>
Thanks, I will take this.
Regards,
Inochi
> > node);
> > break;
> > }
>
>
> --
> Damien Le Moal
> Western Digital Research
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [RFC PATCH 4/5] usb: dwc3: core: Adapt the return value changed for disabled blob
2026-09-22 5:34 ` Greg Kroah-Hartman
@ 2026-09-22 6:11 ` Inochi Amaoto
0 siblings, 0 replies; 14+ messages in thread
From: Inochi Amaoto @ 2026-09-22 6:11 UTC (permalink / raw)
To: Greg Kroah-Hartman, Inochi Amaoto
Cc: Hans de Goede, Damien Le Moal, Niklas Cassel, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
Minas Harutyunyan, Thinh Nguyen, Vinod Koul,
Manivannan Sadhasivam, Damon Ding, Dmitry Baryshkov,
Heiko Stuebner, linux-ide, linux-kernel, dri-devel, linux-usb,
linux-phy, Yixun Lan, Longbin Li
On Tue, Sep 22, 2026 at 07:34:31AM +0200, Greg Kroah-Hartman wrote:
> On Tue, Sep 22, 2026 at 10:47:19AM +0800, Inochi Amaoto wrote:
> > Check EOPNOTSUPP for disabled helper function as the change in phy core.
>
> That says what, but not why. And what "as the change" specifically? Be
> verbose please.
>
> thanks,
>
> greg k-h
Thanks for this reminder, I will express this verbosely in the
next version.
Regards,
Inochi
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [RFC PATCH 1/5] phy: core: Use EOPNOTSUPP for disabled blob return value
2026-09-22 6:10 ` Inochi Amaoto
@ 2026-09-22 6:16 ` Greg Kroah-Hartman
2026-09-22 6:36 ` Inochi Amaoto
0 siblings, 1 reply; 14+ messages in thread
From: Greg Kroah-Hartman @ 2026-09-22 6:16 UTC (permalink / raw)
To: Inochi Amaoto
Cc: Hans de Goede, Damien Le Moal, Niklas Cassel, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
Minas Harutyunyan, Thinh Nguyen, Vinod Koul,
Manivannan Sadhasivam, Damon Ding, Dmitry Baryshkov,
Heiko Stuebner, linux-ide, linux-kernel, dri-devel, linux-usb,
linux-phy, Yixun Lan, Longbin Li
On Tue, Sep 22, 2026 at 02:10:01PM +0800, Inochi Amaoto wrote:
> On Tue, Sep 22, 2026 at 07:35:19AM +0200, Greg Kroah-Hartman wrote:
> > On Tue, Sep 22, 2026 at 10:47:16AM +0800, Inochi Amaoto wrote:
> > > Currently, the phy subsystem uses ENOSYS for dummy blob functions,
> > > it does not reflect the function state correctly. As kernel already
> > > has EOPNOTSUPP for disabled blob function, replace ENOSYS with
> > > EOPNOTSUPP for a clear return value.
> > >
> > > Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
> > > ---
> > > include/linux/phy/phy.h | 52 ++++++++++++++++++++---------------------
> > > 1 file changed, 26 insertions(+), 26 deletions(-)
> >
> > Based on the other patches in this series, this patch now breaks the
> > users, right? Shouldn't this all happen at once?
> >
> > thanks,
> >
> > greg k-h
>
> It will break, and the change should happen at one. But I think
> the affect should be limited as it only affect a special edge
> case: build kernel with CONFIG_GENERIC_PHY disabled. So the
> break should be limited.
>
> IIRC I was told to seperate the patch into small part so each
> maintainer can take its own. Is it fine to squash these patches
> into one in this a case?
You can't break bisection of the tree, so if it all has to happen in one
commit, that's required.
But really, why is this needed at all? Who will benefit from this
change?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [RFC PATCH 1/5] phy: core: Use EOPNOTSUPP for disabled blob return value
2026-09-22 6:16 ` Greg Kroah-Hartman
@ 2026-09-22 6:36 ` Inochi Amaoto
0 siblings, 0 replies; 14+ messages in thread
From: Inochi Amaoto @ 2026-09-22 6:36 UTC (permalink / raw)
To: Greg Kroah-Hartman, Inochi Amaoto
Cc: Hans de Goede, Damien Le Moal, Niklas Cassel, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Luca Ceresoli, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter,
Minas Harutyunyan, Thinh Nguyen, Vinod Koul,
Manivannan Sadhasivam, Damon Ding, Dmitry Baryshkov,
Heiko Stuebner, linux-ide, linux-kernel, dri-devel, linux-usb,
linux-phy, Yixun Lan, Longbin Li
On Tue, Sep 22, 2026 at 08:16:16AM +0200, Greg Kroah-Hartman wrote:
> On Tue, Sep 22, 2026 at 02:10:01PM +0800, Inochi Amaoto wrote:
> > On Tue, Sep 22, 2026 at 07:35:19AM +0200, Greg Kroah-Hartman wrote:
> > > On Tue, Sep 22, 2026 at 10:47:16AM +0800, Inochi Amaoto wrote:
> > > > Currently, the phy subsystem uses ENOSYS for dummy blob functions,
> > > > it does not reflect the function state correctly. As kernel already
> > > > has EOPNOTSUPP for disabled blob function, replace ENOSYS with
> > > > EOPNOTSUPP for a clear return value.
> > > >
> > > > Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
> > > > ---
> > > > include/linux/phy/phy.h | 52 ++++++++++++++++++++---------------------
> > > > 1 file changed, 26 insertions(+), 26 deletions(-)
> > >
> > > Based on the other patches in this series, this patch now breaks the
> > > users, right? Shouldn't this all happen at once?
> > >
> > > thanks,
> > >
> > > greg k-h
> >
> > It will break, and the change should happen at one. But I think
> > the affect should be limited as it only affect a special edge
> > case: build kernel with CONFIG_GENERIC_PHY disabled. So the
> > break should be limited.
> >
> > IIRC I was told to seperate the patch into small part so each
> > maintainer can take its own. Is it fine to squash these patches
> > into one in this a case?
>
> You can't break bisection of the tree, so if it all has to happen in one
> commit, that's required.
>
Good to know, I will squash them.
> But really, why is this needed at all? Who will benefit from this
> change?
>
This change make the phy subsystem aligned with other subsystem like
clk, reset... they both use -EOPNOTSUPP. After checking the comment
in errno.h. I think this is more clear to provide the information
about unsupported function.
The related discussion is at
https://lore.kernel.org/linux-phy/20260907114837.2y55l7dfqqrgcka2@skbuf/
After some discussion, Vladimir think it is possible to go, so I
send this patch as an improvement.
Regards,
Inochi
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2026-09-22 6:37 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-22 2:47 [RFC PATCH 0/5] phy: core: Use EOPNOTSUPP for disabled blob return value Inochi Amaoto
2026-09-22 2:47 ` [RFC PATCH 1/5] " Inochi Amaoto
2026-09-22 5:35 ` Greg Kroah-Hartman
2026-09-22 6:10 ` Inochi Amaoto
2026-09-22 6:16 ` Greg Kroah-Hartman
2026-09-22 6:36 ` Inochi Amaoto
2026-09-22 2:47 ` [RFC PATCH 2/5] ata: libahci_platform: Adapt the return value changed for disabled blob Inochi Amaoto
2026-09-22 3:23 ` Damien Le Moal
2026-09-22 6:10 ` Inochi Amaoto
2026-09-22 2:47 ` [RFC PATCH 3/5] usb: dwc2: " Inochi Amaoto
2026-09-22 2:47 ` [RFC PATCH 4/5] usb: dwc3: core: " Inochi Amaoto
2026-09-22 5:34 ` Greg Kroah-Hartman
2026-09-22 6:11 ` Inochi Amaoto
2026-09-22 2:47 ` [RFC PATCH 5/5] drm: bridge: analogix/dp: " Inochi Amaoto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®