В Tue, 08 Jul 2008 14:28:11 +1000
Benjamin Herrenschmidt <[EMAIL PROTECTED]> пишет:
> On Tue, 2008-07-08 at 13:54 +1000, Stephen Rothwell wrote:
> > Hi Vitaly,
> >
> > On Tue, 8 Jul 2008 03:12:56 +0400 Vitaly Bordug
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > +++ b/arch/powerpc/kernel/of_platform.
On Tue, 2008-07-08 at 13:54 +1000, Stephen Rothwell wrote:
> Hi Vitaly,
>
> On Tue, 8 Jul 2008 03:12:56 +0400 Vitaly Bordug <[EMAIL PROTECTED]> wrote:
> >
> > +++ b/arch/powerpc/kernel/of_platform.c
> > @@ -76,6 +76,9 @@ struct of_device* of_platform_device_create(struct
> > device_node *np,
> >
Hi Vitaly,
On Tue, 8 Jul 2008 03:12:56 +0400 Vitaly Bordug <[EMAIL PROTECTED]> wrote:
>
> +++ b/arch/powerpc/kernel/of_platform.c
> @@ -76,6 +76,9 @@ struct of_device* of_platform_device_create(struct
> device_node *np,
> return NULL;
>
> dev->dma_mask = 0xUL;
> +
There is dma_mask in of_device that is being filled upon
of_platform_device_create() but we don't properly set the struct device
in there to point back to it. coherent_dma_mask wasn't set up either -
these caused weird lock-ups and behavior of USB subsystem using
of_device USB host drivers.
Signed