Re: [PATCH 1/3] driver core: Add ability for arch code to setup pdev_archdata

2011-06-22 Thread Mike Frysinger
On Wed, Jun 22, 2011 at 08:02, Kumar Gala wrote: > --- /dev/null > +++ b/include/asm-generic/platform_device.h > @@ -0,0 +1,11 @@ missing header blob with explanation/copyright/license > +/* > + * an architecture can override to define arch_setup_pdev_archdata > + */ > +#ifndef arch_setup_pdev_ar

[PATCH 1/3] driver core: Add ability for arch code to setup pdev_archdata

2011-06-22 Thread Kumar Gala
On some architectures we need to setup pdev_archdata before we add the device. Waiting til a bus_notifier is too late since we might need the pdev_archdata in the bus notifier. One example is setting up of dma_mask pointers such that it can be used in a bus_notifier. We add noop version of arch_

Re: [PATCH 1/3] driver core: Add ability for arch code to setup pdev_archdata

2010-08-05 Thread Greg KH
On Fri, Aug 06, 2010 at 01:43:51AM +1000, Stephen Rothwell wrote: > Hi Kumar, > > On Thu, 5 Aug 2010 10:15:45 -0500 Kumar Gala > wrote: > > > > --- a/drivers/base/platform.c > > +++ b/drivers/base/platform.c > > @@ -19,6 +19,7 @@ > > #include > > #include > > #include > > +#include > >

Re: [PATCH 1/3] driver core: Add ability for arch code to setup pdev_archdata

2010-08-05 Thread Kumar Gala
On Aug 5, 2010, at 10:43 AM, Stephen Rothwell wrote: > Hi Kumar, > > On Thu, 5 Aug 2010 10:15:45 -0500 Kumar Gala > wrote: >> >> --- a/drivers/base/platform.c >> +++ b/drivers/base/platform.c >> @@ -19,6 +19,7 @@ >> #include >> #include >> #include >> +#include >> >> #include "base.h" >

Re: [PATCH 1/3] driver core: Add ability for arch code to setup pdev_archdata

2010-08-05 Thread Stephen Rothwell
Hi Kumar, On Thu, 5 Aug 2010 10:15:45 -0500 Kumar Gala wrote: > > --- a/drivers/base/platform.c > +++ b/drivers/base/platform.c > @@ -19,6 +19,7 @@ > #include > #include > #include > +#include > > #include "base.h" > > @@ -170,6 +171,9 @@ struct platform_device *platform_device_alloc

[PATCH 1/3] driver core: Add ability for arch code to setup pdev_archdata

2010-08-05 Thread Kumar Gala
On some architectures we need to setup pdev_archdata before we add the device. Waiting til a bus_notifier is too late since we might need the pdev_archdata in the bus notifier. One example is setting up of dma_mask pointers such that it can be used in a bus_notifier. We add ARCH_HAS_PDEV_ARCHDAT