All of lore.kernel.org
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] drivers/amba: probe via device tree
Date: Sun, 22 May 2011 12:03:03 +0200	[thread overview]
Message-ID: <201105221203.03970.arnd@arndb.de> (raw)
In-Reply-To: <BANLkTi=8vX1Cs_fzpQXZBuuDuLYLu1FGmg@mail.gmail.com>

On Saturday 21 May 2011 19:42:34 Grant Likely wrote:
> 1) drop amba-bus entirely and use platform_device everywhere, similar
> to what OMAP has done
> 2) strictly create amba_devices for nodes compatible with "arm,amba-device"
> 3) be intelligent about amba device creation; create an amba_device
> only for devices we know are driven with amba_driver.

Or maybe

4) Use amba_device for all devices on an amba bus (identified by
the compatible property of the bus), but mark the ones that do
not have primecell compatible registers so that the amba bus
does not try to look at them but instead takes the information
from the device tree.

Even though this might seem a bit silly when most devices are
not primecell ones, but it could be used as an incentive for
hardware designers (I can dream, right?) to provide them in future
designs. It would also make it easier to document the actual bus
hierarchy correctly.

	Arnd

WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd@arndb.de>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>,
	Rob Herring <robherring2@gmail.com>,
	devicetree-discuss@lists.ozlabs.org,
	Jeremy Kerr <jeremy.kerr@canonical.com>,
	linux-arm-kernel@lists.infradead.org,
	"Rafael J. Wysocki" <rjw@sisk.pl>, Kevin Hilman <khilman@ti.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Segher Boessenkool <segher@kernel.crashing.org>
Subject: Re: [PATCH 2/2] drivers/amba: probe via device tree
Date: Sun, 22 May 2011 12:03:03 +0200	[thread overview]
Message-ID: <201105221203.03970.arnd@arndb.de> (raw)
In-Reply-To: <BANLkTi=8vX1Cs_fzpQXZBuuDuLYLu1FGmg@mail.gmail.com>

On Saturday 21 May 2011 19:42:34 Grant Likely wrote:
> 1) drop amba-bus entirely and use platform_device everywhere, similar
> to what OMAP has done
> 2) strictly create amba_devices for nodes compatible with "arm,amba-device"
> 3) be intelligent about amba device creation; create an amba_device
> only for devices we know are driven with amba_driver.

Or maybe

4) Use amba_device for all devices on an amba bus (identified by
the compatible property of the bus), but mark the ones that do
not have primecell compatible registers so that the amba bus
does not try to look at them but instead takes the information
from the device tree.

Even though this might seem a bit silly when most devices are
not primecell ones, but it could be used as an incentive for
hardware designers (I can dream, right?) to provide them in future
designs. It would also make it easier to document the actual bus
hierarchy correctly.

	Arnd

WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd@arndb.de>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: Kevin Hilman <khilman@ti.com>,
	Segher Boessenkool <segher@kernel.crashing.org>,
	Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	"Rafael J. Wysocki" <rjw@sisk.pl>,
	Jeremy Kerr <jeremy.kerr@canonical.com>,
	devicetree-discuss@lists.ozlabs.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/2] drivers/amba: probe via device tree
Date: Sun, 22 May 2011 12:03:03 +0200	[thread overview]
Message-ID: <201105221203.03970.arnd@arndb.de> (raw)
In-Reply-To: <BANLkTi=8vX1Cs_fzpQXZBuuDuLYLu1FGmg@mail.gmail.com>

On Saturday 21 May 2011 19:42:34 Grant Likely wrote:
> 1) drop amba-bus entirely and use platform_device everywhere, similar
> to what OMAP has done
> 2) strictly create amba_devices for nodes compatible with "arm,amba-device"
> 3) be intelligent about amba device creation; create an amba_device
> only for devices we know are driven with amba_driver.

Or maybe

4) Use amba_device for all devices on an amba bus (identified by
the compatible property of the bus), but mark the ones that do
not have primecell compatible registers so that the amba bus
does not try to look at them but instead takes the information
from the device tree.

