From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 29 Sep 2008 16:02:28 -0600 From: Grant Likely To: Jon Smirl Subject: Re: USB support on mpc5200 broken Message-ID: <20080929220228.GA18313@secretlab.ca> References: <9e4733910809241451x7492d2a9s56b4cb4ee0fe0244@mail.gmail.com> <9e4733910809241809r58bddc2ax4759b70c3f07f6cf@mail.gmail.com> <1222307447.8277.147.camel@pasglop> <48E02FD0.8000809@genesi-usa.com> <20080929034329.GB8694@yookeroo.seuss> <9e4733910809290714td2dc6cclecf2e2b080a80ca1@mail.gmail.com> <20080929201829.GA16153@ld0162-tx32.am.freescale.net> <9e4733910809291404y1b5f14b6j3f9d29cda6ce4bd5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <9e4733910809291404y1b5f14b6j3f9d29cda6ce4bd5@mail.gmail.com> Sender: Grant Likely Cc: Scott Wood , linuxppc-dev , David Gibson List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Sep 29, 2008 at 05:04:22PM -0400, Jon Smirl wrote: > On Mon, Sep 29, 2008 at 4:18 PM, Scott Wood wrote: > > On Mon, Sep 29, 2008 at 10:14:18AM -0400, Jon Smirl wrote: > >> Shouldn't the driver already know it is being used on a BE machine? > > > > No. Endianness of the CPU is not necessarily the same as the endianness > > of device registers. > > > > For example, PCI OHCI on a big-endian host. > > Endianess is encoded in the specific compatible string. > > compatible = "fsl,mpc5200b-ohci","fsl,mpc5200-ohci"; > This is BE. > > inside PCI bus section > compatible = "my-pci-ohci-card" > This would be LE > > The specifically loaded driver knows it's endianess. > > But now you're tell me I need > compatible = "fsl,mpc5200b-ohci","fsl,mpc5200-ohci", "ohci-be" No, we can't do that. You're right about the current data in compatible being sufficient. The kernel needs to deal with what firmware hands it, either by fixups to the device tree data or by teaching the driver what fsl,mpc5200b-ohci means. g.