Re: SANE vs USB scanner on 8.0

2010-02-04 Thread Daniel O'Connor
On Thu, 29 Oct 2009, Hans Petter Selasky wrote:
> The libUSB device pointer usage in sane needs to be audited. Probably
> it is best to figure out where the following functions are called:
>
>  usb_find_busses() usb_find_devices() usb_device()
>      usb_get_busses()
>
> And carefully check how the libusb device handle pointers are
> updated.

I wasn't really up to that unfortunately :(
I had a look and I couldn't see it free anything, but I am not 100% sure 
how the libusb stuff works internally. I note that the pdev does not 
appear free'd but uninitialised.

However I did notice that SANE has 1.0 API support and using that does 
not trigger this problem.

Now to convince configure to pick it up by default :)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


signature.asc
Description: This is a digitally signed message part.


problem with lastest u3g in RELENG_8

2010-02-04 Thread Patrick Lamaiziere
(CC: thompsa)

Hi,

I've got some troubles with the lastest revision of u3g in 8-STABLE.
Looks like it does not eject the fake cd device anymore :
That works fine with a kernel from 01/15/2010 (so i guess the culprit
is the latest version of u3g in stable : 01/17/2010)

The key is a ZTE MF633R

Unknown USB device: vendor 0x19d2 product 0x0053 bus uhub7
ugen6.4:  at usbus6
umass0:  on usbus6 
kernel: umass0:SCSI over Bulk-Only; quirks = 0x
umass0:3:0:-1: Attached to scbus3
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
(probe0:umass-sim0:0:0:0): NOT READY asc:3a,0
(probe0:umass-sim0:0:0:0): Medium not present
(probe0:umass-sim0:0:0:0): Unretryable error
cd1 at umass-sim0 bus 0 scbus3 target 0 lun 0
cd1:  Removable CD-ROM SCSI-2 device
cd1: 40.000MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present

before :

ugen6.3:  at usbus6
uhub7: 
on usbus6 
uhub7: 4 ports with 4 removable, self powered
usb_test_autoinstall: Eject CD command status:USB_ERR_NORMAL_COMPLETION
ugen6.4:  at usbus6
ugen6.4:  at usbus6 (disconnected)
ugen6.4:  at usbus6 Feb  4 21:41:33
u3g0:  on usbus6
u3g0: Found 3 ports.
umass0:  on usbus6
umass0: SCSI over Bulk-Only; quirks = 0x
umass0:3:0:-1: Attached to scbus3
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
(probe0:umass-sim0:0:0:0): NOT READY asc:3a,0
(probe0:umass-sim0:0:0:0): Medium not present
(probe0:umass-sim0:0:0:0): Unretryable error
da0 at umass-sim0 bus 0 scbus3 target 0 lun 0
da0:  Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers

Thanks in advance.
Best regards.
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"