From: Hans de Goede <hdegoede@redhat.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 05/15] dm: usb: Prefix ehci interrupt-queue functions with _ehci_
Date: Mon, 11 May 2015 20:27:28 +0200 [thread overview]
Message-ID: <5550F490.4040607@redhat.com> (raw)
In-Reply-To: <CAPnjgZ0G2r_H03b_VvVj+wWZ0JkHRJ3cK-YTk3Hw30E3+ndt8A@mail.gmail.com>
Hi,
On 10-05-15 23:58, Simon Glass wrote:
> Hi Hans,
>
> On 10 May 2015 at 06:10, Hans de Goede <hdegoede@redhat.com> wrote:
>> This is a preparation patch for adding interrupt-queue support to the
>> ehci dm code.
>>
>> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
>> Acked-by: Simon Glass <sjg@chromium.org>
>> ---
>
> I still see some sort of bisect problem here:
>
> Summary of 16 commits for 33 boards (32 threads, 1 job per thread)
> 01: dm: sf: Update default name of spi flash in structure udevice
> 02: usb: Fix handover of full-speed devices from ehci to companion
> 03: usb: usb_control_msg() propagate controller error code
> 04: usb: legacy_hub_port_reset() check and propagate
> usb_set_port_feature() errors
> 05: usb: Stop reset procedure when a dev is handed over to a companion hcd
> 06: dm: usb: Prefix ehci interrupt-queue functions with _ehci_
> arm: + odroid-xu3 snow arndale odroid
> +drivers/usb/host/built-in.o: In function `_ehci_submit_int_msg':
> +build/../drivers/usb/host/ehci-hcd.c:1518: undefined reference to
> `create_int_queue'
> +build/../drivers/usb/host/ehci-hcd.c:1523: undefined reference to
> `poll_int_queue'
> +build/../drivers/usb/host/ehci-hcd.c:1536: undefined reference to
> `destroy_int_queue'
> +arm-linux-gnueabihf-ld.bfd: BFD (crosstool-NG
> linaro-1.13.1-4.7-2013.04-20130415 - Linaro GCC 2013.04) 2.23.1
> assertion fail /cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/src/binutils-2.23.1/bfd/elf32-arm.c:7677
> +arm-linux-gnueabihf-ld.bfd: error: required section '.rel.plt' not
> found in the linker script
> +arm-linux-gnueabihf-ld.bfd: final link failed: Invalid operation
> +make[1]: *** [u-boot] Error 1
> +make: *** [sub-make] Error 2
> w+../drivers/usb/host/ehci-hcd.c:1266:26: warning:
> ?_ehci_create_int_queue? defined but not used [-Wunused-function]
> w+../drivers/usb/host/ehci-hcd.c:1424:14: warning:
> ?_ehci_poll_int_queue? defined but not used [-Wunused-function]
> w+../drivers/usb/host/ehci-hcd.c:1460:12: warning:
> ?_ehci_destroy_int_queue? defined but not used [-Wunused-function]
> 07: dm: usb: Add support for interrupt queues to the dm usb code
> arm: odroid-xu3 snow arndale odroid
> -drivers/usb/host/built-in.o: In function `_ehci_submit_int_msg':
> -build/../drivers/usb/host/ehci-hcd.c:1518: undefined reference to
> `create_int_queue'
> -build/../drivers/usb/host/ehci-hcd.c:1523: undefined reference to
> `poll_int_queue'
> -build/../drivers/usb/host/ehci-hcd.c:1536: undefined reference to
> `destroy_int_queue'
> -arm-linux-gnueabihf-ld.bfd: BFD (crosstool-NG
> linaro-1.13.1-4.7-2013.04-20130415 - Linaro GCC 2013.04) 2.23.1
> assertion fail /cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/src/binutils-2.23.1/bfd/elf32-arm.c:7677
> -arm-linux-gnueabihf-ld.bfd: error: required section '.rel.plt' not
> found in the linker script
> -arm-linux-gnueabihf-ld.bfd: final link failed: Invalid operation
> -make[1]: *** [u-boot] Error 1
> -make: *** [sub-make] Error 2
> w-../drivers/usb/host/ehci-hcd.c:1266:26: warning:
> ?_ehci_create_int_queue? defined but not used [-Wunused-function]
> w-../drivers/usb/host/ehci-hcd.c:1424:14: warning:
> ?_ehci_poll_int_queue? defined but not used [-Wunused-function]
> w-../drivers/usb/host/ehci-hcd.c:1460:12: warning:
> ?_ehci_destroy_int_queue? defined but not used [-Wunused-function]
> 08: dm: usb: Move printing of usb scan status to usb_scan_bus()
Ah, looking closer at this I see the problem, _ehci_submit_int_msg()
is implemented by calling create/poll/destroy_int_queue. This is working
for CONFIG_DM_USB=y configs after my patchset by _ehci_submit_int_msg()
calling the usb-uclass.c implementations of these, which then call the
_ehci_ versions of them through the controller ops.
This does not work in the intermediate state with only this patch
applied because then the usb-uclass.c implementations do not yet exist.
I'll send a v6 of this patch making ehci_submit_int_msg() use the _ehci_
prefixed versions which is the right thing to do even without the git
bisect problem this causes.
Sorry about this.
Regards,
Hans
next prev parent reply other threads:[~2015-05-11 18:27 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-10 12:10 [U-Boot] [PATCH v5 00/15] usb: ohci dm support & add sunxi ehci + ohci support Hans de Goede
2015-05-10 12:10 ` [U-Boot] [PATCH v5 01/15] usb: Fix handover of full-speed devices from ehci to companion Hans de Goede
2015-05-10 16:12 ` Marek Vasut
2015-05-11 22:36 ` Simon Glass
2015-05-10 12:10 ` [U-Boot] [PATCH v5 02/15] usb: usb_control_msg() propagate controller error code Hans de Goede
2015-05-10 16:13 ` Marek Vasut
2015-05-11 22:36 ` Simon Glass
2015-05-10 12:10 ` [U-Boot] [PATCH v5 03/15] usb: legacy_hub_port_reset() check and propagate usb_set_port_feature() errors Hans de Goede
2015-05-10 16:13 ` Marek Vasut
2015-05-11 22:36 ` Simon Glass
2015-05-10 12:10 ` [U-Boot] [PATCH v5 04/15] usb: Stop reset procedure when a dev is handed over to a companion hcd Hans de Goede
2015-05-10 16:13 ` Marek Vasut
2015-05-11 22:37 ` Simon Glass
2015-05-10 12:10 ` [U-Boot] [PATCH v5 05/15] dm: usb: Prefix ehci interrupt-queue functions with _ehci_ Hans de Goede
2015-05-10 21:58 ` Simon Glass
2015-05-11 18:27 ` Hans de Goede [this message]
2015-05-10 12:10 ` [U-Boot] [PATCH v5 06/15] dm: usb: Add support for interrupt queues to the dm usb code Hans de Goede
2015-05-11 22:37 ` Simon Glass
2015-05-10 12:10 ` [U-Boot] [PATCH v5 07/15] dm: usb: Move printing of usb scan status to usb_scan_bus() Hans de Goede
2015-05-11 22:37 ` Simon Glass
2015-05-10 12:10 ` [U-Boot] [PATCH v5 08/15] dm: usb: Add support for companion controllers Hans de Goede
2015-05-11 22:33 ` Simon Glass
2015-05-11 22:37 ` Simon Glass
2015-05-10 12:10 ` [U-Boot] [PATCH v5 09/15] dm: usb: Do not scan companion buses if no devices where handed over Hans de Goede
2015-05-11 22:33 ` Simon Glass
2015-05-11 22:37 ` Simon Glass
2015-05-10 12:10 ` [U-Boot] [PATCH v5 10/15] usb: ohci: Do not resubmit and leak urbs for interrupt packets Hans de Goede
2015-05-11 22:37 ` Simon Glass
2015-05-10 12:10 ` [U-Boot] [PATCH v5 11/15] usb: ohci: Remove unnecessary delays from hc_start and power power-on paths Hans de Goede
2015-05-10 16:11 ` Marek Vasut
2015-05-11 22:37 ` Simon Glass
2015-05-10 12:10 ` [U-Boot] [PATCH v5 12/15] usb: ohci: Skip unnecessary mdelay(1) calls in various places Hans de Goede
2015-05-10 16:12 ` Marek Vasut
2015-05-11 22:37 ` Simon Glass
2015-05-10 12:10 ` [U-Boot] [PATCH v5 13/15] usb: ohci: Add dm support Hans de Goede
2015-05-11 22:37 ` Simon Glass
2015-05-10 12:10 ` [U-Boot] [PATCH v5 14/15] sunxi: ehci: Convert to the driver-model Hans de Goede
2015-05-10 12:22 ` Ian Campbell
2015-05-11 22:37 ` Simon Glass
2015-05-10 12:10 ` [U-Boot] [PATCH v5 15/15] sunxi: ohci: Add ohci usb host controller support Hans de Goede
2015-05-11 22:37 ` Simon Glass
2015-05-12 7:23 ` Hans de Goede
2015-05-12 22:39 ` Simon Glass
2015-05-13 12:40 ` Hans de Goede
2015-05-13 19:55 ` 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=5550F490.4040607@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.