From owner-freebsd-arm@freebsd.org Tue Dec 13 09:01:45 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EA279C74DA3 for ; Tue, 13 Dec 2016 09:01:45 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-oi0-x22b.google.com (mail-oi0-x22b.google.com [IPv6:2607:f8b0:4003:c06::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B189E1F17 for ; Tue, 13 Dec 2016 09:01:45 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: by mail-oi0-x22b.google.com with SMTP id b126so116354763oia.2 for ; Tue, 13 Dec 2016 01:01:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=S7RQl9dBh+MzKKuWJ15kyOhBl1rp1JUu5+6NnHfYJuU=; b=Y3mRxTvA7w8/aVdOAdQ9QWcOh5XMaQc2ElarLqfKiibLZhCWVpOMI3B76HCjUCa9XC VtZ92IRtg+AsCmZi9K5Mlz2eUz5KsVv38bEkGpKccs6kccdZGwn3klcWmA9kASbr+s5d GBa93SB2ZPt0wXGu1NQzjF8+z++hMQw979+fNJd7Deqs8wVXn7+/fk4TGnsAfL9ctxBf HfBn5XOTlw9gL2V/TSqoQfwE9p64koTGBMvwQHwlkuoXaQzcrv/TWAAyJErEDQKnX/o4 qHSbnjjjxa9G/dMRyVERJ0qtJXeon07EBu3yTBVwQSDBA3cIb8MiNRWF4JczAftElEj3 5zaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=S7RQl9dBh+MzKKuWJ15kyOhBl1rp1JUu5+6NnHfYJuU=; b=F7RoLu1NRLvNVjvlE0+ApV3FEBnl6/7b15s64Al7mrp5eAckcohjlp/3UemG4aZ/zb kCCJCde0plgT7TvIFOBvD96fFvlhSIejOsg90uyY7lCM7GqBPLsce4BU9nmI8f3ZACsW nkTQaLoh55c0jvr5Ue3nlBj21+LkvpYje4oXLXXmSlz0AY6OByXKHQnR5tM3BaGXQaK6 Lr7ta8isd0DGh/7OPZJxRd5kfrxwKntPANl+37XrD8aZeWrpJzkKJjt16hpF7YO6Jho8 SFycghNKxqIArKQP79LRIBS+TBF+F2Fp6JmSElDzhItd3drEsQaAYBK04lguHCYW2hHH VP6Q== X-Gm-Message-State: AKaTC006OeJ+j3U659nv8u6hBVhuHlME9yfn1ts8UkvT6kzk/wra+6GlQWNU1FpVTy/isEFUpoqZoPoDQh9sUA== X-Received: by 10.157.10.40 with SMTP id 37mr49447257otg.190.1481619704618; Tue, 13 Dec 2016 01:01:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.145.33 with HTTP; Tue, 13 Dec 2016 01:01:44 -0800 (PST) From: Ganbold Tsagaankhuu Date: Tue, 13 Dec 2016 17:01:44 +0800 Message-ID: Subject: dwc_otg problem To: freebsd-arm , Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2016 09:01:46 -0000 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: mem 0x10180000-0x101bffff irq 48 on simplebus0 usbus0 on dwcotg0 dwcotg1: 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: mem 0x10214000-0x10214fff irq 55 on simplebus0 dwmmc0: Hardware version ID is 240a mmc0: on dwmmc0 cryptosoft0: 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: at usbus0 ugen1.1: at usbus1 uhub0: on usbus1 uhub1: on usbus0 mmcsd0: 4GB 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: at usbus1 uhub2: on usbus1 Root mount waiting for: usbus1 uhub2: 4 ports with 4 removable, self powered Root mount waiting for: usbus1 ugen1.3: at usbus1 urtwn0: 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: mem 0x10180000-0x101bffff irq 11 on simplebus0 usbus0 on dwcotg0 dwcotg1: 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: mem 0x10214000-0x10214fff irq 17 on simplebus0 dwmmc0: Hardware version ID is 240a mmc0: on dwmmc0 cryptosoft0: Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 480Mbps High Speed USB v2.0 ugen1.1: at usbus1 ugen0.1: at usbus0 uhub0: on usbus0 uhub1: on usbus1 mmcsd0: 4GB 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: at usbus1 (disconnected) uhub_reattach_port: could not allocate new device ... thanks, Ganbold