Devicetree
 help / color / mirror / Atom feed
From: Andreas Kemnade <andreas@kemnade.info>
To: Ettore Chimenti <ettore.chimenti@linaro.org>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>,
	Kevin Hilman <khilman@baylibre.com>,
	Roger Quadros <rogerq@kernel.org>,
	Tony Lindgren <tony@atomide.com>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Christopher Obbard <chris.obbard@oss.qualcomm.com>,
	Andrew Goodbody <andrew.goodbody@linaro.org>,
	Paul Walmsley <paul@pwsan.com>,
	Russell King <linux@armlinux.org.uk>,
	Rouven Czerwinski <rouven.czerwinski@linaro.org>,
	linux-omap@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2 7/9] ARM: dts: omap: dm816x: Remove hwmod code for USB
Date: Fri, 30 Oct 2026 13:07:13 +0100	[thread overview]
Message-ID: <20261030130713.3a404d50@kemnade.info> (raw)
In-Reply-To: <20261028-patch-ektor5-dm8168-dts-v2-7-4544429251e2@linaro.org>

On Wed, 28 Oct 2026 17:06:08 +0100
Ettore Chimenti <ettore.chimenti@linaro.org> wrote:

> From: Andrew Goodbody <andrew.goodbody@linaro.org>
> 
> Remove the hwmod property from the USB controller node and the matching
> code from the hwmod data file as this is now deprecated.
> 
> Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
> Signed-off-by: Ettore Chimenti <ettore.chimenti@linaro.org>
> ---
>  arch/arm/boot/dts/ti/omap/dm816x.dtsi      |  1 -
>  arch/arm/mach-omap2/omap_hwmod_81xx_data.c | 21 ---------------------
>  2 files changed, 22 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/ti/omap/dm816x.dtsi b/arch/arm/boot/dts/ti/omap/dm816x.dtsi
> index b839ee29e9eb..55f4b91fa1fc 100644
> --- a/arch/arm/boot/dts/ti/omap/dm816x.dtsi
> +++ b/arch/arm/boot/dts/ti/omap/dm816x.dtsi
> @@ -576,7 +576,6 @@ uart3: serial@48024000 {
>  		/* NOTE: USB needs a transceiver driver for phys to work */
>  		usb: target-module@47400000 {
>  			compatible = "ti,sysc-omap4", "ti,sysc";
> -			ti,hwmods = "usb_otg_hs";
>  			reg = <0x47400000 0x4>,
>  			      <0x47400010 0x4>;
>  			reg-names = "rev", "sysc";

As I have also some hwmod -> ti-sysc conversions cooking, I think I have
an idea why you put these two in one file. Doing this in lockstep should
be justified in the commit message.

I guess you have removed this and seem a fat WARN().
Analyzing omap_hwmod.c I found that every module action is guarded by
if (oh->_state != _HWMOD_STATE_INITIALIZED)
So I think it is time to just denoise that WARN(), since the
originial authors probably did not have ti-sysc conversion in mind.
I will prepare a patch for that. But then you can add that snippet to patch 6.

While merging this patches we just have to ensure that the hwmod removal
comes after adding ti,sysc stuff.

Regards,
Andreas

> diff --git a/arch/arm/mach-omap2/omap_hwmod_81xx_data.c b/arch/arm/mach-omap2/omap_hwmod_81xx_data.c
> index 9b5c728fb7da..b9735b507d6b 100644
> --- a/arch/arm/mach-omap2/omap_hwmod_81xx_data.c
> +++ b/arch/arm/mach-omap2/omap_hwmod_81xx_data.c
> @@ -646,26 +646,6 @@ static struct omap_hwmod_ocp_if dm814x_default_l3_slow__usbss = {
>  	.user		= OCP_USER_MPU,
>  };
>  
> -static struct omap_hwmod dm816x_usbss_hwmod = {
> -	.name		= "usb_otg_hs",
> -	.clkdm_name	= "default_l3_slow_clkdm",
> -	.main_clk	= "sysclk6_ck",
> -	.prcm		= {
> -		.omap4 = {
> -			.clkctrl_offs = DM81XX_CM_DEFAULT_USB_CLKCTRL,
> -			.modulemode = MODULEMODE_SWCTRL,
> -		},
> -	},
> -	.class		= &dm81xx_usbotg_class,
> -};
> -
> -static struct omap_hwmod_ocp_if dm816x_default_l3_slow__usbss = {
> -	.master		= &dm81xx_default_l3_slow_hwmod,
> -	.slave		= &dm816x_usbss_hwmod,
> -	.clk		= "sysclk6_ck",
> -	.user		= OCP_USER_MPU,
> -};
> -
>  static struct omap_hwmod_class_sysconfig dm816x_timer_sysc = {
>  	.rev_offs	= 0x0000,
>  	.sysc_offs	= 0x0010,
> @@ -1250,7 +1230,6 @@ static struct omap_hwmod_ocp_if *dm816x_hwmod_ocp_ifs[] __initdata = {
>  	&dm816x_l4_hs__emac1,
>  	&dm81xx_l4_hs__sata,
>  	&dm81xx_alwon_l3_slow__gpmc,
> -	&dm816x_default_l3_slow__usbss,
>  	NULL,
>  };
>  
> 


  reply	other threads:[~2026-10-30 12:07 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-28 16:06 [PATCH v2 0/9] ARM: dts: omap: dm816x: fixes and peripheral updates for DM8168 SoC Ettore Chimenti
2026-10-28 16:06 ` [PATCH v2 1/9] ARM: dts: omap: dm816x: Add specific pinctrl config defines Ettore Chimenti
2026-10-30 10:31   ` Andreas Kemnade
2026-10-28 16:06 ` [PATCH v2 2/9] ARM: dts: omap: dm816x: use dedicated SoC pinctrl Ettore Chimenti
2026-10-30 10:34   ` Andreas Kemnade
2026-10-28 16:06 ` [PATCH v2 3/9] ARM: dts: omap: dm816x: Fix pinctrl range Ettore Chimenti
2026-10-28 16:06 ` [PATCH v2 4/9] ARM: dts: omap: dm816x: refactor and align MMC node Ettore Chimenti
2026-10-30 10:30   ` Andreas Kemnade
2026-10-28 16:06 ` [PATCH v2 5/9] ARM: dts: omap: dm816x: Correct speed for sysclk5 Ettore Chimenti
2026-10-28 16:06 ` [PATCH v2 6/9] ARM: dts: omap: dm816x: Update USB node Ettore Chimenti
2026-10-28 16:19   ` sashiko-bot
2026-10-28 16:06 ` [PATCH v2 7/9] ARM: dts: omap: dm816x: Remove hwmod code for USB Ettore Chimenti
2026-10-30 12:07   ` Andreas Kemnade [this message]
2026-10-28 16:06 ` [PATCH v2 8/9] ARM: dts: omap: dm8168-evm: Correct SD card pinmux Ettore Chimenti
2026-10-28 16:06 ` [PATCH v2 9/9] ARM: dts: omap: dm8168-evm: enable MUSB multipoint support Ettore Chimenti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261030130713.3a404d50@kemnade.info \
    --to=andreas@kemnade.info \
    --cc=aaro.koskinen@iki.fi \
    --cc=andrew.goodbody@linaro.org \
    --cc=chris.obbard@oss.qualcomm.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=ettore.chimenti@linaro.org \
    --cc=khilman@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=paul@pwsan.com \
    --cc=robh@kernel.org \
    --cc=rogerq@kernel.org \
    --cc=rouven.czerwinski@linaro.org \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox