On Sun, Sep 09, 2007 at 02:43:56PM -0400, Matt LaPlante wrote:
> On Sun, 9 Sep 2007 03:52:12 -0700
> Greg KH <[EMAIL PROTECTED]> wrote:
>
> > On Sat, Sep 08, 2007 at 10:02:29PM -0400, Matt LaPlante wrote:
> > > I'm running the 2.6.22.6 kernel with the berry_charge module loaded.
> > > I connect my 8700c via USB, but the blackberry does not appear to
> > > charge. The power icon does not change, and even after staying
> > > connected for an extended period, the device does not appear to be
> > > gaining any power. The cable is good, as I can plug it into my
> > > Windows machine and it begins charging immediately. I see the
> > > following in dmesg:
> > >
> > > [ 6638.606493] usb 1-2: new full speed USB device using uhci_hcd and
> > > address 2
> > > [ 6638.776524] usb 1-2: configuration #1 chosen from 1 choice
> > > [ 6639.639611] usbcore: registered new interface driver berry_charge
> > > [ 6639.837097] usb 1-2: Second magic command failed: -71.
> >
> >
> > Ick, that's not nice. Can you enable CONFIG_USB_DEBUG and debugging for
> > the berry_charge driver:
> > modprobe berry_charge debug=1
> >
> > and let us know what happens?
>
> Here you go...
This looks really odd:
> Sep 9 13:49:00 prizm kernel: [ 583.455679] berry_charge 1-2:1.0:
> usb_probe_interface
> Sep 9 13:49:00 prizm kernel: [ 583.455681] berry_charge 1-2:1.0:
> usb_probe_interface - got id
> Sep 9 13:49:00 prizm kernel: [ 583.455685] usb 1-2: Power is set to 100mA
> Sep 9 13:49:00 prizm kernel: [ 583.455687] usb 1-2: Sending first magic
> command
> Sep 9 13:49:00 prizm kernel: [ 583.457577] usb 1-2: Sending second magic
> command
> Sep 9 13:49:00 prizm kernel: [ 583.458578] usb 1-2: Calling
> set_configuration
> Sep 9 13:49:00 prizm kernel: [ 583.458727] drivers/usb/core/inode.c:
> creating file '002'
> Sep 9 13:49:00 prizm kernel: [ 583.458741] usb 1-2: usb_disable_device
> nuking non-ep0 URBs
> Sep 9 13:49:00 prizm kernel: [ 583.458744] usb 1-2: unregistering interface
> 1-2:1.0
Ok, we send everything properly but then things get wierd:
> Sep 9 13:49:00 prizm kernel: [ 583.461732] berry_charge 1-2:1.0:
> usb_probe_interface
> Sep 9 13:49:00 prizm kernel: [ 583.461734] berry_charge 1-2:1.0:
> usb_probe_interface - got id
> Sep 9 13:49:00 prizm kernel: [ 583.461738] usb 1-2: Power is set to 100mA
> Sep 9 13:49:00 prizm kernel: [ 583.461740] usb 1-2: Sending first magic
> command
> Sep 9 13:49:00 prizm kernel: [ 583.462615] usb 1-2: Sending second magic
> command
> Sep 9 13:49:00 prizm kernel: [ 583.463568] usb 1-2: Calling
> set_configuration
> Sep 9 13:49:00 prizm kernel: [ 583.463679] usb 1-2: usb_disable_device
> nuking non-ep0 URBs
> Sep 9 13:49:00 prizm kernel: [ 583.463683] usb 1-2: unregistering interface
> 1-2:1.0
We do it again.
> Sep 9 13:49:00 prizm kernel: [ 583.465623] berry_charge 1-2:1.0:
> usb_probe_interface
> Sep 9 13:49:00 prizm kernel: [ 583.465625] berry_charge 1-2:1.0:
> usb_probe_interface - got id
> Sep 9 13:49:00 prizm kernel: [ 583.465642] usb 1-2: Power is set to 100mA
> Sep 9 13:49:00 prizm kernel: [ 583.465644] usb 1-2: Sending first magic
> command
> Sep 9 13:49:00 prizm kernel: [ 583.466570] usb 1-2: Sending second magic
> command
> Sep 9 13:49:00 prizm kernel: [ 583.467566] usb 1-2: Calling
> set_configuration
> Sep 9 13:49:00 prizm kernel: [ 583.467675] usb 1-2: usb_disable_device
> nuking non-ep0 URBs
> Sep 9 13:49:00 prizm kernel: [ 583.467679] usb 1-2: unregistering interface
> 1-2:1.0
And again.
> Sep 9 13:49:00 prizm kernel: [ 583.469613] berry_charge 1-2:1.0:
> usb_probe_interface
> Sep 9 13:49:00 prizm kernel: [ 583.469616] berry_charge 1-2:1.0:
> usb_probe_interface - got id
> Sep 9 13:49:00 prizm kernel: [ 583.469619] usb 1-2: Power is set to 100mA
> Sep 9 13:49:00 prizm kernel: [ 583.469621] usb 1-2: Sending first magic
> command
> Sep 9 13:49:00 prizm kernel: [ 583.470568] usb 1-2: Sending second magic
> command
> Sep 9 13:49:00 prizm kernel: [ 583.471565] usb 1-2: Calling
> set_configuration
> Sep 9 13:49:00 prizm kernel: [ 583.471671] usb 1-2: usb_disable_device
> nuking non-ep0 URBs
> Sep 9 13:49:00 prizm kernel: [ 583.471674] usb 1-2: unregistering interface
> 1-2:1.0
And so on, numerous times.
This continues for a long time, until finally:
> Sep 9 13:49:01 prizm kernel: [ 583.659570] berry_charge 1-2:1.0:
> usb_probe_interface
> Sep 9 13:49:01 prizm kernel: [ 583.659572] berry_charge 1-2:1.0:
> usb_probe_interface - got id
> Sep 9 13:49:01 prizm kernel: [ 583.659575] usb 1-2: Power is set to 100mA
> Sep 9 13:49:01 prizm kernel: [ 583.659577] usb 1-2: Sending first magic
> command
> Sep 9 13:49:01 prizm kernel: [ 583.660516] usb 1-2: Sending second magic
> command
> Sep 9 13:49:01 prizm kernel: [ 583.661506] usb 1-2: uhci_result_common:
> failed with status 44
> Sep 9 13:49:01 prizm kernel: [ 583.661518] usb 1-2: Second magic command
> failed: -71.
The c