Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jun 2014 04:41:24 +0000
From:      "Scott, Brian" <brian.scott4@det.nsw.edu.au>
To:        "'Hans Petter Selasky'" <hps@selasky.org>, "'arm@freebsd.org'" <arm@freebsd.org>
Subject:   RE: Changes to dwc_otg USB controller code (stable/10)
Message-ID:  <7DB382CFB050654DBFF7A39B1F8056EB3321C1AB@WPEXCHMBSL1021.central.det.win>
In-Reply-To: <538EF541.9050502@selasky.org>
References:  <7DB382CFB050654DBFF7A39B1F8056EB3321BE3F@WPEXCHMBSL1021.central.det.win> <538EF145.5020608@selasky.org> <538EF541.9050502@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

A few little problems with the compiler...

/usr/src/sys/modules/usb/dwc_otg/../../../dev/usb/controller/dwc_otg.c:36=
92:21: error: assigning to 'struct usb_bus_methods *' from 'const struct =
usb_bus_methods *' discards qualifiers [-Werror,-Wincompatible-pointer-ty=
pes-discards-qualifiers]
=20       sc->sc_bus.methods =3D &dwc_otg_bus_methods;
=20                          ^ ~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/modules/usb/dwc_otg/../../../dev/usb/controller/dwc_otg.c:47=
27:16: error: assigning to 'struct usb_pipe_methods *' from 'const struct=
=20usb_pipe_methods *' discards qualifiers [-Werror,-Wincompatible-pointe=
r-types-discards-qualifiers]
=20                       ep->methods =3D &dwc_otg_device_isoc_methods;
=20                                   ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/src/sys/modules/usb/dwc_otg/../../../dev/usb/controller/dwc_otg.c:47=
29:16: error: assigning to 'struct usb_pipe_methods *' from 'const struct=
=20usb_pipe_methods *' discards qualifiers [-Werror,-Wincompatible-pointe=
r-types-discards-qualifiers]
=20                       ep->methods =3D &dwc_otg_device_non_isoc_method=
s;
=20                                   ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.

[I guessing I did this right: the changeset just listed the one file chan=
ged so I copied the file over to my stable/10 source tree and compiled. I=
f there are other related things I need to track down then let me know]

Brian

-----Original Message-----
From: Hans Petter Selasky [mailto:hps@selasky.org]=20
Sent: Wednesday, 4 June 2014 8:30 PM
To: Scott, Brian; 'arm@freebsd.org'
Subject: Re: Changes to dwc_otg USB controller code (stable/10)

On 06/04/14 12:13, Hans Petter Selasky wrote:
> Hi,
>
> I'm able to reproduce this only if I connect the device directly to the=

> RPI-B. If I use an external HUB, no issue is seen.
> --HPS

I think the following patch will fix your issue:

http://svnweb.freebsd.org/changeset/base/267044

Please try and report back.

--HPS

**********************************************************************
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**********************************************************************



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7DB382CFB050654DBFF7A39B1F8056EB3321C1AB>