public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Michael Trimarchi <trimarchi@gandalf.sssup.it>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2][repost] usb: bugfix driver/usb/host/ehci-hcd.c function ehci_submit_root
Date: Sat, 11 Jul 2009 15:24:05 +0200	[thread overview]
Message-ID: <4A589275.1050109@gandalf.sssup.it> (raw)
In-Reply-To: <3efb10970907110239m5f4c20d5mbe779d913baaca64@mail.gmail.com>

Hello Stefan and Remy

Remy Bohmer wrote:
> Hello Michael,
>
> 2009/7/10 Michael Trimarchi <trimarchi@gandalf.sssup.it>:
>   
>> Hi,
>>
>> cc: Remy Bohmer
>>
>> Prafulla Wadaskar wrote:
>>     
>>> This patch is tested for USB host interface on Kirkwood based
>>> Sheevaplug platform (i.e arm little-endian machine)
>>>
>>> Signed-off-by: Prafulla Wadaskar <prafulla@marvell.com>
>>> ---
>>>  drivers/usb/host/ehci-hcd.c |    2 +-
>>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>>
>>> diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
>>> index bbd547b..7a55638 100644
>>> --- a/drivers/usb/host/ehci-hcd.c
>>> +++ b/drivers/usb/host/ehci-hcd.c
>>> @@ -550,7 +550,7 @@ ehci_submit_root(struct usb_device *dev, unsigned long
>>> pipe, void *buffer,
>>>              req->requesttype, req->requesttype,
>>>              le16_to_cpu(req->value), le16_to_cpu(req->index));
>>>  -       typeReq = req->request << 8 | req->requesttype;
>>> +       typeReq = req->request | req->requesttype << 8;
>>>          switch (le16_to_cpu(typeReq)) {
>>>       
>
> To be sure about the difference of opinions here about the le16_to_cpu() macro.
> Do you agree with this patch? If so, I will apply it.
>
>   
Linux don't do the swap, ohci hcd switch don't do the swap. I think that 
we must
remove the macro.
Stefan, is it possible to test this patch on the vct machine? is that a 
big endian?
machine? I don't understand how other machine can work, I only imagine 
that macro fix
the bug raised by Prafulla, but change the shift without test without 
the macro is only a workaround for the marvell board.
Sorry for the delay, but I don't have the ixp465 big endian with me now.
> Kind Regards,
>
> Remy
>   
Michael

  reply	other threads:[~2009-07-11 13:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-10 15:50 [U-Boot] [PATCH 1/2][repost] usb: bugfix driver/usb/host/ehci-hcd.c function ehci_submit_root Prafulla Wadaskar
2009-07-10 11:15 ` Michael Trimarchi
2009-07-11  9:39   ` Remy Bohmer
2009-07-11 13:24     ` Michael Trimarchi [this message]
2009-07-10 15:50 ` [U-Boot] [PATCH v6 2/2] Marvell Sheevaplug Board support Prafulla Wadaskar
2009-07-12 12:51   ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-12 14:37     ` Wolfgang Denk
2009-07-12 15:15       ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-12 15:54         ` Wolfgang Denk
2009-07-12 16:07           ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-13  6:06             ` Prafulla Wadaskar
2009-07-13  7:54               ` Stefan Roese

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=4A589275.1050109@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