linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Erhard Furtner <erhard_f@mailbox.org>
To: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>, linuxppc-dev@lists.ozlabs.org
Subject: Re: Missing '#size-cells' in /ht@0,f2000000/pci@8/mac-io@7/i2s@0 on G5/G4 (kernel 6.13-rc3)
Date: Thu, 27 Feb 2025 15:54:38 +0100	[thread overview]
Message-ID: <20250227155438.1b7d372f@yea> (raw)
In-Reply-To: <7f795152-9d03-4f89-bfb6-125eb6e33873@linux.ibm.com>

On Thu, 27 Feb 2025 09:00:06 +0530
Madhavan Srinivasan <maddy@linux.ibm.com> wrote:

> On 2/27/25 3:44 AM, Erhard Furtner wrote:
> > On Mon, 23 Dec 2024 23:58:26 +1100
> > Michael Ellerman <mpe@ellerman.id.au> wrote:
> >   
> >> Erhard Furtner <erhard_f@mailbox.org> writes:  
> >>> Greetings!
> >>>
> >>> I am aware there is commit cf89c9434af122f28a3552e6f9cc5158c33ce50a
> >>> (already merged in v6.13-rc3) which fixes some of the "Missing
> >>> '#size-cells' errors" but there is more:
> >>>
> >>> ------------[ cut here ]------------
> >>> hub 3-0:1.0: USB hub found
> >>> Missing '#size-cells' in /ht@0,f2000000/pci@8/mac-io@7/i2s@0    
> >>
> >> Something like below might fix it.
> >>
> >> cheers
> >>
> >>
> >> diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
> >> index 8e776ba39497..462ee36ef891 100644
> >> --- a/arch/powerpc/kernel/prom_init.c
> >> +++ b/arch/powerpc/kernel/prom_init.c
> >> @@ -2898,11 +2898,11 @@ static void __init fixup_device_tree_pmac(void)
> >>  	char type[8];
> >>  	phandle node;
> >>  
> >> -	// Some pmacs are missing #size-cells on escc nodes
> >> +	// Some pmacs are missing #size-cells on escc & i2s nodes
> >>  	for (node = 0; prom_next_node(&node); ) {
> >>  		type[0] = '\0';
> >>  		prom_getprop(node, "device_type", type, sizeof(type));
> >> -		if (prom_strcmp(type, "escc"))
> >> +		if (prom_strcmp(type, "escc") && prom_strcmp(type, "i2s"))
> >>  			continue;
> >>  
> >>  		if (prom_getproplen(node, "#size-cells") != PROM_ERROR)
> >>  
> > 
> > The fix works on my PowerMac G4 DP. And there is also https://patchwork.ozlabs.org/project/linuxppc-dev/patch/875xmizl6a.fsf@igel.home/ which seems to be the same patch.
> >   
> Sorry, missed it. I will add the above patch to -next.
> 
> Maddy

No problem, that can happen. Thanks!

It'll have to go in for v6.13 too. v6.12 was not affected.

Regards,
Erhard


      reply	other threads:[~2025-02-27 14:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-18 23:07 Missing '#size-cells' in /ht@0,f2000000/pci@8/mac-io@7/i2s@0 on G5/G4 (kernel 6.13-rc3) Erhard Furtner
2024-12-23 12:58 ` Michael Ellerman
2024-12-27 20:15   ` Erhard Furtner
2025-02-26 22:14   ` Erhard Furtner
2025-02-27  3:30     ` Madhavan Srinivasan
2025-02-27 14:54       ` Erhard Furtner [this message]

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=20250227155438.1b7d372f@yea \
    --to=erhard_f@mailbox.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=maddy@linux.ibm.com \
    --cc=mpe@ellerman.id.au \
    /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;
as well as URLs for NNTP newsgroup(s).