[U-Boot] i.MX6Q USB host support for mainline Linux (was: Re: [PATCH v2 1/2] usb/ehci: Add USB support for the MX6Q)

Dirk Behme
2012-02-12T09:54:16Z

While discussing at the U-Boot mailing list about i.MX6Q USB host
support for U-Boot, there was the question what's about the same for
mainline Linux. See below.

I'd like to continue this discussion with a new subject and adding the
Linaro mailing list.

On 12.02.2012 09:46, Marek Vasut wrote:
>> On 11.02.2012 19:46, Fabio Estevam wrote:
>>> On Sat, Feb 11, 2012 at 5:12 AM, Marek Vasut<marek.vasut@gmail.com> wrote:
>>>> btw Fabio, do we support mx6q USB host in mainline Linux ?
>>>
>>> Not yet, Marek.
>>
>> Linaro has it working with
>>
>> http://git.linaro.org/gitweb?p=bsp/freescale/linux-linaro.git;a=commit;h=de
>> 941f9ac0b59c34053618e90e3c1f1d8b5a2d22
>>
>> http://git.linaro.org/gitweb?p=bsp/freescale/linux-linaro.git;a=commit;h=40
>> 26cfa27332f2e53cfbf72cc98cf4db8c2f2127
>>
>> It shouldn't be that hard to apply these to plain mainline Linux (?).
>
> Do you believe this will be accepted into mainline Linux if basically the same
> stuff, except for mx28 did NOT get accepted?

Do you have any pointers to the discussion about this? Hopefully we
could learn from that.

> The shape of the code was almost
> identical, maybe better. Actually, even the file names are the same here and in
> the old FSL BSP for mx28.

I think the good news is at least that Linaro is working on a more or
less recent kernel (atm 3.2). So, as mentioned above, porting it from
the Linaro kernel to the mainline kernel shouldn't be that hard. The
next step would be to clean them up, hopefully learning from the mx28
experience mentioned above.

What do you think?

Best regards

Dirk