All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andres Salomon <dilinger@queued.net>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: David Miller <davem@davemloft.net>,
	sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org,
	sam@ravnborg.org, devicetree-discuss@lists.ozlabs.org
Subject: Re: [PATCH] sparc: stop exporting openprom.h header
Date: Sat, 09 Oct 2010 20:48:08 +0000	[thread overview]
Message-ID: <20101009134808.47723524@debxo> (raw)
In-Reply-To: <20101009085143.GA1595@angua.secretlab.ca>

On Sat, 9 Oct 2010 02:51:43 -0600
Grant Likely <grant.likely@secretlab.ca> wrote:

> On Fri, Oct 08, 2010 at 02:34:50PM -0700, Andres Salomon wrote:
> > On Fri, 8 Oct 2010 13:00:25 -0600
> > Grant Likely <grant.likely@secretlab.ca> wrote:
> > 
> > > On Fri, Oct 8, 2010 at 12:52 PM, David Miller
> > > <davem@davemloft.net> wrote:
> > > > From: Andres Salomon <dilinger@queued.net>
> > > > Date: Fri, 8 Oct 2010 11:34:24 -0700
> > > >
> > > >>
> > > >> It's unknown why openprom.h was being exported; there doesn't
> > > >> seem to be any reason for it currently, and it creates
> > > >> headaches with userspace being able to potentially use the
> > > >> structures in there. So, don't export it anymore.
> > > >>
> > > >> Signed-off-by: Andres Salomon <dilinger@queued.net>
> > > >
> > > > Acked-by: David S. Miller <davem@davemloft.net>
> > > 
> > > I suppose it makes sense for me to pick this one up into my tree
> > > so it is grouped with the rest of the pdt patches.  I'll pick it
> > > up once Andres reposts the series.
> > > 
> > > g.
> > 
> > Ok, I sent a new version of the phandle stuff (which was easier than
> > expected, and doesn't affect any other patches).
> > 
> > So to summarize, what's pending is:
> > 
> > 1- https://patchwork.kernel.org/patch/242041/ (sparc: stop exporting
> >    openprom.h header)
> >    Acked by Dave
> > 
> > 2- https://patchwork.kernel.org/patch/242601/ ([v3] sparc: convert
> >    various prom_* functions to use phandle)
> >    Acked by Dave
> > 
> > 3- https://patchwork.kernel.org/patch/141011/ (sparc: break out some
> >    PROM device-tree building code out into drivers/of)
> >    Acked by Dave
> > 
> > 4- https://patchwork.kernel.org/patch/141021/ (sparc: make
> >    drivers/of/pdt.c no longer sparc-only)
> >    Acked by Dave
> > 
> > 5- https://patchwork.kernel.org/patch/141031/ (of: no longer call
> > prom_ functions directly; use an ops structure)
> >    Acked by Dave
> > 
> > 6- https://patchwork.kernel.org/patch/141041/ (of: add
> >    of_pdt namespace to pdt code)
> >    Acked by Dave
> > 
> > 7- https://patchwork.kernel.org/patch/141051/ (of: add
> > package-to-path support to pdt)
> 
> I've picked up 1-7 and am build testing now.
> 
> > 8- https://patchwork.kernel.org/patch/141071/ (x86: OLPC: add OLPC
> >    device-tree support)
> 
> I'm not happy about the /proc/devicetree stuff in this patch.  I would
> rather see the proc_device_tree_init() call moved to initcall time
> so that the need for an of_pdt_init_devicetree() hook goes away, but
> there are a number of gotchas for dynamic tree users that I need to
> investigate.  Anyway, I'll get 1-7 tested and into linux-next while I
> think about patch 8.
> 

I'm failing to see why it's a problem to have the hook (which could
just as easily be a generic proc_root_init_prepare hook called from
proc_root_init(), allowing usage by various other subsystems), but
okay.  

I'm not that familiar w/ the dynamic tree stuff; do you imagine this
being an invasive change, or will it be as simple as just deferring the
init call?

WARNING: multiple messages have this Message-ID (diff)
From: Andres Salomon <dilinger@queued.net>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: David Miller <davem@davemloft.net>,
	sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org,
	sam@ravnborg.org, devicetree-discuss@lists.ozlabs.org
Subject: Re: [PATCH] sparc: stop exporting openprom.h header
Date: Sat, 9 Oct 2010 13:48:08 -0700	[thread overview]
Message-ID: <20101009134808.47723524@debxo> (raw)
In-Reply-To: <20101009085143.GA1595@angua.secretlab.ca>

On Sat, 9 Oct 2010 02:51:43 -0600
Grant Likely <grant.likely@secretlab.ca> wrote:

