All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 6/9] dm: usb: Add support for interrupt queues to the dm usb code
Date: Sat, 09 May 2015 18:08:12 +0200	[thread overview]
Message-ID: <554E30EC.50506@redhat.com> (raw)
In-Reply-To: <CAPnjgZ2qhgRojgpKE3xb_O_ZsU9joQLwt6WiwBN+BgjV8uJ5ug@mail.gmail.com>

Hi,

On 06-05-15 16:41, Simon Glass wrote:
> Hi Hans,
>
> On 5 May 2015 at 11:42, Simon Glass <sjg@chromium.org> wrote:
>> On 5 May 2015 at 03:54, Hans de Goede <hdegoede@redhat.com> wrote:
>>> Interrupt endpoints typically are polled for a long time by the usb
>>> controller before they return anything, so calls to submit_int_msg() can
>>> take a long time to complete this.
>>>
>>> To avoid this the u-boot code has the an interrupt queue mechanism / API,
>>> add support for this to the driver-model usb code.
>>>
>>> See the added doc comments for more details.
>>>
>>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>>> Acked-by: Simon Glass <sjg@chromium.org>
>>> ---
>>>   drivers/usb/host/usb-uclass.c | 36 ++++++++++++++++++++++++++++++++
>>>   include/usb.h                 | 48 ++++++++++++++++++++++++++++++++++++++++++-
>>>   2 files changed, 83 insertions(+), 1 deletion(-)
>>
>> Applied to u-boot-dm, thanks!
>
> Again I am getting ahead of myself. This one fails on some Samsung boards:
>
> 35: dm: usb: Add support for interrupt queues to the dm usb code
>         arm:  +   arndale odroid snow odroid-xu3
> +drivers/usb/host/ehci-hcd.o: In function `create_int_queue':
> +build/../drivers/usb/host/ehci-hcd.c:1258: multiple definition of
> `create_int_queue'
> +drivers/usb/host/usb-uclass.o:build/../drivers/usb/host/usb-uclass.c:71:
> first defined here
> +drivers/usb/host/ehci-hcd.o: In function `poll_int_queue':
> +build/../drivers/usb/host/ehci-hcd.c:1414: multiple definition of
> `poll_int_queue'
> +drivers/usb/host/usb-uclass.o:build/../drivers/usb/host/usb-uclass.c:83:
> first defined here
> +drivers/usb/host/ehci-hcd.o: In function `destroy_int_queue':
> +build/../drivers/usb/host/ehci-hcd.c:1450: multiple definition of
> `destroy_int_queue'
> +drivers/usb/host/usb-uclass.o:build/../drivers/usb/host/usb-uclass.c:94:
> first defined here
> +make[2]: *** [drivers/usb/host/built-in.o] Error 1
> +make[1]: *** [drivers/usb/host] Error 2
>
> I'll drop this patch until you respin it.

Thinking more about this, now I understand what is going on, this build
failure goes away with the patch titled:

"dm: usb: Add support for interrupt queues to the dm ehci code"

I understand that having a build failure halfway through the series is not
acceptable, so I'll squash the 2 together.

Regards

Hans

  parent reply	other threads:[~2015-05-09 16:08 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-05  9:54 [U-Boot] [PATCH v4 0/9] dm usb fixes + sunxi dm ehci support Hans de Goede
2015-05-05  9:54 ` [U-Boot] [PATCH v4 1/9] dm: usb: Make usb_get_bus easier to use for callers Hans de Goede
2015-05-05 17:41   ` Simon Glass
2015-05-05  9:54 ` [U-Boot] [PATCH v4 2/9] dm: usb: Copy over usb_device values from usb_scan_device() to final usb_device Hans de Goede
2015-05-05 15:31   ` Simon Glass
2015-05-05 17:42     ` Simon Glass
2015-05-05  9:54 ` [U-Boot] [PATCH v4 3/9] dm: usb: Use usb_get_bus in dm ehci code Hans de Goede
2015-05-05 17:42   ` Simon Glass
2015-05-05  9:54 ` [U-Boot] [PATCH v4 4/9] dm: usb: Fix finding of first upstream usb-2 hub in the ehci dm code Hans de Goede
2015-05-05 17:42   ` Simon Glass
2015-05-05  9:54 ` [U-Boot] [PATCH v4 5/9] dm: usb: Set desc_before_addr from " Hans de Goede
2015-05-05 17:42   ` Simon Glass
2015-05-05  9:54 ` [U-Boot] [PATCH v4 6/9] dm: usb: Add support for interrupt queues to the dm usb code Hans de Goede
2015-05-05 17:42   ` Simon Glass
2015-05-06 14:41     ` Simon Glass
2015-05-09 14:41       ` Hans de Goede
2015-05-09 16:08       ` Hans de Goede [this message]
2015-05-05  9:54 ` [U-Boot] [PATCH v4 7/9] dm: usb: Prefix ehci interrupt-queue functions with _ehci_ Hans de Goede
2015-05-05 17:42   ` Simon Glass
2015-05-06 15:11     ` Simon Glass
2015-05-05  9:54 ` [U-Boot] [PATCH v4 8/9] dm: usb: Add support for interrupt queues to the dm ehci code Hans de Goede
2015-05-05 17:42   ` Simon Glass
2015-05-06 15:12     ` Simon Glass
2015-05-05  9:54 ` [U-Boot] [PATCH v4 9/9] sunxi: ehci: Convert to the driver-model Hans de Goede
2015-05-05 17:42   ` Simon Glass
2015-05-05 21:06     ` Simon Glass
2015-05-05 21:37       ` Hans de Goede
2015-05-05 21:38         ` Simon Glass

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=554E30EC.50506@redhat.com \
    --to=hdegoede@redhat.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.