All of lore.kernel.org
 help / color / mirror / Atom feed
From: Friedrich Oslage <bluebird@gentoo.org>
To: sparclinux@vger.kernel.org
Subject: Re: Ultra1 ESP detection problem
Date: Sat, 14 Mar 2009 21:42:56 +0000	[thread overview]
Message-ID: <49BC24E0.1030308@gentoo.org> (raw)
In-Reply-To: <Pine.SOC.4.64.0903132344220.21922@math.ut.ee>

David Miller schrieb:
> We need to figure out why the logic isn't triggering properly.

That's easy, because the code isn't reached :)

In build_device_resources we have

	bus->count_cells(op->node, &na, &ns);
	preg = of_get_property(op->node, bus->addr_prop_name, &num_reg);

which, for the esp, results in

	na = 2;
	ns = 2; # this should be 1 according to of_bus_sbus_count_cells
	num_reg = 12;

after doing the maths

	num_reg /= 4;
	num_reg /= na + ns;

we end up with num_reg = 0 and the for loop is skipped.

That's why I changed of_bus_sbus_match to make cell_count return 2, 1
for the esp.

Cheers,
Friedrich

  parent reply	other threads:[~2009-03-14 21:42 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-13 22:24 Ultra1 ESP detection problem Meelis Roos
2009-03-13 22:35 ` David Miller
2009-03-13 22:40 ` Meelis Roos
2009-03-14 14:43 ` Friedrich Oslage
2009-03-14 21:14 ` David Miller
2009-03-14 21:42 ` Friedrich Oslage [this message]
2009-03-15 13:23 ` Meelis Roos
2009-03-16  3:32 ` David Miller
2009-04-17 11:10 ` David Miller
2009-04-19  9:16 ` Meelis Roos
2009-04-19 10:18 ` David Miller
2009-04-21  9:16 ` David Miller
2009-04-22  9:25 ` David Miller
2009-04-22  9:59 ` Meelis Roos
2009-04-22 10:37 ` Meelis Roos
2009-04-22 10:44 ` David Miller

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=49BC24E0.1030308@gentoo.org \
    --to=bluebird@gentoo.org \
    --cc=sparclinux@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.