<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9609</bug_id>
          
          <creation_ts>2016-05-09 18:39:00 +0000</creation_ts>
          <short_desc>4.1.x: musb fails to compile</short_desc>
          <delta_ts>2017-01-11 16:36:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>linux-yocto</component>
          <version>2.1</version>
          <rep_platform>BeagleBone</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="George McCollister">george.mccollister</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62052</commentid>
    <comment_count>0</comment_count>
    <who name="George McCollister">george.mccollister</who>
    <bug_when>2016-05-09 18:39:00 +0000</bug_when>
    <thetext>musb fails to compile on linux-yocto 4.1.

| /home/georgem/buildbot/slave/krogoth_orionlxm/build/build/tmp-glibc/work-shared/orionlxm/kernel-source/drivers/usb/musb/musb_dsps.c: In function &apos;dsps_create_musb_pdev&apos;:
| /home/georgem/buildbot/slave/krogoth_orionlxm/build/build/tmp-glibc/work-shared/orionlxm/kernel-source/drivers/usb/musb/musb_dsps.c:750:8: error: &apos;struct musb_hdrc_config&apos; has no member named &apos;maximum_speed&apos;
|   config-&gt;maximum_speed = usb_get_maximum_speed(&amp;parent-&gt;dev);
|         ^
| /home/georgem/buildbot/slave/krogoth_orionlxm/build/build/tmp-glibc/work-shared/orionlxm/kernel-source/drivers/usb/musb/musb_dsps.c:751:16: error: &apos;struct musb_hdrc_config&apos; has no member named &apos;maximum_speed&apos;
|   switch (config-&gt;maximum_speed) {
|                 ^
| /home/georgem/buildbot/slave/krogoth_orionlxm/build/build/tmp-glibc/work-shared/orionlxm/kernel-source/drivers/usb/musb/musb_dsps.c:760:9: error: &apos;struct musb_hdrc_config&apos; has no member named &apos;maximum_speed&apos;
|    config-&gt;maximum_speed = USB_SPEED_HIGH;
|          ^
| /home/georgem/buildbot/slave/krogoth_orionlxm/build/build/tmp-glibc/work-shared/orionlxm/kernel-source/scripts/Makefile.build:258: recipe for target &apos;drivers/usb/musb/musb_dsps.o&apos; failed
| make[5]: *** [drivers/usb/musb/musb_dsps.o] Error 1
| /home/georgem/buildbot/slave/krogoth_orionlxm/build/build/tmp-glibc/work-shared/orionlxm/kernel-source/scripts/Makefile.build:403: recipe for target &apos;drivers/usb/musb&apos; failed

Cherry-pick 9b7537642cb6ad400ee4a95114582ba758b3009c to fix the problem</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62146</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2016-05-12 14:48:34 +0000</bug_when>
    <thetext>Simply send the patch to linux-yocto. Going through bugzilla when the fix is
already known is just overhead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69722</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2017-01-11 16:36:34 +0000</bug_when>
    <thetext>commit 403eda4633e9037fb715d0d1e8ae847b2bd0651a
Author: Bin Liu &lt;b-liu@ti.com&gt;
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-&gt;config-&gt;maximum_speed,
    so that the glue layer can control MUSB to work in high- or full-speed.
    
    Signed-off-by: Bin Liu &lt;b-liu@ti.com&gt;
    Signed-off-by: Felipe Balbi &lt;balbi@ti.com&gt;
    Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;


git branch --contains 403eda4633e9037fb715d0d1e8ae847b2bd0651a
  standard/actions-s500
  standard/arm-versatile-926ejs
  standard/axxia/base
* standard/base
  standard/beagleboard
  standard/beaglebone
  standard/edgerouter
  standard/fsl-ls10xx
  standard/fsl-mpc8315e-rdb
  standard/intel/4.1.27/leaf-hill
  standard/intel/4.1.27/leaf-hill-old
  standard/intel/base
  standard/mti-malta32
  standard/mti-malta64
  standard/next
  standard/preempt-rt/axxia/base
  standard/preempt-rt/base
  standard/preempt-rt/intel/base
  standard/preempt-rt/next
  standard/qemuarm64
  standard/qemuppc
  standard/tiny/base
  standard/tiny/common-pc
  standard/tiny/intel/base
  standard/xilinx-zynq</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>