usb/93389: Digital Camera Pentax S60 don't work

2006-02-15 Thread Demin Alexander

Number: 93389
Category:   usb
Synopsis:   Digital Camera Pentax S60 don't work
Confidential:   no
Severity:   non-critical
Priority:   low
Responsible:freebsd-usb
State:  open
Quarter:
Keywords:   
Date-Required:
Class:  sw-bug
Submitter-Id:   current-users
Arrival-Date:   Wed Feb 15 13:40:04 GMT 2006
Closed-Date:
Last-Modified:
Originator: Demin Alexander
Release:FreeBSD 5.5-PRERELEASE i386
Organization:
Group of companies Spectrum
Environment:
System: FreeBSD support.spectrum.ru 5.5-PRERELEASE FreeBSD 5.5-PRERELEASE #22: 
Thu Feb 9 16:38:07 MSK 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYGENERIC 
i386

FreeBSD 5.5-PRERELEASE #22: Thu Feb  9 16:38:07 MSK 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYGENERIC
ACPI APIC Table: AMIINT INTEL845
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2800.12-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf27  Stepping = 7
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
real memory  = 536805376 (511 MB)
avail memory = 515629056 (491 MB)
ioapic0 Version 2.0 irqs 0-23 on motherboard
netsmb_dev: loaded
acpi0: AMIINT INTEL845 on motherboard
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
cpu0: ACPI CPU on acpi0
acpi_throttle0: ACPI CPU Throttling on cpu0
acpi_button0: Power Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
nvidia0: GeForce3 Ti 200 mem 
0xdd98-0xdd9f,0xd800-0xdbff,0xde00-0xdeff irq 16 at 
device 0.0 on pci1
uhci0: Intel 82801DB (ICH4) USB controller USB-A port 0xd400-0xd41f irq 16 at 
device 29.0 on pci0
uhci0: LegSup = 0x2f00
usb0: Intel 82801DB (ICH4) USB controller USB-A on uhci0
usb0: USB revision 1.0
usbd_get_string: getting lang failed, using 0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: Intel 82801DB (ICH4) USB controller USB-B port 0xd800-0xd81f irq 19 at 
device 29.1 on pci0
uhci1: LegSup = 0x2f00
usb1: Intel 82801DB (ICH4) USB controller USB-B on uhci1
usb1: USB revision 1.0
usbd_get_string: getting lang failed, using 0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: Intel 82801DB (ICH4) USB controller USB-C port 0xdc00-0xdc1f irq 18 at 
device 29.2 on pci0
uhci2: LegSup = 0x2f00
usb2: Intel 82801DB (ICH4) USB controller USB-C on uhci2
usb2: USB revision 1.0
usbd_get_string: getting lang failed, using 0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0: Intel 82801DB/DBL/DBM (ICH4) USB 2.0 controller mem 
0xdc00-0xdfff irq 23 at device 29.7 on pci0
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: Intel 82801DB/DBL/DBM (ICH4) USB 2.0 controller on ehci0
usb3: USB revision 2.0
uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
pcib2: ACPI PCI-PCI bridge at device 30.0 on pci0
pci3: ACPI PCI bus on pcib2
rl0: RealTek 8139 10/100BaseTX port 0xbc00-0xbcff mem 0xdfefff00-0xdfef 
irq 18 at device 2.0 on pci3
miibus0: MII bus on rl0
rlphy0: RealTek internal media interface on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:80:48:23:bc:f7
xl0: 3Com 3c905C-TX Fast Etherlink XL port 0xb800-0xb87f mem 
0xdfeffe80-0xdfeffeff irq 17 at device 5.0 on pci3
miibus1: MII bus on xl0
ukphy0: Generic IEEE 802.3u media interface on miibus1
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:04:76:9c:b5:0e
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel ICH4 UDMA100 controller port 
0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pci0: serial bus, SMBus at device 31.3 (no driver attached)
pcm0: Intel ICH4 (82801DB) port 0xcc00-0xcc3f,0xd000-0xd0ff mem 
0xd900-0xd9ff,0xda00-0xdbff irq 17 at device 31.5 on pci0
pcm0: Avance Logic ALC650 AC97 Codec
acpi_button1: Sleep Button on acpi0
atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0
atkbd0: AT Keyboard irq 1 on atkbdc0
kbd0 at atkbd0
psm0: PS/2 Mouse irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
fdc0: floppy drive controller port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3 irq 6 drq 2 
on acpi0
fd0: 1440-KB 3.5 drive on fdc0 drive 0
npx0: math processor on motherboard
npx0: INT 16 interface
pmtimer0 on isa0
sc0: System console at flags 0x100 on isa0
sc0: VGA 16 virtual consoles, flags=0x300
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 

[Patch] Fix collection entry parsing in libusbhid

2006-02-15 Thread Markus Brueffer
Hi,

here is a patch for libusbhid which fixes parsing of collection entries if the 
collection has only non-variable Input/Output/Feature entries:

http://people.freebsd.org/~markus/bt/parse.c.diff

The problem ist that the output of collection pages has to be deferred until 
the report id is known. Without the patch, deferred collection pages are only 
reported correctly if variable Input/Output/Feature entries are present.

The effect can be seen here (output of the hid descriptor dump of a Logitech 
MX5000 keyboard using bthidcontrol):

http://people.freebsd.org/~markus/bt/mx5000_before.txt
http://people.freebsd.org/~markus/bt/mx5000_after.txt

Furthermore I have removed the loop in REPORT_SAVED_COLL. If someone knows why 
it was there in the first place, please share your wisdom :)

Third change is the removal of REPORT_SAVED_COLL if the end of a collection is 
reached. All collection entries should have been reported by then.

Ok to commit?

Markus

-- 
Markus Brueffer    | GPG-Key: http://people.FreeBSD.org/~markus/markus.asc
[EMAIL PROTECTED] | FP: 3F9B EBE8 F290 E5CC 1447 8760 D48D 1072 78F8 A8D4
[EMAIL PROTECTED] | FreeBSD: The Power to Serve!


pgp9JuPinjTwf.pgp
Description: PGP signature