Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jul 2009 00:59:46 +0200
From:      Michael Gmelin <freebsdusb@bindone.de>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: [usb2] Garmin Edge 705 disconnects immediately
Message-ID:  <4A6799E2.5060304@bindone.de>
In-Reply-To: <200907222048.01448.hselasky@c2i.net>
References:  <4A62187E.1000506@bindone.de> <200907221910.40562.hselasky@c2i.net> <4A675DED.2000001@bindone.de> <200907222048.01448.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------080009080802070703040408
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

Hans Petter Selasky wrote:
> On Wednesday 22 July 2009 20:43:57 Michael Gmelin wrote:
>> Hans Petter Selasky wrote:
>>> On Wednesday 22 July 2009 18:00:29 Michael Gmelin wrote:
>>>> Hans Petter Selasky wrote:
>>>>> On Wednesday 22 July 2009 15:55:36 Michael Gmelin wrote:
>>>>>> Hans Petter Selasky wrote:
>>>>>>
>>>>>> Did you have a chance to look at this yet? Anything more I could do?
>>>>>> Thanks!
>>>>> Hi,
>>>>>
>>>>> Can you try the attached patch. Needs to be applied by hand.
>>>>>
>>>>> Then compile new kernel, reboot.
>>>>>
>>>>> kldload usb_quirk
>>>>>
>>>>> usbconfig -u xxx -a uuu  add_dev_quirk_vplh <vid> <pid> <lo_rev>
>>>>> <hi_rev> UQ_CFG_PRESET
>>>>>
>>>>> You need to fill in the correct vendor id, product id, lo rev and hi
>>>>> rev for your device. See the dump_device_desc output for your device.
>>>>>
>>>>> --HPS
>>>> Hello,
>>>>
>>>> I merged in the changes to make that quirk work (couldnt use the patches
>>>> directly because I'm on another version). Unfortunately dump_device_desc
>>>> doesn't work, because the device disappears before I can get the info
>>>> (but I have it anyway, so this is no issue).
>>>>
>>>> kldload usb2_controller_uhci
>>>> kldload usb2_storage_mass
>>>> kldload usb2_quirk
>>>> usbconfig add_dev_quirk_vplh 0x091e 0x2271 0x0000 0xffff UQ_CFG_PRESET
>>>> (also tried specifying -u and -a)
>>>>
>>>> According to the logs it's still setting config index 0 in
>>>> usb2_alloc_device (but this config misleading debug ouput I guess,
>>>> because it calls the patched function later in there). The debug output
>>>> suggests that the patch is actually working, but the result is the same
>>> Can you redo test with umass unloaded?
>>>
>>> --HPS
>> Did thatm, same effect, are you interested in the debug output?
> 
> Could you enable uhub debugging instead of usb debugging?
> 
> sysctl hw.usb.uhub.debug=15
> 
> Send resulting dmesg when you plug your device.
> 
> --HPS
> 
See attached, the only interesting line I see is:
Jul 23 00:57:15 ufo kernel: uhub_reattach_port:280: reattaching port 1
Before it gets disconnected

thanks




--------------080009080802070703040408
Content-Type: text/plain;
 name="moregarmin.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="moregarmin.txt"

Jul 23 00:57:15 ufo kernel: uhub_explore:521: udev=0x8b692000 addr=1
Jul 23 00:57:15 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0011, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:15 ufo kernel: uhub_reattach_port:280: reattaching port 1
Jul 23 00:57:15 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0010, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:15 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0010, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:16 ufo kernel: uhub_intr_callback:157: 
Jul 23 00:57:16 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:16 ufo kernel: usb2_bus_powerd:1518: bus=0x95b07cf0
Jul 23 00:57:16 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:16 ufo kernel: uhub_explore:521: udev=0x8b692000 addr=1
Jul 23 00:57:16 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0011, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:16 ufo kernel: uhub_reattach_port:280: reattaching port 1
Jul 23 00:57:16 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0010, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:16 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0010, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:17 ufo kernel: uhub_intr_callback:157: 
Jul 23 00:57:17 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:17 ufo kernel: usb2_bus_powerd:1518: bus=0x95b07cf0
Jul 23 00:57:17 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:17 ufo kernel: uhub_explore:521: udev=0x8b692000 addr=1
Jul 23 00:57:17 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0101, wPortChange=0x0011, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:17 ufo kernel: uhub_reattach_port:280: reattaching port 1
Jul 23 00:57:17 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0101, wPortChange=0x0010, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:17 ufo kernel: uhub_reattach_port:326: Port 1 is in Host Mode
Jul 23 00:57:17 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:17 ufo kernel: usb2_bus_powerd:1518: bus=0x89b67cf0
Jul 23 00:57:17 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:17 ufo kernel: uhub_explore:521: udev=0x8fdd4000 addr=1
Jul 23 00:57:17 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:17 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:17 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:17 ufo kernel: usb2_bus_powerd:1518: bus=0x957aacf0
Jul 23 00:57:17 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:17 ufo kernel: uhub_explore:521: udev=0x9192e000 addr=1
Jul 23 00:57:17 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:17 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:17 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:17 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:17 ufo kernel: usb2_bus_powerd:1518: bus=0x95b4bcf0
Jul 23 00:57:17 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:17 ufo kernel: uhub_explore:521: udev=0x8e0c2000 addr=1
Jul 23 00:57:17 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:17 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:17 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:17 ufo kernel: usb2_bus_powerd:1518: bus=0x95e4fcf0
Jul 23 00:57:17 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:17 ufo kernel: uhub_explore:521: udev=0x8fe6b000 addr=1
Jul 23 00:57:17 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:17 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:17 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0103, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:17 ufo kernel: usb2_transfer_power_ref:1472: Adding type 0 to power state
Jul 23 00:57:17 ufo kernel: usb2_transfer_power_ref:1485: needs power
Jul 23 00:57:18 ufo kernel: usb2_bus_port_set_device:1336: bus 0x95b07cf0 devices[2] = 0x8fe5a000
Jul 23 00:57:18 ufo kernel: ugen2.2: <Garmin International> at usbus2
Jul 23 00:57:18 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:18 ufo kernel: usb2_bus_powerd:1518: bus=0x95b07cf0
Jul 23 00:57:18 ufo kernel: uhub_explore:521: udev=0x8b692000 addr=1
Jul 23 00:57:18 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0103, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:18 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:19 ufo kernel: uhub_intr_callback:157: 
Jul 23 00:57:19 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:19 ufo kernel: usb2_bus_powerd:1518: bus=0x95b07cf0
Jul 23 00:57:19 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:19 ufo kernel: uhub_explore:521: udev=0x8b692000 addr=1
Jul 23 00:57:19 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0003, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:19 ufo kernel: uhub_reattach_port:280: reattaching port 1
Jul 23 00:57:19 ufo kernel: ugen2.2: <Garmin International> at usbus2 (disconnected)
Jul 23 00:57:19 ufo kernel: usb2_bus_port_set_device:1336: bus 0x95b07cf0 devices[2] = 0
Jul 23 00:57:19 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:19 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:21 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:21 ufo kernel: usb2_bus_powerd:1518: bus=0x89b67cf0
Jul 23 00:57:21 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:21 ufo kernel: uhub_explore:521: udev=0x8fdd4000 addr=1
Jul 23 00:57:21 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:21 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:21 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:21 ufo kernel: usb2_bus_powerd:1518: bus=0x957aacf0
Jul 23 00:57:21 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:21 ufo kernel: uhub_explore:521: udev=0x9192e000 addr=1
Jul 23 00:57:21 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:21 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:21 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:21 ufo kernel: usb2_bus_powerd:1518: bus=0x95b07cf0
Jul 23 00:57:21 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:21 ufo kernel: uhub_explore:521: udev=0x8b692000 addr=1
Jul 23 00:57:21 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:21 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:21 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:21 ufo kernel: usb2_bus_powerd:1518: bus=0x95b4bcf0
Jul 23 00:57:21 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:21 ufo kernel: uhub_explore:521: udev=0x8e0c2000 addr=1
Jul 23 00:57:21 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:21 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:21 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:21 ufo kernel: usb2_bus_powerd:1518: bus=0x95e4fcf0
Jul 23 00:57:21 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:21 ufo kernel: uhub_explore:521: udev=0x8fe6b000 addr=1
Jul 23 00:57:21 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:21 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:25 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:25 ufo kernel: usb2_bus_powerd:1518: bus=0x89b67cf0
Jul 23 00:57:25 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:25 ufo kernel: uhub_explore:521: udev=0x8fdd4000 addr=1
Jul 23 00:57:25 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:25 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:25 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:25 ufo kernel: usb2_bus_powerd:1518: bus=0x957aacf0
Jul 23 00:57:25 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:25 ufo kernel: uhub_explore:521: udev=0x9192e000 addr=1
Jul 23 00:57:25 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:25 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:25 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:25 ufo kernel: usb2_bus_powerd:1518: bus=0x95b07cf0
Jul 23 00:57:25 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:25 ufo kernel: uhub_explore:521: udev=0x8b692000 addr=1
Jul 23 00:57:25 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:25 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:25 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:25 ufo kernel: usb2_bus_powerd:1518: bus=0x95b4bcf0
Jul 23 00:57:25 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:25 ufo kernel: uhub_explore:521: udev=0x8e0c2000 addr=1
Jul 23 00:57:25 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:25 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:25 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:25 ufo kernel: usb2_bus_powerd:1518: bus=0x95e4fcf0
Jul 23 00:57:25 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:25 ufo kernel: uhub_explore:521: udev=0x8fe6b000 addr=1
Jul 23 00:57:25 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:25 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:29 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:29 ufo kernel: usb2_bus_powerd:1518: bus=0x89b67cf0
Jul 23 00:57:29 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:29 ufo kernel: uhub_explore:521: udev=0x8fdd4000 addr=1
Jul 23 00:57:29 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:29 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:29 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:29 ufo kernel: usb2_bus_powerd:1518: bus=0x957aacf0
Jul 23 00:57:29 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:29 ufo kernel: uhub_explore:521: udev=0x9192e000 addr=1
Jul 23 00:57:29 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:29 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:29 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:29 ufo kernel: usb2_bus_powerd:1518: bus=0x95b07cf0
Jul 23 00:57:29 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:29 ufo kernel: uhub_explore:521: udev=0x8b692000 addr=1
Jul 23 00:57:29 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:29 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:29 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:29 ufo kernel: usb2_bus_powerd:1518: bus=0x95b4bcf0
Jul 23 00:57:29 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:29 ufo kernel: uhub_explore:521: udev=0x8e0c2000 addr=1
Jul 23 00:57:29 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:29 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:29 ufo kernel: usb2_needs_explore:1347: 
Jul 23 00:57:29 ufo kernel: usb2_bus_powerd:1518: bus=0x95e4fcf0
Jul 23 00:57:29 ufo kernel: usb2_bus_powerd:1601: Recomputing power masks
Jul 23 00:57:29 ufo kernel: uhub_explore:521: udev=0x8fe6b000 addr=1
Jul 23 00:57:29 ufo kernel: uhub_read_port_status:259: port 1, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION
Jul 23 00:57:29 ufo kernel: uhub_read_port_status:259: port 2, wPortStatus=0x0100, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION

--------------080009080802070703040408--



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