Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Dec 2016 17:01:44 +0800
From:      Ganbold Tsagaankhuu <ganbold@gmail.com>
To:        freebsd-arm <freebsd-arm@freebsd.org>, Hans Petter Selasky <hps@selasky.org>
Subject:   dwc_otg problem
Message-ID:  <CAGtf9xON0fHFT1zi-8wPjjO%2BbejfmbqLyoLsVHZCZvM8j0Aw3A@mail.gmail.com>

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

I have trouble with dwc_otg in Rk3188 device.
Kernel FreeBSD 11.0-CURRENT #134 r289559: Tue Oct 20 14:53:13 ULAT 2015
works:
...
dwcotg0: <DWC OTG 2.0 integrated USB controller> mem 0x10180000-0x101bffff
irq 48 on simplebus0
usbus0 on dwcotg0
dwcotg1: <DWC OTG 2.0 integrated USB controller> mem 0x101c0000-0x101fffff
irq 49 on simplebus0
usbus1 on dwcotg1
uart0: <16650 or compatible> mem 0x20064000-0x200643ff irq 68 on simplebus0
uart0: console (115200,n,8,1)
dwmmc0: <Synopsys DesignWare Mobile Storage Host Controller> mem
0x10214000-0x10214fff irq 55 on simplebus0
dwmmc0: Hardware version ID is 240a
mmc0: <MMC/SD bus> on dwmmc0
cryptosoft0: <software crypto>
Timecounters tick every 10.000 msec
usbus0: 480Mbps High Speed USB v2.0
IPsec: Initialized Security Association Processing.
usbus1: 480Mbps High Speed USB v2.0
ugen0.1: <DWCOTG> at usbus0
ugen1.1: <DWCOTG> at usbus1
uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
uhub1: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
mmcsd0: 4GB <SDHC SD04G 0.0 SN 6103B151 MFG 10/2012 by 19 KG> at mmc0
25.0MHz/4bit/256-block
Release APs
WARNING: WITNESS option enabled, expect reduced performance.
WARNING: DIAGNOSTIC option enabled, expect reduced performance.
Root mount waiting for: usbus1 usbus0
uhub1: 1 port with 1 removable, self powered
uhub0: 1 port with 1 removable, self powered
ugen1.2: <vendor 0x05e3> at usbus1
uhub2: <vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/85.36, addr 2> on
usbus1
Root mount waiting for: usbus1
uhub2: 4 ports with 4 removable, self powered
Root mount waiting for: usbus1
ugen1.3: <Realtek> at usbus1
urtwn0: <Realtek 802.11n NIC, class 0/0, rev 2.00/0.00, addr 3> on usbus1
urtwn0: MAC/BB RTL8188EU, RF 6052 1T1R
...

However recent head (FreeBSD 12.0-CURRENT #5 r309888M: Tue Dec 13 16:34:12
ULAT 2016) is not working:
...
dwcotg0: <DWC OTG 2.0 integrated USB controller> mem 0x10180000-0x101bffff
irq 11 on simplebus0
usbus0 on dwcotg0
dwcotg1: <DWC OTG 2.0 integrated USB controller> mem 0x101c0000-0x101fffff
irq 12 on simplebus0
usbus1 on dwcotg1
uart0: <16650 or compatible> mem 0x20064000-0x200643ff irq 15 on simplebus0
uart0: console (115200,n,8,1)
dwmmc0: <Synopsys DesignWare Mobile Storage Host Controller> mem
0x10214000-0x10214fff irq 17 on simplebus0
dwmmc0: Hardware version ID is 240a
mmc0: <MMC/SD bus> on dwmmc0
cryptosoft0: <software crypto>
Timecounters tick every 1.000 msec
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
ugen1.1: <DWCOTG OTG Root HUB> at usbus1
ugen0.1: <DWCOTG OTG Root HUB> at usbus0
uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
uhub1: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
mmcsd0: 4GB <SDHC SD04G 0.0 SN 6103B151 MFG 10/2012 by 19 KG> at mmc0
25.0MHz/4bit/256-block
Release APs
WARNING: WITNESS option enabled, expect reduced performance.
Trying to mount root from ufs:/dev/mmcsd0s2a []...
uhub0: 1 port with 1 removable, self powered
uhub1: 1 port with 1 removable, self powered
usb_alloc_device: set address 2 failed (USB_ERR_TIMEOUT, ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed,
USB_ERR_TIMEOUT
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_TIMEOUT,
ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed,
USB_ERR_TIMEOUT
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_TIMEOUT,
ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed,
USB_ERR_TIMEOUT
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_TIMEOUT,
ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed,
USB_ERR_TIMEOUT
usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_TIMEOUT,
ignored)
usbd_setup_device_desc: getting device descriptor at addr 2 failed,
USB_ERR_TIMEOUT
ugen1.2: <Unknown > at usbus1 (disconnected)
uhub_reattach_port: could not allocate new device
...

thanks,

Ganbold



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGtf9xON0fHFT1zi-8wPjjO%2BbejfmbqLyoLsVHZCZvM8j0Aw3A>