mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: julian.calaby@gmail.com
Cc: linux@roeck-us.net, sparclinux@vger.kernel.org,
	arend@broadcom.com, zajec5@gmail.com,
	linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org,
	hauke@hauke-m.de, arnd@arndb.de
Subject: Re: [PATCH] bcma: Add dependency on OF_ADDRESS
Date: Fri, 10 Oct 2014 00:32:38 -0400 (EDT)	[thread overview]
Message-ID: <20141010.003238.851779524160284732.davem@davemloft.net> (raw)
In-Reply-To: <CAGRGNgWWSX8rYatphNAmx+j3wZ7RAXgucUzi_7M6-3NeUjQDEg@mail.gmail.com>

From: Julian Calaby <julian.calaby@gmail.com>
Date: Fri, 10 Oct 2014 11:24:53 +1100

> Hi,
> 
> On Fri, Oct 10, 2014 at 4:21 AM, Guenter Roeck <linux@roeck-us.net> wrote:
>> On Thu, Oct 09, 2014 at 07:15:32PM +0200, Arend van Spriel wrote:
>>> On 10/09/14 18:54, Rafał Miłecki wrote:
>>> >On 9 October 2014 18:41, Guenter Roeck<linux@roeck-us.net>  wrote:
>>> >>Commit 2101e533f41a ("bcma: register bcma as device tree driver")
>>> >>introduces a hard dependency on OF_ADDRESS into the bcma driver.
>>> >>OF_ADDRESS is specifically disabled for the sparc architecture.
>>> >>This results in the following error when building sparc64:allmodconfig.
>>>
>>> Does this mean on sparc (using allmodconfig) you will get CONFIG_OF
>>> and !CONFIG_OF_ADDRESS? Does that makes sense?
>>>
>>
>> You tell me. From drivers/of/Kconfig:
>>
>> config OF_ADDRESS
>>         def_bool y
>>         depends on !SPARC
>>         select OF_ADDRESS_PCI if PCI
>>
>> Presumably there is a reason to disable OF_ADDRESS for sparc.
> 
> Why not ask the sparclinux list? (CC'd)

On sparc, at boot time we precompute all of the addresses provided in
the OF device tree.

So we need none of this OF_ADDRESS infrastructure.

Frankly, I've always believed that this is how address computation
should be done on OF platforms, and it simplifies drivers massively.
You really only need to implement 2 or 3 bus translators to make it
work.  Others have disagreed with me.

  reply	other threads:[~2014-10-10  4:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-09 16:41 Guenter Roeck
2014-10-09 16:54 ` Rafał Miłecki
2014-10-09 17:15   ` Guenter Roeck
2014-10-09 17:15   ` Arend van Spriel
2014-10-09 17:18     ` Arend van Spriel
2014-10-09 17:29       ` Guenter Roeck
2014-10-09 18:28         ` Hauke Mehrtens
2014-10-09 19:25           ` Guenter Roeck
2014-10-09 21:48             ` Hauke Mehrtens
2014-10-09 21:57               ` Guenter Roeck
2014-10-10  9:30               ` Arend van Spriel
2014-10-09 21:39           ` [PATCH] bcma: fix build when CONFIG_OF_ADDRESS is not set Hauke Mehrtens
2014-10-09 21:46             ` Guenter Roeck
2014-10-25 20:36             ` Guenter Roeck
2014-10-27 15:15               ` John W. Linville
2014-10-27 15:42                 ` Guenter Roeck
2014-10-09 17:21     ` [PATCH] bcma: Add dependency on OF_ADDRESS Guenter Roeck
2014-10-10  0:24       ` Julian Calaby
2014-10-10  4:32         ` David Miller [this message]
2014-10-09 17:28     ` Guenter Roeck

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=20141010.003238.851779524160284732.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=arend@broadcom.com \
    --cc=arnd@arndb.de \
    --cc=hauke@hauke-m.de \
    --cc=julian.calaby@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=sparclinux@vger.kernel.org \
    --cc=zajec5@gmail.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

all inboxes | Powered by JetHome®