> On Fri, Oct 08, 2010 at 02:34:50PM -0700, Andres Salomon wrote:
> > On Fri, 8 Oct 2010 13:00:25 -0600
> > Grant Likely <grant.likely@secretlab.ca> wrote:
> > 
> > > On Fri, Oct 8, 2010 at 12:52 PM, David Miller
> > > <davem@davemloft.net> wrote:
> > > > From: Andres Salomon <dilinger@queued.net>
> > > > Date: Fri, 8 Oct 2010 11:34:24 -0700
> > > >
> > > >>
> > > >> It's unknown why openprom.h was being exported; there doesn't
> > > >> seem to be any reason for it currently, and it creates
> > > >> headaches with userspace being able to potentially use the
> > > >> structures in there. So, don't export it anymore.
> > > >>
> > > >> Signed-off-by: Andres Salomon <dilinger@queued.net>
> > > >
> > > > Acked-by: David S. Miller <davem@davemloft.net>
> > > 
> > > I suppose it makes sense for me to pick this one up into my tree
> > > so it is grouped with the rest of the pdt patches.  I'll pick it
> > > up once Andres reposts the series.
> > > 
> > > g.
> > 
> > Ok, I sent a new version of the phandle stuff (which was easier than
> > expected, and doesn't affect any other patches).
> > 
> > So to summarize, what's pending is:
> > 
> > 1- https://patchwork.kernel.org/patch/242041/ (sparc: stop exporting
> >    openprom.h header)
> >    Acked by Dave
> > 
> > 2- https://patchwork.kernel.org/patch/242601/ ([v3] sparc: convert
> >    various prom_* functions to use phandle)
> >    Acked by Dave
> > 
> > 3- https://patchwork.kernel.org/patch/141011/ (sparc: break out some
> >    PROM device-tree building code out into drivers/of)
> >    Acked by Dave
> > 
> > 4- https://patchwork.kernel.org/patch/141021/ (sparc: make
> >    drivers/of/pdt.c no longer sparc-only)
> >    Acked by Dave
> > 
> > 5- https://patchwork.kernel.org/patch/141031/ (of: no longer call
> > prom_ functions directly; use an ops structure)
> >    Acked by Dave
> > 
> > 6- https://patchwork.kernel.org/patch/141041/ (of: add
> >    of_pdt namespace to pdt code)
> >    Acked by Dave
> > 
> > 7- https://patchwork.kernel.org/patch/141051/ (of: add
> > package-to-path support to pdt)
> 
> I've picked up 1-7 and am build testing now.
> 
> > 8- https://patchwork.kernel.org/patch/141071/ (x86: OLPC: add OLPC
> >    device-tree support)
> 
> I'm not happy about the /proc/devicetree stuff in this patch.  I would
> rather see the proc_device_tree_init() call moved to initcall time
> so that the need for an of_pdt_init_devicetree() hook goes away, but
> there are a number of gotchas for dynamic tree users that I need to
> investigate.  Anyway, I'll get 1-7 tested and into linux-next while I
> think about patch 8.
> 

I'm failing to see why it's a problem to have the hook (which could
just as easily be a generic proc_root_init_prepare hook called from
proc_root_init(), allowing usage by various other subsystems), but
okay.  

I'm not that familiar w/ the dynamic tree stuff; do you imagine this
being an invasive change, or will it be as simple as just deferring the
init call?

  reply	other threads:[~2010-10-09 20:48 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-08  7:43 [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to Andres Salomon
2010-10-08  7:43 ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace Andres Salomon
2010-10-08  7:43 ` Andres Salomon
2010-10-08 17:12 ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and Grant Likely
2010-10-08 17:12   ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace Grant Likely
2010-10-08 17:17   ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and David Miller
2010-10-08 17:17     ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace David Miller
2010-10-08 17:36     ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and Grant Likely
2010-10-08 17:36       ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace Grant Likely
     [not found]       ` <20101008173650.GH3863-MrY2KI0G/OVr83L8+7iqerDks+cytr/Z@public.gmane.org>
2010-10-08 17:45         ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and David Miller
2010-10-08 17:45           ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace David Miller
2010-10-08 17:45           ` David Miller
2010-10-08 18:27           ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and Grant Likely
2010-10-08 18:27             ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace Grant Likely
2010-10-08 18:38             ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export Andres Salomon
2010-10-08 18:38               ` [PATCH 1/2 v2] of: move phandle/ihandle into types.h and export to userspace Andres Salomon
2010-10-08 18:34           ` [PATCH] sparc: stop exporting openprom.h header Andres Salomon
2010-10-08 18:34             ` Andres Salomon
2010-10-08 18:52             ` David Miller
2010-10-08 18:52               ` David Miller
2010-10-08 19:00               ` Grant Likely
2010-10-08 19:00                 ` Grant Likely
2010-10-08 19:00                 ` Grant Likely
     [not found]                 ` <AANLkTikuaM5VZadCs302HwYYhOHi1Czw2BLam3ZQP=aj-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-10-08 19:02                   ` David Miller
2010-10-08 19:02                     ` David Miller
2010-10-08 19:02                     ` David Miller
2010-10-08 21:34                 ` Andres Salomon
2010-10-08 21:34                   ` Andres Salomon
2010-10-08 21:34                   ` Andres Salomon
2010-10-09  8:51                   ` Grant Likely
2010-10-09  8:51                     ` Grant Likely
2010-10-09  8:51                     ` Grant Likely
2010-10-09 20:48                     ` Andres Salomon [this message]
2010-10-09 20:48                       ` Andres Salomon
2010-10-10  5:13                       ` Grant Likely
2010-10-10  5:13                         ` Grant Likely
2010-10-10  7:19                         ` Andres Salomon
2010-10-10  7:19                           ` Andres Salomon

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=20101009134808.47723524@debxo \
    --to=dilinger@queued.net \
    --cc=davem@davemloft.net \
    --cc=devicetree-discuss@lists.ozlabs.org \
    --cc=grant.likely@secretlab.ca \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.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.