linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Giuseppe Coviello <cjg@cruxppc.org>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] Sam440ep support
Date: Tue, 06 May 2008 09:36:48 +1000	[thread overview]
Message-ID: <1210030608.21644.114.camel@pasglop> (raw)
In-Reply-To: <a265241c0805051123h595123edrd46bf65a8099c3c2@mail.gmail.com>


I wonder about the way this is split between the platform file and this
"sysdev" file.

The platform file is so small (and similar to other platform files) that
I wonder if we can move toward something aking to the 5200 simple
platform, that is have one platform with a list of matches.

Now, the sysdev file I'm not so happy about. sysdev isn't supposed to
contain board code, it's supposed to contain drivers for low level
system devices such as interrupt controllers, PCI bridges, etc... that
are shared by multiple platforms.

The code in there definitely looks like it should be done differently
too.

The IBM IIC driver should already have an of_platform_device created for
it, so we can have here a generic driver for that chip that instanciates
itself based on it. No need to create a platform device .. Or is the ibm
iic host driver only in the form of a platform device nowadays ?

That can be a problem as we end up with basically 2 devices for the same
device node... Why wouldn't ibm iic be an of platform driver ? If it's
for arch/ppc compatibility, we don't care..

You can then expose all i2c devices underneath it with generic code too
too no ? I haven't followed the discussion about i2c bindings but it
looks like you should be able to have some generic code that instanciate
all i2c devices in the device tree based on nodes under a given
controller...

Ben.

  parent reply	other threads:[~2008-05-05 23:37 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-05 18:23 [PATCH] Sam440ep support Giuseppe Coviello
2008-05-05 18:27 ` Kumar Gala
2008-05-05 19:50   ` Gerhard Pircher
2008-05-05 23:44     ` Benjamin Herrenschmidt
2008-05-06  7:51       ` Gerhard Pircher
2008-05-06  8:48         ` Benjamin Herrenschmidt
2008-05-06  9:16           ` Gerhard Pircher
2008-05-06 10:12             ` Benjamin Herrenschmidt
2008-05-06 11:14               ` Takashi Iwai
2008-05-06 11:25                 ` Benjamin Herrenschmidt
2008-05-06 11:27                   ` Benjamin Herrenschmidt
2008-05-06 11:31                   ` Takashi Iwai
2008-05-06 11:34                     ` Benjamin Herrenschmidt
2008-05-14 12:26             ` ALSA fixes for non-coherent archs (Re: [PATCH] Sam440ep support) Takashi Iwai
2008-05-14 12:50               ` Gerhard Pircher
2008-05-14 21:01               ` Gerhard Pircher
2008-05-15  5:42                 ` Takashi Iwai
2008-05-19 17:23               ` Giuseppe Coviello
2008-05-20 12:48                 ` Takashi Iwai
2008-05-05 23:38   ` [PATCH] Sam440ep support Benjamin Herrenschmidt
2008-05-05 18:54 ` Josh Boyer
2008-05-05 23:40   ` Benjamin Herrenschmidt
2008-05-06  0:09     ` Josh Boyer
2008-05-05 23:36 ` Benjamin Herrenschmidt [this message]
2008-05-06  4:18   ` Sean MacLennan
2008-05-06 16:37 ` Giuseppe Coviello
2008-05-09 15:53   ` Giuseppe Coviello
2008-05-09 20:26     ` Josh Boyer
2008-05-19 12:47   ` Josh Boyer
2008-05-19 15:20     ` Giuseppe Coviello
2008-05-20 12:50       ` Josh Boyer
2008-05-20 13:34         ` Josh Boyer
2008-05-22 17:51           ` Giuseppe Coviello

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=1210030608.21644.114.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=cjg@cruxppc.org \
    --cc=linuxppc-dev@ozlabs.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 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).