Even though this might seem a bit silly when most devices are
not primecell ones, but it could be used as an incentive for
hardware designers (I can dream, right?) to provide them in future
designs. It would also make it easier to document the actual bus
hierarchy correctly.

	Arnd

  parent reply	other threads:[~2011-05-22 10:03 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-19 18:28 [PATCH v2 0/2] amba bus device tree probing Rob Herring
2011-05-19 18:28 ` Rob Herring
2011-05-19 18:28 ` [PATCH 1/2] dt: check for devices already created fron DT scan Rob Herring
2011-05-19 18:28   ` Rob Herring
2011-05-19 19:54   ` Grant Likely
2011-05-19 19:54     ` Grant Likely
2011-05-19 18:28 ` [PATCH 2/2] drivers/amba: probe via device tree Rob Herring
2011-05-19 18:28   ` Rob Herring
2011-05-19 20:01   ` Grant Likely
2011-05-19 20:01     ` Grant Likely
2011-05-19 23:30     ` Rob Herring
2011-05-19 23:30       ` Rob Herring
2011-05-19 23:39       ` Grant Likely
2011-05-19 23:39         ` Grant Likely
2011-05-20 13:24         ` Rob Herring
2011-05-20 13:24           ` Rob Herring
2011-05-20 14:21           ` Arnd Bergmann
2011-05-20 14:21             ` Arnd Bergmann
2011-05-20 15:17             ` Rob Herring
2011-05-20 15:17               ` Rob Herring
2011-05-20 16:08               ` Stephen Neuendorffer
2011-05-20 16:08                 ` Stephen Neuendorffer
2011-05-21 17:42                 ` Grant Likely
2011-05-21 17:42                   ` Grant Likely
2011-05-21 23:47                   ` Russell King - ARM Linux
2011-05-21 23:47                     ` Russell King - ARM Linux
2011-05-21 23:47                     ` Russell King - ARM Linux
2011-05-22 10:00                     ` Rafael J. Wysocki
2011-05-22 10:00                       ` Rafael J. Wysocki
2011-05-22 10:00                       ` Rafael J. Wysocki
2011-05-22 15:46                     ` Rob Herring
2011-05-22 15:46                       ` Rob Herring
2011-05-22 15:46                       ` Rob Herring
2011-05-23 15:23                     ` Grant Likely
2011-05-23 15:23                       ` Grant Likely
2011-05-22 10:03                   ` Arnd Bergmann [this message]
2011-05-22 10:03                     ` Arnd Bergmann
2011-05-22 10:03                     ` Arnd Bergmann
2011-05-25  9:03                     ` Linus Walleij
2011-05-25  9:03                       ` Linus Walleij
2011-05-23  9:37                   ` Kristoffer Glembo
2011-05-23  9:37                     ` Kristoffer Glembo
2011-05-23  9:37                     ` Kristoffer Glembo
2011-05-23  9:58                     ` Russell King - ARM Linux
2011-05-23  9:58                       ` Russell King - ARM Linux
2011-05-23 15:09                       ` Grant Likely
2011-05-23 15:09                         ` Grant Likely
2011-05-23 15:09                         ` Grant Likely
2011-05-24 15:03                         ` Rob Herring
2011-05-24 15:03                           ` Rob Herring
2011-05-24 15:03                           ` Rob Herring
2011-05-25  3:02                           ` Shawn Guo
2011-05-25  3:02                             ` Shawn Guo
2011-05-25  3:02                             ` Shawn Guo
2011-05-25  9:07                           ` Linus Walleij
2011-05-25  9:07                             ` Linus Walleij
2011-05-21 23:35                 ` Russell King - ARM Linux
2011-05-21 23:35                   ` Russell King - ARM Linux
2011-05-23 15:00                   ` Stephen Neuendorffer
2011-05-23 15:00                     ` Stephen Neuendorffer
2011-05-23 15:47                     ` Russell King - ARM Linux
2011-05-23 15:47                       ` Russell King - ARM Linux
2011-05-21  4:00               ` Segher Boessenkool
2011-05-21  4:00                 ` Segher Boessenkool
2011-05-21 14:55                 ` Rob Herring
2011-05-21 14:55                   ` Rob Herring
2011-05-21 15:18                   ` Segher Boessenkool
2011-05-21 15:18                     ` Segher Boessenkool
2011-05-21 17:43                     ` Grant Likely
2011-05-21 17:43                       ` Grant Likely

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=201105221203.03970.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.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.