Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
* [PATCH] ARM: imx6q: remove unused header includes
@ 2026-09-11 20:55 Heiner Kallweit
  2026-09-11 21:02 ` sashiko-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Heiner Kallweit @ 2026-09-11 20:55 UTC (permalink / raw)
  To: Russell King, Frank Li, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam
  Cc: linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev,
	Tom Rini, Ilias Apalodimas, Stefano Babic, NXP i.MX U-Boot Team

After 8392af7be78d ("ARM: imx6q: remove KSZ9021 PHY fixup") there's
no user of phy.h and micrel_phy.h left.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 arch/arm/mach-imx/mach-imx6q.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
index 58f53fba2..00ac52cf2 100644
--- a/arch/arm/mach-imx/mach-imx6q.c
+++ b/arch/arm/mach-imx/mach-imx6q.c
@@ -8,9 +8,7 @@
 #include <linux/irqchip.h>
 #include <linux/of_platform.h>
 #include <linux/pci.h>
-#include <linux/phy.h>
 #include <linux/regmap.h>
-#include <linux/micrel_phy.h>
 #include <linux/mfd/syscon.h>
 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
 #include <asm/mach/arch.h>
-- 
2.55.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ARM: imx6q: remove unused header includes
  2026-09-11 20:55 [PATCH] ARM: imx6q: remove unused header includes Heiner Kallweit
@ 2026-09-11 21:02 ` sashiko-bot
  0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-09-11 21:02 UTC (permalink / raw)
  To: Heiner Kallweit; +Cc: imx, Frank.Li

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Removing <linux/phy.h> and <linux/micrel_phy.h> causes a build failure because the prerequisite commit 8392af7be78d is not present in the baseline, leaving PHY-related code intact.
--

commit a97dbfcf09e3d32d8bf22f55a25ab0c09018688e
Author: Heiner Kallweit <hkallweit1@gmail.com>

ARM: imx6q: remove unused header includes

This commit removes the includes for phy.h and micrel_phy.h in mach-imx6q.c.
The commit message indicates these headers are no longer used after a prior
commit.

> diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
> index 7f62009257526..8aa76f42ab76e 100644
> --- a/arch/arm/mach-imx/mach-imx6q.c
> +++ b/arch/arm/mach-imx/mach-imx6q.c
> @@ -8,9 +8,7 @@
>  #include <linux/irqchip.h>
>  #include <linux/of_platform.h>
>  #include <linux/pci.h>
> -#include <linux/phy.h>
>  #include <linux/regmap.h>
> -#include <linux/micrel_phy.h>

[Severity: Low]
Does this removal cause a build failure in the current tree? It appears that
the prerequisite commit 8392af7be78d is not present in this baseline, leaving
PHY-related code intact.

For instance, ksz9021rn_phy_fixup() relies on struct phy_device, phy_write(),
and MICREL_KSZ9021_EXTREG_CTRL defined in the removed headers:

arch/arm/mach-imx/mach-imx6q.c:ksz9021rn_phy_fixup() {
	if (IS_BUILTIN(CONFIG_PHYLIB)) {
		/* min rx data delay */
		phy_write(phydev, MICREL_KSZ9021_EXTREG_CTRL,
			0x8000 | MICREL_KSZ9021_RGMII_RX_DATA_PAD_SCEW);
		...
}

Additionally, imx6q_enet_phy_init() relies on phy_register_fixup_for_uid
and PHY constants that are no longer included:

arch/arm/mach-imx/mach-imx6q.c:imx6q_enet_phy_init() {
	if (IS_BUILTIN(CONFIG_PHYLIB)) {
		phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK,
				ksz9021rn_phy_fixup);
	}
}

Removing these headers unconditionally triggers a compile time regression due
to undeclared identifiers.

>  #include <linux/mfd/syscon.h>
>  #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
>  #include <asm/mach/arch.h>

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/3cec5f38-e0d6-4d12-88d4-74cb0000a2f2@gmail.com?part=1

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-11 21:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-11 20:55 [PATCH] ARM: imx6q: remove unused header includes Heiner Kallweit
2026-09-11 21:02 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox