Bug 9680 - beaglebone kernel fails in poky-lsb with gcc6
Summary: beaglebone kernel fails in poky-lsb with gcc6
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-yocto (show other bugs)
Version: 2.2
Hardware: Beagleboard Multiple
: Medium+ major
Target Milestone: 2.2 M1
Assignee: Bruce Ashfield
QA Contact: Francisco Pedraza
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-05-27 09:41 UTC by Ross Burton
Modified: 2016-07-01 16:08 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2016-05-27 09:41:46 UTC
The kernel fails to build with MACHINE=beaglebone DISTRO=poky-lsb with GCC6.

| /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm-lsb/build/build/tmp/work-shared/beaglebone/kernel-source/drivers/usb/musb/musb_dsps.c: In function 'dsps_create_musb_pdev':
| /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm-lsb/build/build/tmp/work-shared/beaglebone/kernel-source/drivers/usb/musb/musb_dsps.c:750:8: error: 'struct musb_hdrc_config' has no member named 'maximum_speed'
|   config->maximum_speed = usb_get_maximum_speed(&parent->dev);
|         ^~
| /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm-lsb/build/build/tmp/work-shared/beaglebone/kernel-source/drivers/usb/musb/musb_dsps.c:751:16: error: 'struct musb_hdrc_config' has no member named 'maximum_speed'
|   switch (config->maximum_speed) {
|                 ^~
| /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-arm-lsb/build/build/tmp/work-shared/beaglebone/kernel-source/drivers/usb/musb/musb_dsps.c:760:9: error: 'struct musb_hdrc_config' has no member named 'maximum_speed'
|    config->maximum_speed = USB_SPEED_HIGH;
|          ^~

Full logs available at http://errors.yoctoproject.org/Errors/Details/68366/.
Comment 1 Bruce Ashfield 2016-05-27 16:06:37 UTC
Looks like I was sent a partial change for some musb fixes, a backport of

commit 9b7537642cb6ad400ee4a95114582ba758b3009c
Author: Bin Liu <b-liu@ti.com>
Date:   Wed Sep 9 13:17:23 2015 -0500

    usb: musb: set the controller speed based on the config setting

    Set the Power register HSENAB bit based on musb->config->maximum_speed,
    so that the glue layer can control MUSB to work in high- or full-speed.

    Signed-off-by: Bin Liu <b-liu@ti.com>
    Signed-off-by: Felipe Balbi <balbi@ti.com>


Should get us the missing structure.
Comment 2 Ross Burton 2016-06-30 15:24:13 UTC
Fixed in oe-core b746223787a0195c3a4d16523003c62ec0ac8451.