From: Michael Trimarchi <trimarchi@gandalf.sssup.it>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/6] usb: add Marvell Kirkwood ehci host controller driver
Date: Thu, 09 Jul 2009 18:23:37 +0200 [thread overview]
Message-ID: <4A561989.1000203@gandalf.sssup.it> (raw)
In-Reply-To: <73173D32E9439E4ABB5151606C3E19E202DD54E087@SC-VEXCH1.marvell.com>
Prafulla Wadaskar wrote:
>
>
>
>> -----Original Message-----
>> From: l.pinguin at gmail.com [mailto:l.pinguin at gmail.com] On
>> Behalf Of Remy Bohmer
>> Sent: Thursday, July 09, 2009 1:00 PM
>> To: Prafulla Wadaskar; Michael Trimarchi
>> Cc: u-boot at lists.denx.de; Prabhanjan Sarnaik; Ronen Shitrit;
>> Ashish Karkare
>> Subject: Re: [PATCH 5/6] usb: add Marvell Kirkwood ehci host
>> controller driver
>>
>> Hello Prafulla,
>>
>>
>>> As stated in other email thread too.
>>> Now all dependencies for Sheevaplug board support are in accepted
>>> state except this patch
>>> http://lists.denx.de/pipermail/u-boot/2009-June/055112.html
>>>
>> I know that but I cannot test it because I do not have the
>> hardware, so I depend on others here. (it might be even you).
>> I already mentioned that I would prefer the cleanup patch
>> from Michael Trimarchi, if it is correct.
>>
>> At least there is 1 significant difference between your patch
>> and the patch of Michael
>>
>> Your patch contains this:
>> --------------------------------------------------------
>> - typeReq = req->request << 8 | req->requesttype;
>> + typeReq = req->request | req->requesttype << 8;
>>
>> switch (le16_to_cpu(typeReq)) {
>> --------------------------------------------------------
>>
>> and Michael patch contains this:
>> --------------------------------------------------------
>> - typeReq = req->request << 8 | req->requesttype;
>> + typeReq = req->request | req->requesttype << 8;
>>
>> - switch (le16_to_cpu(typeReq)) {
>> + switch (typeReq) {
>>
> Dear Remy
> These two lines makes no difference for me since le16_to_cpu macro doesn't change anything for arm little-endian machines (i.e. Sheevaplug)
> Well.. for big endian machines someone need to check since it swaps bytes.
>
> I think we should not remove this macro since it provides arch specific abstraction.
>
If you don't remove the macro I think that you have trouble with big endian
machines.
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/usb/core/hcd.c;h=95ccfa0b9fc52876f5166b3edea039409adf9a33;hb=HEAD
line 442
Michael
> Regards..
> Prafulla . .
>
>
>> --------------------------------------------------------
>>
>> So, at least one of them is wrong.
>> This difference is reason enough for me to not pull either
>> patch in until this is clear.
>>
>> Kind Regards,
>>
>> Remy
>>
>>
next prev parent reply other threads:[~2009-07-09 16:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-29 15:26 [U-Boot] [PATCH 5/6] usb: add Marvell Kirkwood ehci host controller driver Prafulla Wadaskar
2009-06-29 15:31 ` [U-Boot] [PATCH v5 6/6] Marvell Sheevaplug Board support Prafulla Wadaskar
2009-07-03 11:47 ` Prafulla Wadaskar
2009-07-03 23:46 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-07 7:26 ` Prafulla Wadaskar
2009-07-07 20:29 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-08 5:52 ` Prafulla Wadaskar
2009-07-08 6:31 ` Stefan Roese
2009-07-08 11:05 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-08 18:09 ` [U-Boot] [PATCH 5/6] usb: add Marvell Kirkwood ehci host controller driver Prafulla Wadaskar
2009-07-08 19:49 ` Remy Bohmer
2009-07-08 20:58 ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-09 6:24 ` Prafulla Wadaskar
2009-07-09 7:29 ` Remy Bohmer
2009-07-09 13:52 ` Prafulla Wadaskar
2009-07-09 14:43 ` Remy Bohmer
2009-07-09 16:23 ` Michael Trimarchi [this message]
2009-07-10 4:15 ` Prafulla Wadaskar
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=4A561989.1000203@gandalf.sssup.it \
--to=trimarchi@gandalf.sssup.it \
--cc=u-boot@lists.denx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox