From owner-freebsd-usb@FreeBSD.ORG Sun Sep 16 00:02:56 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C677106564A; Sun, 16 Sep 2012 00:02:56 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E465E8FC15; Sun, 16 Sep 2012 00:02:55 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8G02tFD033031; Sun, 16 Sep 2012 00:02:55 GMT (envelope-from eadler@freefall.freebsd.org) Received: (from eadler@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8G02to1033018; Sun, 16 Sep 2012 00:02:55 GMT (envelope-from eadler) Date: Sun, 16 Sep 2012 00:02:55 GMT Message-Id: <201209160002.q8G02to1033018@freefall.freebsd.org> To: uspoerlein@gmail.com, eadler@FreeBSD.org, freebsd-usb@FreeBSD.org From: eadler@FreeBSD.org Cc: Subject: Re: usb/113060: [usb67] [ulpt] [patch] Samsung printer not working in bidirectional mode X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Sep 2012 00:02:56 -0000 Synopsis: [usb67] [ulpt] [patch] Samsung printer not working in bidirectional mode State-Changed-From-To: suspended->closed State-Changed-By: eadler State-Changed-When: Sun Sep 16 00:02:54 UTC 2012 State-Changed-Why: usb67 is no longer under development; thanks for your submission http://www.freebsd.org/cgi/query-pr.cgi?pr=113060 From owner-freebsd-usb@FreeBSD.ORG Mon Sep 17 11:07:18 2012 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4253A106568C for ; Mon, 17 Sep 2012 11:07:18 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2BDA58FC15 for ; Mon, 17 Sep 2012 11:07:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8HB7IA9004612 for ; Mon, 17 Sep 2012 11:07:18 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8HB7HnB004610 for freebsd-usb@FreeBSD.org; Mon, 17 Sep 2012 11:07:17 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 17 Sep 2012 11:07:17 GMT Message-Id: <201209171107.q8HB7HnB004610@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2012 11:07:18 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/171354 usb [umass] Medium not present error on flash drive [regre o usb/171262 usb plug in sdhc via usb reader reboots machine o usb/171197 usb ADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1 o usb/170699 usb FreeBSD 9.0 Doesn't list HDD or its partitions in part o usb/170688 usb patch][usbdevs][wlan] Patch for ASUS Black Diamond USB o usb/170606 usb r239222 kernel panic at boot - usb locking issue o usb/170358 usb [ums] Wrong (duplicate) button numbers o usb/170123 usb [umass] HP v210w USB stick not supported o usb/169935 usb [keyboard] Unable use USB keyboard while panic o usb/169789 usb [u3g] [patch] add support for huawei e3131 o usb/169461 usb [ugen] USB2 high-speed device detected as full speed o usb/169428 usb [ugen] ugen not detecting all endpoints on device [reg o usb/168551 usb [umass] Issues with embedded card reader (Laptop ASUS o usb/168132 usb [umass] MATSHITA memory card size reported wrong, moun o usb/167847 usb [ural] dlink dwl-122g e crashes(?) when trying wap2 cr o usb/167001 usb [USB] [PATCH] add support for Smart G2 64MB memory key o usb/166848 usb [umass] [patch] Buffalo RUF2 requires quirk o usb/165815 usb [usbdevs] [patch] add k3772z 3g modem support o usb/165163 usb [keyboard] The USB RF keyboard and mouse become non-re o usb/164058 usb [umass] Lexar 8GB USB flash drive doesn't work by defa f usb/163328 usb [usb] Support for Atheros USB abgn devices o kern/163091 usb [panic] Fatal trap 12: page fault while in kernel mode f usb/162306 usb usb devices cant get address asignation, no memories, o usb/162054 usb usbdump just hangs on 9.0-RC1 f usb/161793 usb poor EHCI usb2 i/o performance o usb/160436 usb ucom wedges machine on parity error ? o usb/160299 usb MicroSDHC-to-USB adapters do not work in FreeBSD 8.x o usb/160192 usb [install] Installation from USB-Stick doesn't find the o usb/159611 usb [PATCH] USB stick extrememory Snippy needs quirks o usb/159274 usb USB 3.0 Etron EJ168A does not work. f usb/159191 usb [fusefs-ntfs] write on fusefs-ntfs mounted partition r o usb/157376 usb LaCie USB disk not recognized o usb/157074 usb [boot] [usb8] vfs_mountroot_ask is called when no usb o usb/156898 usb [keyboard] usb keyboard does not work while boot (ps2 f usb/156735 usb Need Quirk for Goflex USB Disk Drives o usb/156726 usb [snd_uaudio]: snd_uaudio(4) fails to detach when mixer o usb/156725 usb USB stack stall cause complete system input loss o usb/156596 usb [ehci] Extremely high interrupt rate on ehci/uhci IRQ1 o usb/156000 usb rum(4) Fatal trap 18: integer divide fault while in ke f usb/155996 usb NanoBSD not booted as Disk o usb/155784 usb Problem with Transcend StoreJet 25M3 (2AJ1) on Asus M2 o usb/155663 usb [usbdevs] [patch] Add support for Supertop Nano 1GB US o usb/154753 usb [usbdevs] [patch] Support for Qualcomm USB modem/stora o usb/154506 usb [umass] Copying dir with large files makes FreeBSD loa o usb/154192 usb [umass] In Garmin Oregon GPS, only the first umass dev o i386/153851 usb [keyboard] keyboard issues on new Intel Mother boards. o usb/153703 usb [keyboard] My USB keyboard can not be used in 8-STABLE o usb/153609 usb [zyd] [panic] kernel: Fatal trap 12: page fault while o usb/153599 usb [usbdevs] [patch] Feiya Elango USB MicroSD reader sync o usb/153149 usb [umass] USB stick quirk regression [regression] o usb/152075 usb [usb8] [ehci] [request] Add quirk for CS5536 USB o usb/150892 usb [zyd] Whenever network contacted in any shape, way or o usb/150189 usb [run] [usb8] [patch] if_run appears to corrupt IP traf p usb/149764 usb [u3g] [patch] usbdevs update: Huawei K3765 3G modem o usb/149283 usb [uftdi] avrdude unable to talk to Arduino board (via u o usb/149162 usb [ural] ASUS WL-167g doesn't work in 8.1 (continue of 1 s usb/148702 usb [usb8] [request] IO DATA USB-RSAQ5 support on FreeBSD- o usb/148080 usb usbconfig(8) sometimes does not turn off the device o usb/147516 usb [umass] [usb67] kernel unable to deal with Olympus USB o i386/147475 usb [install] FreeBSD 8.x does not install on ASUS K8N4-E o usb/146840 usb [hang] FreeBSD 7.2 / 7.3 / 8.0 hang at startup after e o usb/146153 usb [axe] [usb8] Hosts in network doesn't receive any pack f usb/146054 usb [urtw] [usb8] urtw driver potentially out of date f usb/145513 usb [usb8] New USB stack: no new devices after forced usb p usb/145455 usb [usb8] [patch] USB debug support cannot be disabled o usb/145415 usb [umass] [usb8] USB card reader does not create slices a usb/145184 usb GENERIC can't mount root from USB on Asus EEE o usb/145165 usb [keyboard] [usb8] ukbd_set_leds_callback: error=USB_ER f kern/144938 usb [keyboard] [boot] Boot Failure with Apple (MB869LL/A) o usb/144387 usb [run] [panic] if_run panic o usb/144043 usb [umass] [usb8] USB DLT tape drive throws random errors a usb/143790 usb [boot] [cam] can not boot from usb hdd f usb/143620 usb [cdce] [usb8] the module if_cdce doesn't support my Op f usb/143294 usb [usb8] copying process stops at some time (10 - 50 sec o usb/143286 usb [ukbd] [usb8] [boot] boot failures on RELENG_8 system p usb/143186 usb [usbdevs] [usb8] [patch] add USB device IDs for Google a usb/143139 usb [umass] [usb8] [patch] Quirk for Century EX35SW4_SB4 J p usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d o usb/142991 usb [uftdi] [usb67] [patch] Patch to add Crystalfontz 533 f usb/142989 usb [usb8] canon eos 50D attaches but detaches after few s f usb/142957 usb [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE o usb/142719 usb [urtw] [usb8] AirLive WL-1600USB (RTL8187L chipset) fa o usb/142713 usb [usb67] [panic] Kernel Panik when connecting an IPhone f usb/142276 usb [umass] [usb8] Cache Synchronization Error with Olympu o usb/142229 usb [ums] [usb8] [hang] connecting a USB mouse to a Dell P f usb/141680 usb [uath] [usb8] Netgear WG111T not working with uath dri o usb/141664 usb [pcm] [usb8] Logitech USB microphone failure [regressi o usb/141474 usb [boot] [usb8] FreeBSD 8.0 can not install from USB CDR o usb/141327 usb [ukbd] [usb67] USB kbd not working with 7.1+PAE on IBM o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb8] Encrypted root, geli password at boot; enter ke o usb/140920 usb [install] [usb8] USB based install fails on 8.0-RELEAS o usb/140893 usb [urtw] [usb8] WPA2 not working on rtl8187b o kern/140849 usb [ums] [usb8] USB mouse doesn't work under FreeBSD 8.0- a usb/140810 usb [uftdi] [usb8] 8.X copy and paste problem / tty overfl o usb/140477 usb [umass] [usb8] [patch] allow boot-time attachment of d o usb/140236 usb [msdosfs] [usb8] Labels wiped on external Journaled US o usb/140160 usb [usb8] [acpi] USB ports are no longer "active" after A o usb/139243 usb [uhci] [usb67] unplug prolific USB serial -> uhci_abor f usb/138882 usb [ohci] [panic] [usb67] Can't install FreeBSD 7.2 due t o usb/138798 usb [boot] [usb8] 8.0-BETA4 can't boot from USB flash driv o usb/138659 usb [usb8][uftdi] driver broken in RELENG_8/CURRENT o usb/138175 usb [usb67] [boot] System cannot boot, when USB reader wit o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/138119 usb [usb67] [usb8] MultiBay CDROM (probably on USB bus) is f usb/137872 usb [usb67] [boot] slow booting on usb flash drive o usb/137806 usb [ukbd] [usb67] USB keyboard doesn't work until it's un o usb/137763 usb [usb67][ukbd] Logitech wireless keyboard media keys no o usb/137377 usb [usb8] request support for Huawei E180 o usb/137341 usb [usb8][rum] driver if_rum doesn't work at all and thro f usb/137190 usb [usb8][patch] inhibit spurious button releases for som o usb/137189 usb [usb8][patch] create and use sysctl nodes for HID repo p usb/137188 usb [usb8][patch] correctly handle USB report descriptors o usb/137129 usb [ums] [usb8] SteelSeries Ikari USB laser mouse not att o usb/135938 usb [aue] [usb67] aue driver only passes traffic in promis o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135206 usb machine reboots when inserted USB device f usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134085 usb [umass] Adding usb quirk for Sony USB flash drive o usb/133989 usb [usb8] [ukbd] USB keyboard dead at mountroot> prompt o usb/133712 usb [ural] [patch] RE: Fixed an issue with ural(4) that wa o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb [rum] driver not working properly in hostap mode o usb/132594 usb USB subsystem causes page fault and crashes o usb/132080 usb [patch] [usb] [rum] [panic] Kernel panic after NOMEM c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130230 usb [patch] [quirk] [usb67] [usb] [cam] [umass] Samsung El o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [usb8] DVD drive detects as 'da' device f usb/129766 usb [usb] [panic] plugging in usb modem HUAWEI E226 panics o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb67] [patch] uaudio is not full duplex p usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive o usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/127926 usb [boot] USB Timeout during bootup s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127342 usb [boot] [panic] enabling usb keyboard and mouse support o usb/127248 usb [ucom] panic while uplcom devices attach and detach o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c o usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d f usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o kern/124130 usb [usb] gmirror fails to start usb devices that were pre o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS f usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [snd_uaudio] [patch] Not possible to record with Plant o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [usb67] [usb8] [umass] [patch] Problem with connection o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/110856 usb [usb67] [ugen] [patch] interrupt in msgs are truncated o usb/107827 usb [usb67] [ohci] [panic] ohci_add_done addr not found o usb/107388 usb [usb67] [usb8] [new driver] [patch] add utoppy device o usb/106041 usb [usb67] [usb8] [request] FreeBSD does not recognise Mu o usb/103418 usb [usb67] [usb8] [patch] [request] usbhidctl(8) add abil o usb/103046 usb [usb67] [ulpt] [patch] ulpt event driven I/O with sele o usb/100746 usb [usb67] [ukbd] system does not boot due to USB keyboar o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [usb67] SMP-Kernel crashes reliably when Bluetooth con o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg f usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. f usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails f usb/80040 usb [sound] [hang] Use of sound mixer causes system freeze o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/78984 usb [umass] [patch] Creative MUVO umass failure f usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device f usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for f usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) f usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 307 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Sep 17 14:25:06 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A910E1065670 for ; Mon, 17 Sep 2012 14:25:06 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 202118FC12 for ; Mon, 17 Sep 2012 14:25:05 +0000 (UTC) Received: by lage12 with SMTP id e12so5155294lag.13 for ; Mon, 17 Sep 2012 07:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RMd37ag9F3zP06wpaZAwu+lOoncWCSBlJcsvuRUmOrg=; b=xMxGq790aHZgDh6eSUj8/GMJjKpTaaJk8KrNUNQxCwzTYLQUQCkxBkbSnPtMZ+7O2l SL5cPmjqkoBQ2b/C6CxekfNt8Gcq2usMscsqUn+GOwSMC7SOR76UxKj0yBUiZRTl6K/r oGPK2AI8kDoXPy4snH1CI/YIusK1OvisRtwIKAqsn1eNI34m9dROI3OR8uOhBoy1eDxG Uz+BdqA+ZRmJOb1nPDr/YRt7WlVFLWCuyESU7Nmc0NBUWMALt2mlDUehwfWrr5vHQrJx Bjr4pPfjYnAhq3Yww0sOG/V7UHsfKAz7OTPTaV83AjouNj6U+s0Y/JsoUVgBPcYumRAF PI6Q== MIME-Version: 1.0 Received: by 10.152.104.77 with SMTP id gc13mr10023173lab.31.1347891904859; Mon, 17 Sep 2012 07:25:04 -0700 (PDT) Received: by 10.112.90.9 with HTTP; Mon, 17 Sep 2012 07:25:04 -0700 (PDT) In-Reply-To: References: <20120912211314.8F0932E8AC@smtp.tx97.net> <201209131753.38985.hselasky@c2i.net> Date: Mon, 17 Sep 2012 17:25:04 +0300 Message-ID: From: Vitaly Magerya To: Alexander Yerenkow Content-Type: text/plain; charset=UTF-8 Cc: freebsd-usb@freebsd.org Subject: Re: Support for graphics tablets X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2012 14:25:06 -0000 Alexander Yerenkow wrote: > I don't remember exact details, if I'm not mistaken, pressure was supported > (it's basically sent by tablet as one byte). > You should have three section of device in xorg, and xorg will take > automatically one as mouse, one as tablet (weird, but working magic). > Could you write later to this list about results :) Yeah, so after updating [1] to the latest xf86-input-mouse (1.8.1), the tablet seems to work. The caveat is that I haven't found a way to detach ums(4) from the device without recompiling the kernel with ums excluded. A workaround is to use sysutils/uhidd which will emulate an uhid(4) device from a given ugen(4) device, so pointing the patched mouse driver to that emulation seems to work. The few minor problems (compared to Linux) are: no proximity events, no relative mode support, and too many events (i.e. the driver produces input events even if pointer's coordinates did not change). Finally, mav@ replied pointing to his original post at [2]. [1] http://people.freebsd.org/~mav/patch-zz-input-mouse9.1.7.1 [2] http://lists.freebsd.org/pipermail/freebsd-hardware/2011-July/006749.html From owner-freebsd-usb@FreeBSD.ORG Mon Sep 17 15:49:43 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E4CC106564A; Mon, 17 Sep 2012 15:49:43 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id 883AF8FC08; Mon, 17 Sep 2012 15:49:41 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 319861601; Mon, 17 Sep 2012 17:49:34 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 17 Sep 2012 17:50:46 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <201208161254.q7GCs04F040733@freefall.freebsd.org> <201208162022.40512.hselasky@c2i.net> In-Reply-To: <201208162022.40512.hselasky@c2i.net> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201209171750.46065.hselasky@c2i.net> Cc: gavin@freebsd.org, freebsd-multimedia@freebsd.org, freebsd-gnats-submit@freebsd.org Subject: Re: misc/171254 [snd_uaudio] USB audio v2.0 support X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2012 15:49:43 -0000 Hi, I've just added USB audio v2.0 support: http://svn.freebsd.org/changeset/base/240609 Please test and report back, if you've got such a device. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Sep 17 18:10:04 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 87D75106566B for ; Mon, 17 Sep 2012 18:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 61AF68FC14 for ; Mon, 17 Sep 2012 18:10:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8HIA4HH068845 for ; Mon, 17 Sep 2012 18:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8HIA4RU068844; Mon, 17 Sep 2012 18:10:04 GMT (envelope-from gnats) Resent-Date: Mon, 17 Sep 2012 18:10:04 GMT Resent-Message-Id: <201209171810.q8HIA4RU068844@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Vitaly Magerya Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3A2C8106564A for ; Mon, 17 Sep 2012 18:04:08 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 1C5CA8FC16 for ; Mon, 17 Sep 2012 18:04:08 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8HI47uS013403 for ; Mon, 17 Sep 2012 18:04:07 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q8HI47qV013402; Mon, 17 Sep 2012 18:04:07 GMT (envelope-from nobody) Message-Id: <201209171804.q8HI47qV013402@red.freebsd.org> Date: Mon, 17 Sep 2012 18:04:07 GMT From: Vitaly Magerya To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/171721: [patch] usb_quirk(4), ums(4): add UQ_UMS_IGNORE quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2012 18:10:04 -0000 >Number: 171721 >Category: usb >Synopsis: [patch] usb_quirk(4), ums(4): add UQ_UMS_IGNORE quirk >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Sep 17 18:10:04 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Vitaly Magerya >Release: >Organization: >Environment: >Description: It appears that we have USB quirks UQ_HID_IGNORE and UQ_KBD_IGNORE that make uhid(4) and ukbd(4) to ignore a perticular device. I propose adding UQ_UMS_IGNORE that instruct ums(4) to ignore a device. The motivation for this is hardware that lists a bogus Generic_Desktop:Mouse usage in it's record descriptor thus fooling ums(4) into thinking that it is a mouse, while in reality it is something other and should be handled by uhid(4) instead (I have a graphics tablet that does this). >How-To-Repeat: >Fix: I'm attaching a patch against head. Patch attached with submission follows: Index: share/man/man4/usb_quirk.4 =================================================================== --- share/man/man4/usb_quirk.4 (revision 240607) +++ share/man/man4/usb_quirk.4 (working copy) @@ -66,6 +66,8 @@ device should be ignored by kbd class .It UQ_KBD_BOOTPROTO device should set the boot protocol +.It UQ_UMS_IGNORE +device should be ignored by ums class .It UQ_MS_BAD_CLASS doesn't identify properly .It UQ_MS_LEADING_BYTE Index: sys/dev/usb/quirk/usb_quirk.c =================================================================== --- sys/dev/usb/quirk/usb_quirk.c (revision 240607) +++ sys/dev/usb/quirk/usb_quirk.c (working copy) @@ -494,6 +494,7 @@ [UQ_HID_IGNORE] = "UQ_HID_IGNORE", [UQ_KBD_IGNORE] = "UQ_KBD_IGNORE", [UQ_KBD_BOOTPROTO] = "UQ_KBD_BOOTPROTO", + [UQ_UMS_IGNORE] = "UQ_UMS_IGNORE", [UQ_MS_BAD_CLASS] = "UQ_MS_BAD_CLASS", [UQ_MS_LEADING_BYTE] = "UQ_MS_LEADING_BYTE", [UQ_MS_REVZ] = "UQ_MS_REVZ", Index: sys/dev/usb/quirk/usb_quirk.h =================================================================== --- sys/dev/usb/quirk/usb_quirk.h (revision 240607) +++ sys/dev/usb/quirk/usb_quirk.h (working copy) @@ -29,7 +29,7 @@ enum { /* - * Keep in sync with theusb_quirk_str usb_quirk.c, and with the + * Keep in sync with usb_quirk_str in usb_quirk.c, and with * share/man/man4/usb_quirk.4 */ UQ_NONE, /* not a valid quirk */ @@ -49,6 +49,7 @@ UQ_HID_IGNORE, /* device should be ignored by hid class */ UQ_KBD_IGNORE, /* device should be ignored by kbd class */ UQ_KBD_BOOTPROTO, /* device should set the boot protocol */ + UQ_UMS_IGNORE, /* device should be ignored by ums class */ UQ_MS_BAD_CLASS, /* doesn't identify properly */ UQ_MS_LEADING_BYTE, /* mouse sends an unknown leading byte */ UQ_MS_REVZ, /* mouse has Z-axis reversed */ Index: sys/dev/usb/input/ums.c =================================================================== --- sys/dev/usb/input/ums.c (revision 240607) +++ sys/dev/usb/input/ums.c (working copy) @@ -381,6 +381,9 @@ if (uaa->info.bInterfaceClass != UICLASS_HID) return (ENXIO); + if (usb_test_quirk(uaa, UQ_UMS_IGNORE)) + return (ENXIO); + if ((uaa->info.bInterfaceSubClass == UISUBCLASS_BOOT) && (uaa->info.bInterfaceProtocol == UIPROTO_MOUSE)) return (BUS_PROBE_DEFAULT); >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon Sep 17 19:10:06 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42672106566B for ; Mon, 17 Sep 2012 19:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2DC4F8FC0A for ; Mon, 17 Sep 2012 19:10:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8HJA63f075534 for ; Mon, 17 Sep 2012 19:10:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8HJA6gt075533; Mon, 17 Sep 2012 19:10:06 GMT (envelope-from gnats) Date: Mon, 17 Sep 2012 19:10:06 GMT Message-Id: <201209171910.q8HJA6gt075533@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: usb/171721: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2012 19:10:06 -0000 The following reply was made to PR usb/171721; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/171721: commit references a PR Date: Mon, 17 Sep 2012 19:06:47 +0000 (UTC) Author: hselasky Date: Mon Sep 17 19:06:35 2012 New Revision: 240615 URL: http://svn.freebsd.org/changeset/base/240615 Log: Add UQ_UMS_IGNORE quirk. Wrap two long lines. Some minor spelling correction. PR: usb/171721 Modified: head/share/man/man4/usb_quirk.4 head/sys/dev/usb/input/ums.c head/sys/dev/usb/quirk/usb_quirk.c head/sys/dev/usb/quirk/usb_quirk.h Modified: head/share/man/man4/usb_quirk.4 ============================================================================== --- head/share/man/man4/usb_quirk.4 Mon Sep 17 16:39:32 2012 (r240614) +++ head/share/man/man4/usb_quirk.4 Mon Sep 17 19:06:35 2012 (r240615) @@ -66,6 +66,8 @@ device should be ignored by hid class device should be ignored by kbd class .It UQ_KBD_BOOTPROTO device should set the boot protocol +.It UQ_UMS_IGNORE +device should be ignored by ums class .It UQ_MS_BAD_CLASS doesn't identify properly .It UQ_MS_LEADING_BYTE Modified: head/sys/dev/usb/input/ums.c ============================================================================== --- head/sys/dev/usb/input/ums.c Mon Sep 17 16:39:32 2012 (r240614) +++ head/sys/dev/usb/input/ums.c Mon Sep 17 19:06:35 2012 (r240615) @@ -381,6 +381,9 @@ ums_probe(device_t dev) if (uaa->info.bInterfaceClass != UICLASS_HID) return (ENXIO); + if (usb_test_quirk(uaa, UQ_UMS_IGNORE)) + return (ENXIO); + if ((uaa->info.bInterfaceSubClass == UISUBCLASS_BOOT) && (uaa->info.bInterfaceProtocol == UIPROTO_MOUSE)) return (BUS_PROBE_DEFAULT); Modified: head/sys/dev/usb/quirk/usb_quirk.c ============================================================================== --- head/sys/dev/usb/quirk/usb_quirk.c Mon Sep 17 16:39:32 2012 (r240614) +++ head/sys/dev/usb/quirk/usb_quirk.c Mon Sep 17 19:06:35 2012 (r240615) @@ -494,6 +494,7 @@ static const char *usb_quirk_str[USB_QUI [UQ_HID_IGNORE] = "UQ_HID_IGNORE", [UQ_KBD_IGNORE] = "UQ_KBD_IGNORE", [UQ_KBD_BOOTPROTO] = "UQ_KBD_BOOTPROTO", + [UQ_UMS_IGNORE] = "UQ_UMS_IGNORE", [UQ_MS_BAD_CLASS] = "UQ_MS_BAD_CLASS", [UQ_MS_LEADING_BYTE] = "UQ_MS_LEADING_BYTE", [UQ_MS_REVZ] = "UQ_MS_REVZ", Modified: head/sys/dev/usb/quirk/usb_quirk.h ============================================================================== --- head/sys/dev/usb/quirk/usb_quirk.h Mon Sep 17 16:39:32 2012 (r240614) +++ head/sys/dev/usb/quirk/usb_quirk.h Mon Sep 17 19:06:35 2012 (r240615) @@ -29,7 +29,7 @@ enum { /* - * Keep in sync with theusb_quirk_str usb_quirk.c, and with the + * Keep in sync with usb_quirk_str in usb_quirk.c, and with * share/man/man4/usb_quirk.4 */ UQ_NONE, /* not a valid quirk */ @@ -49,6 +49,7 @@ enum { UQ_HID_IGNORE, /* device should be ignored by hid class */ UQ_KBD_IGNORE, /* device should be ignored by kbd class */ UQ_KBD_BOOTPROTO, /* device should set the boot protocol */ + UQ_UMS_IGNORE, /* device should be ignored by ums class */ UQ_MS_BAD_CLASS, /* doesn't identify properly */ UQ_MS_LEADING_BYTE, /* mouse sends an unknown leading byte */ UQ_MS_REVZ, /* mouse has Z-axis reversed */ @@ -64,7 +65,10 @@ enum { UQ_CFG_INDEX_0, /* select configuration index 0 by default */ UQ_ASSUME_CM_OVER_DATA, /* assume cm over data feature */ - /* USB Mass Storage Quirks. See "storage/umass.c" for a detailed description. */ + /* + * USB Mass Storage Quirks. See "storage/umass.c" for a + * detailed description. + */ UQ_MSC_NO_TEST_UNIT_READY, /* send start/stop instead of TUR */ UQ_MSC_NO_RS_CLEAR_UA, /* does not reset Unit Att. */ UQ_MSC_NO_START_STOP, /* does not support start/stop */ _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Tue Sep 18 10:50:10 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88F4C106564A for ; Tue, 18 Sep 2012 10:50:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5ADD78FC12 for ; Tue, 18 Sep 2012 10:50:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8IAoAIH005674 for ; Tue, 18 Sep 2012 10:50:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8IAoAOr005673; Tue, 18 Sep 2012 10:50:10 GMT (envelope-from gnats) Date: Tue, 18 Sep 2012 10:50:10 GMT Message-Id: <201209181050.q8IAoAOr005673@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Vitaly Magerya Cc: Subject: Re: usb/171721: [patch] usb_quirk(4), ums(4): add UQ_UMS_IGNORE quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Vitaly Magerya List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 10:50:10 -0000 The following reply was made to PR usb/171721; it has been noted by GNATS. From: Vitaly Magerya To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/171721: [patch] usb_quirk(4), ums(4): add UQ_UMS_IGNORE quirk Date: Tue, 18 Sep 2012 13:41:20 +0300 Will it be possible to also MFC this change so it would get into the upcoming 9.1-RELEASE? From owner-freebsd-usb@FreeBSD.ORG Tue Sep 18 14:56:44 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B4051065674 for ; Tue, 18 Sep 2012 14:56:44 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.c2i.net [212.247.154.34]) by mx1.freebsd.org (Postfix) with ESMTP id A07548FC08 for ; Tue, 18 Sep 2012 14:56:43 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe02.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 321722847; Tue, 18 Sep 2012 16:51:35 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, Vitaly Magerya Date: Tue, 18 Sep 2012 16:52:48 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <201209181050.q8IAoAOr005673@freefall.freebsd.org> In-Reply-To: <201209181050.q8IAoAOr005673@freefall.freebsd.org> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201209181652.48730.hselasky@c2i.net> Cc: Subject: Re: usb/171721: [patch] usb_quirk(4), ums(4): add UQ_UMS_IGNORE quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 14:56:44 -0000 On Tuesday 18 September 2012 12:50:10 Vitaly Magerya wrote: > The following reply was made to PR usb/171721; it has been noted by GNATS. > > From: Vitaly Magerya > To: bug-followup@FreeBSD.org > Cc: > Subject: Re: usb/171721: [patch] usb_quirk(4), ums(4): add UQ_UMS_IGNORE > quirk Date: Tue, 18 Sep 2012 13:41:20 +0300 > > Will it be possible to also MFC this change so it would > get into the upcoming 9.1-RELEASE? Yes, if you remind me in a week or so. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Sep 18 16:50:11 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8ECE710658A6; Tue, 18 Sep 2012 16:50:11 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1E8358FC16; Tue, 18 Sep 2012 16:50:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8IGoATJ051347; Tue, 18 Sep 2012 16:50:11 GMT (envelope-from eadler@freefall.freebsd.org) Received: (from eadler@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8IGoATi051343; Tue, 18 Sep 2012 16:50:10 GMT (envelope-from eadler) Date: Tue, 18 Sep 2012 16:50:10 GMT Message-Id: <201209181650.q8IGoATi051343@freefall.freebsd.org> To: eadler@FreeBSD.org, freebsd-usb@FreeBSD.org, eadler@FreeBSD.org From: eadler@FreeBSD.org Cc: Subject: Re: usb/153599: [usbdevs] [patch] Feiya Elango USB MicroSD reader synchronize cache quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 16:50:11 -0000 Synopsis: [usbdevs] [patch] Feiya Elango USB MicroSD reader synchronize cache quirk Responsible-Changed-From-To: freebsd-usb->eadler Responsible-Changed-By: eadler Responsible-Changed-When: Tue Sep 18 16:50:10 UTC 2012 Responsible-Changed-Why: I'll take it. http://www.freebsd.org/cgi/query-pr.cgi?pr=153599 From owner-freebsd-usb@FreeBSD.ORG Tue Sep 18 16:50:20 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DEB21065911; Tue, 18 Sep 2012 16:50:20 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 622E38FC0A; Tue, 18 Sep 2012 16:50:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8IGoG0N051456; Tue, 18 Sep 2012 16:50:16 GMT (envelope-from eadler@freefall.freebsd.org) Received: (from eadler@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8IGoGvl051441; Tue, 18 Sep 2012 16:50:16 GMT (envelope-from eadler) Date: Tue, 18 Sep 2012 16:50:16 GMT Message-Id: <201209181650.q8IGoGvl051441@freefall.freebsd.org> To: eadler@FreeBSD.org, freebsd-usb@FreeBSD.org, eadler@FreeBSD.org From: eadler@FreeBSD.org Cc: Subject: Re: usb/159611: [PATCH] USB stick extrememory Snippy needs quirks X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 16:50:20 -0000 Synopsis: [PATCH] USB stick extrememory Snippy needs quirks Responsible-Changed-From-To: freebsd-usb->eadler Responsible-Changed-By: eadler Responsible-Changed-When: Tue Sep 18 16:50:15 UTC 2012 Responsible-Changed-Why: I'll take it. http://www.freebsd.org/cgi/query-pr.cgi?pr=159611 From owner-freebsd-usb@FreeBSD.ORG Tue Sep 18 16:50:21 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB434106591E; Tue, 18 Sep 2012 16:50:21 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BF7288FC19; Tue, 18 Sep 2012 16:50:21 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8IGoLF3051560; Tue, 18 Sep 2012 16:50:21 GMT (envelope-from eadler@freefall.freebsd.org) Received: (from eadler@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8IGoLEi051556; Tue, 18 Sep 2012 16:50:21 GMT (envelope-from eadler) Date: Tue, 18 Sep 2012 16:50:21 GMT Message-Id: <201209181650.q8IGoLEi051556@freefall.freebsd.org> To: eadler@FreeBSD.org, freebsd-usb@FreeBSD.org, eadler@FreeBSD.org From: eadler@FreeBSD.org Cc: Subject: Re: usb/166848: [umass] [patch] Buffalo RUF2 requires quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 16:50:22 -0000 Synopsis: [umass] [patch] Buffalo RUF2 requires quirk Responsible-Changed-From-To: freebsd-usb->eadler Responsible-Changed-By: eadler Responsible-Changed-When: Tue Sep 18 16:50:21 UTC 2012 Responsible-Changed-Why: I'll take it. http://www.freebsd.org/cgi/query-pr.cgi?pr=166848 From owner-freebsd-usb@FreeBSD.ORG Tue Sep 18 16:50:56 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F2D8106566B; Tue, 18 Sep 2012 16:50:56 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 226E78FC14; Tue, 18 Sep 2012 16:50:56 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8IGouZM051781; Tue, 18 Sep 2012 16:50:56 GMT (envelope-from eadler@freefall.freebsd.org) Received: (from eadler@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8IGouSp051777; Tue, 18 Sep 2012 16:50:56 GMT (envelope-from eadler) Date: Tue, 18 Sep 2012 16:50:56 GMT Message-Id: <201209181650.q8IGouSp051777@freefall.freebsd.org> To: vmagerya@gmail.com, eadler@FreeBSD.org, freebsd-usb@FreeBSD.org, hrs@FreeBSD.org From: eadler@FreeBSD.org Cc: Subject: Re: usb/171721: [patch] usb_quirk(4), ums(4): add UQ_UMS_IGNORE quirk X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 16:50:56 -0000 Synopsis: [patch] usb_quirk(4), ums(4): add UQ_UMS_IGNORE quirk State-Changed-From-To: open->patched State-Changed-By: eadler State-Changed-When: Tue Sep 18 16:50:45 UTC 2012 State-Changed-Why: committed in r240615 Responsible-Changed-From-To: freebsd-usb->hrs Responsible-Changed-By: eadler Responsible-Changed-When: Tue Sep 18 16:50:45 UTC 2012 Responsible-Changed-Why: committed in r240615 http://www.freebsd.org/cgi/query-pr.cgi?pr=171721 From owner-freebsd-usb@FreeBSD.ORG Tue Sep 18 17:30:15 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BA02A106566C for ; Tue, 18 Sep 2012 17:30:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A60558FC1C for ; Tue, 18 Sep 2012 17:30:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8IHUF3Y055259 for ; Tue, 18 Sep 2012 17:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8IHUFJk055256; Tue, 18 Sep 2012 17:30:15 GMT (envelope-from gnats) Date: Tue, 18 Sep 2012 17:30:15 GMT Message-Id: <201209181730.q8IHUFJk055256@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: usb/169789: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 17:30:15 -0000 The following reply was made to PR usb/169789; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/169789: commit references a PR Date: Tue, 18 Sep 2012 17:23:11 +0000 (UTC) Author: hselasky Date: Tue Sep 18 17:23:00 2012 New Revision: 240669 URL: http://svn.freebsd.org/changeset/base/240669 Log: MFC r238079, r238493, r238526, r238529 and r238717: Add new USB ID's. PR: usb/169789 Modified: stable/9/sys/dev/usb/serial/u3g.c stable/9/sys/dev/usb/usbdevs Directory Properties: stable/9/sys/ (props changed) stable/9/sys/dev/ (props changed) Modified: stable/9/sys/dev/usb/serial/u3g.c ============================================================================== --- stable/9/sys/dev/usb/serial/u3g.c Tue Sep 18 17:17:04 2012 (r240668) +++ stable/9/sys/dev/usb/serial/u3g.c Tue Sep 18 17:23:00 2012 (r240669) @@ -285,14 +285,18 @@ static const STRUCT_USB_HOST_ID u3g_devs U3G_DEV(HUAWEI, E143F, U3GINIT_HUAWEI), U3G_DEV(HUAWEI, E173, 0), U3G_DEV(HUAWEI, E173_INIT, U3GINIT_HUAWEISCSI), + U3G_DEV(HUAWEI, E3131, 0), + U3G_DEV(HUAWEI, E3131_INIT, U3GINIT_HUAWEISCSI), U3G_DEV(HUAWEI, E180V, U3GINIT_HUAWEI), U3G_DEV(HUAWEI, E220, U3GINIT_HUAWEI), U3G_DEV(HUAWEI, E220BIS, U3GINIT_HUAWEI), + U3G_DEV(HUAWEI, E392, U3GINIT_HUAWEISCSI), U3G_DEV(HUAWEI, MOBILE, U3GINIT_HUAWEI), U3G_DEV(HUAWEI, E1752, U3GINIT_HUAWEISCSI), U3G_DEV(HUAWEI, E1820, U3GINIT_HUAWEISCSI), U3G_DEV(HUAWEI, K3765, U3GINIT_HUAWEI), U3G_DEV(HUAWEI, K3765_INIT, U3GINIT_HUAWEISCSI), + U3G_DEV(HUAWEI, ETS2055, U3GINIT_HUAWEI), U3G_DEV(KYOCERA2, CDMA_MSM_K, 0), U3G_DEV(KYOCERA2, KPC680, 0), U3G_DEV(LONGCHEER, WM66, U3GINIT_HUAWEI), @@ -359,6 +363,8 @@ static const STRUCT_USB_HOST_ID u3g_devs U3G_DEV(QUALCOMM2, MF330, 0), U3G_DEV(QUALCOMM2, SIM5218, 0), U3G_DEV(QUALCOMM2, VW110L, U3GINIT_SCSIEJECT), + U3G_DEV(QUALCOMM2, GOBI2000_QDL, 0), + U3G_DEV(QUALCOMM2, GOBI2000, 0), U3G_DEV(QUALCOMMINC, AC2726, 0), U3G_DEV(QUALCOMMINC, AC8700, 0), U3G_DEV(QUALCOMMINC, AC8710, 0), Modified: stable/9/sys/dev/usb/usbdevs ============================================================================== --- stable/9/sys/dev/usb/usbdevs Tue Sep 18 17:17:04 2012 (r240668) +++ stable/9/sys/dev/usb/usbdevs Tue Sep 18 17:23:00 2012 (r240669) @@ -2184,7 +2184,11 @@ product HUAWEI E143F 0x143f 3G modem product HUAWEI E1752 0x1446 3G modem product HUAWEI K3765 0x1465 3G modem product HUAWEI E1820 0x14ac E1820 HSPA+ USB Slider +product HUAWEI E3131_INIT 0x14fe 3G modem initial +product HUAWEI E392 0x1505 LTE modem +product HUAWEI E3131 0x1506 3G modem product HUAWEI K3765_INIT 0x1520 K3765 Initial +product HUAWEI ETS2055 0x1803 CDMA modem product HUAWEI E173 0x1c05 3G modem product HUAWEI E173_INIT 0x1c0b 3G modem initial @@ -3328,6 +3332,8 @@ product QUALCOMM2 CDMA_MSM 0x3196 CDMA T product QUALCOMM2 AC8700 0x6000 AC8700 product QUALCOMM2 VW110L 0x1000 Vertex Wireless 110L modem product QUALCOMM2 SIM5218 0x9000 SIM5218 +product QUALCOMM2 GOBI2000_QDL 0x9204 Qualcomm Gobi 2000 QDL +product QUALCOMM2 GOBI2000 0x9205 Qualcomm Gobi 2000 modem product QUALCOMMINC CDMA_MSM 0x0001 CDMA Technologies MSM modem product QUALCOMMINC E0002 0x0002 3G modem product QUALCOMMINC E0003 0x0003 3G modem _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Tue Sep 18 17:46:14 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE75E1065673; Tue, 18 Sep 2012 17:46:14 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id 0DBC88FC16; Tue, 18 Sep 2012 17:46:13 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 322194007; Tue, 18 Sep 2012 19:46:05 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Tue, 18 Sep 2012 19:47:17 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <4F130E7F.9090400@m5p.com> <201201152036.09426.hselasky@c2i.net> In-Reply-To: <201201152036.09426.hselasky@c2i.net> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201209181947.17991.hselasky@c2i.net> Cc: George Mitchell , freebsd-usb@freebsd.org Subject: Re: 9.0 umass problem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 17:46:14 -0000 On Sunday 15 January 2012 20:36:09 Hans Petter Selasky wrote: > On Sunday 15 January 2012 18:35:59 George Mitchell wrote: > > I have a USB compact flash reader-writer which is normally connected to > > my computer all the time but rarely contains a compact flash card. Here > > is a snippet from a verbose dmesg with FreeBSD 9.0-RC3: > > > > > > ugen0.5: at usbus0 > > umass0: on > > usbus0 > > umass0: SCSI over Bulk-Only; quirks = 0x4101 > > umass0:2:0:-1: Attached to scbus2 > > (probe0:umass-sim0:0:0:0): SCSI status error > > (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 1 0 0 ff 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): SCSI sense: NOT READY asc:3a,0 (Medium not > > present) > > (probe0:umass-sim0:0:0:0): Error 6, Unretryable error > > (probe0:umass-sim0:0:0:0): Down reving Protocol Version from 2 to 0? > > ... > > (probe0:umass-sim0:0:0:0): AutoSense failed > > (probe0:umass-sim0:0:0:0): Error 5, Unretryable error > > GEOM: new disk da0 > > pass2 at umass-sim0 bus 0 scbus2 target 0 lun 0 > > pass2: Removable Direct Access SCSI-0 > > device pass2: 1.000MB/s transfers > > ... > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Error 5, Retries exhausted > > (da0:umass-sim0:0:0:0): got CAM status 0x4 > > (da0:umass-sim0:0:0:0): fatal error, failed to attach to device > > (da0:umass-sim0:0:0:0): lost device - 0 outstanding > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Error 5, Retries exhausted > > (da0:umass-sim0:0:0:0): removing device entry > > Opened disk da0 -> 5 > > > > > > Everything works normally, but the above events take about half a > > minute and bring the booting-up procedure to a halt while the > > retries finish. Is there a umass quirk I could enable to speed up > > whatever is happening here? usbconfig -d 0.5 dump_device_desc says: > > > > ugen0.5: at usbus0, cfg=0 md=HOST spd=FULL > > (12Mbps) pwr=ON > > > > bLength = 0x0012 > > bDescriptorType = 0x0001 > > bcdUSB = 0x0200 > > bDeviceClass = 0x0000 > > bDeviceSubClass = 0x0000 > > bDeviceProtocol = 0x0000 > > bMaxPacketSize0 = 0x0040 > > idVendor = 0x05e3 > > idProduct = 0x0703 > > bcdDevice = 0x0032 > > iManufacturer = 0x0000 > > iProduct = 0x0001 > > iSerialNumber = 0x0000 > > bNumConfigurations = 0x0001 > > > > > > Here's the corresponding dmesg output from 8.2-STABLE: > > > > ugen0.5: at usbus0 > > umass0: on > > usbus0 > > umass0: SCSI over Bulk-Only; quirks = 0x0000 > > umass0: Get Max Lun not supported (USB_ERR_STALLED) > > umass0:2:0:-1: Attached to scbus2 > > (probe0:umass-sim0:0:0:0): SCSI status error > > (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 1 0 0 ff 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): SCSI sense: NOT READY asc:3a,0 (Medium not > > present) > > (probe0:umass-sim0:0:0:0): Error 6, Unretryable error > > (probe0:umass-sim0:0:0:0): Down reving Protocol Version from 2 to 0? > > (probe0:umass-sim0:0:0:0): SCSI status error > > (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): SCSI sense: NOT READY asc:3a,0 (Medium not > > present) > > (probe0:umass-sim0:0:0:0): Error 6, Unretryable error > > GEOM: new disk da0 > > pass2 at umass-sim0 bus 0 scbus2 target 0 lun 0 > > pass2: Removable Direct Access SCSI-0 > > device pass2: 1.000MB/s transfers > > (da0:umass-sim0:0:0:0): SCSI status error > > (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 > > (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error > > (da0:umass-sim0:0:0:0): SCSI status: Check Condition > > (da0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not > > present) (da0:umass-sim0:0:0:0): Error 6, Unretryable error > > da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 > > da0: Removable Direct Access SCSI-0 device > > da0: 1.000MB/s transfers > > da0: Attempt to query device size failed: NOT READY, Medium not present > > (da0:umass-sim0:0:0:0): SCSI status error > > (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 > > (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error > > (da0:umass-sim0:0:0:0): SCSI status: Check Condition > > (da0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not > > present) (da0:umass-sim0:0:0:0): Error 6, Unretryable error > > Opened disk da0 -> 6 > > (da0:umass-sim0:0:0:0): SCSI status error > > (da0:umass-sim0:0:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 > > (da0:umass-sim0:0:0:0): CAM status: SCSI Status Error > > (da0:umass-sim0:0:0:0): SCSI status: Check Condition > > (da0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not > > present) (da0:umass-sim0:0:0:0): Error 6, Unretryable error > > Opened disk da0 -> 6 > > > > (which all took only a couple of seconds, compared to half a minute > > with 9.0.) > > > > When there is a flash card in the device, 9.0 behaves even worse, > > taking about two and a half minutes to do this: > > > > ugen0.5: at usbus0 > > umass0: on > > usbus0 > > umass0: SCSI over Bulk-Only; quirks = 0x4101 > > umass0:2:0:-1: Attached to scbus2 > > (probe0:umass-sim0:0:0:0): Down reving Protocol Version from 2 to 0? > > GEOM: new disk da0 > > pass2 at umass-sim0 bus 0 scbus2 target 0 lun 0 > > pass2: Removable Direct Access SCSI-0 > > device pass2: 1.000MB/s transfers > > da0 at umass-sim0 bus 0 scbus2 target 0 lun 0 > > da0: Removable Direct Access SCSI-0 device > > da0: 1.000MB/s transfers > > da0: 245MB (501760 512 byte sectors: 64H 32S/T 245C) > > ... > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Error 5, Retries exhausted > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Error 5, Retries exhausted > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Error 5, Retries exhausted > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Error 5, Retries exhausted > > Opened disk da0 -> 5 > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Retrying command > > (da0:umass-sim0:0:0:0): Request completed with CAM_REQ_CMP_ERR > > (da0:umass-sim0:0:0:0): Error 5, Retries exhausted > > Opened disk da0 -> 5 > > > > Suggestions? -- George Mitchell > Hi, Can you try 9-stable or apply this patch: http://svn.freebsd.org/changeset/base/240662 --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Sep 19 00:05:54 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E92E41065670; Wed, 19 Sep 2012 00:05:54 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (ip-2-1-0-2.r03.asbnva02.us.ce.gin.ntt.net [IPv6:2001:418:0:5000::16]) by mx1.freebsd.org (Postfix) with ESMTP id 9EFD18FC08; Wed, 19 Sep 2012 00:05:54 +0000 (UTC) Received: from wonderland.m5p.com (localhost [IPv6:::1]) by mailhost.m5p.com (8.14.5/8.14.5) with ESMTP id q8J05hV1004489; Tue, 18 Sep 2012 20:05:48 -0400 (EDT) (envelope-from george+freebsd@m5p.com) Message-ID: <50590C57.4070101@m5p.com> Date: Tue, 18 Sep 2012 20:05:43 -0400 From: George Mitchell User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120908 Thunderbird/15.0 MIME-Version: 1.0 To: Hans Petter Selasky References: <4F130E7F.9090400@m5p.com> <201201152036.09426.hselasky@c2i.net> <201209181947.17991.hselasky@c2i.net> In-Reply-To: <201209181947.17991.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 on 10.100.0.24 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (mailhost.m5p.com [IPv6:::1]); Tue, 18 Sep 2012 20:05:48 -0400 (EDT) Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: 9.0 umass problem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2012 00:05:55 -0000 On 09/18/12 13:47, Hans Petter Selasky wrote: > On Sunday 15 January 2012 20:36:09 Hans Petter Selasky wrote: >> On Sunday 15 January 2012 18:35:59 George Mitchell wrote: >>> I have a USB compact flash reader-writer which is normally connected to >>> my computer all the time but rarely contains a compact flash card. Here >>> is a snippet from a verbose dmesg with FreeBSD 9.0-RC3: >>>[...] > Hi, > > Can you try 9-stable or apply this patch: > > http://svn.freebsd.org/changeset/base/240662 > > --HPS > Probably not before Saturday, but thanks for the patch! -- George From owner-freebsd-usb@FreeBSD.ORG Thu Sep 20 11:50:14 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3911710656A9 for ; Thu, 20 Sep 2012 11:50:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DFFA58FC63 for ; Thu, 20 Sep 2012 11:50:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8KBoBZc009219 for ; Thu, 20 Sep 2012 11:50:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8KBoB2O009218; Thu, 20 Sep 2012 11:50:11 GMT (envelope-from gnats) Resent-Date: Thu, 20 Sep 2012 11:50:11 GMT Resent-Message-Id: <201209201150.q8KBoB2O009218@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Vitaly Magerya Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 03C28106566B for ; Thu, 20 Sep 2012 11:46:55 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id CE9CF8FC08 for ; Thu, 20 Sep 2012 11:46:55 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8KBkt2D062484 for ; Thu, 20 Sep 2012 11:46:55 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q8KBktFg062349; Thu, 20 Sep 2012 11:46:55 GMT (envelope-from nobody) Message-Id: <201209201146.q8KBktFg062349@red.freebsd.org> Date: Thu, 20 Sep 2012 11:46:55 GMT From: Vitaly Magerya To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: usb/171810: [patch] make hid_start_parse(3) respect report ID argument X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2012 11:50:14 -0000 >Number: 171810 >Category: usb >Synopsis: [patch] make hid_start_parse(3) respect report ID argument >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Sep 20 11:50:11 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Vitaly Magerya >Release: >Organization: >Environment: >Description: Currently hid_start_parse(3) ignores it's 3-rd parameter -- the report ID, so subsequent calls to hid_get_item(3) return items of all report IDs, not just the one requested. This also affects hid_locate(3), which effectively ignores requested report ID too. This is different from how it works on NetBSD and OpenBSD: their libusbhid(3) implementations only return items of the requested report ID, unless it is -1, in which case items of all report IDs are returned. In fact our own usbhidctl(1) always uses -1 as the report ID argument, and usbhidaction(1) has an undocumented option '-r' to use report ID other than -1 -- which doesn't seem to work at the moment (I did not test it, but it appears that way from the code). In short, I propose to follow NetBSD and OpenBSD and respect id argument of hid_start_parse(3). Note: we had the same API before revision 205728, which says "This merge does not change any API", so it seems this was just overlooked. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: usbhid.3 =================================================================== --- usbhid.3 (revision 240744) +++ usbhid.3 (working copy) @@ -144,16 +144,15 @@ .Ss Descriptor Parsing Functions To parse the report descriptor the .Fn hid_start_parse -function should be called with a report descriptor and a set that -describes which items that are interesting. +function should be called with a report descriptor, a set that +describes which items that are interesting, and the desired report +ID (or -1 to obtain items of all report IDs). The set is obtained by OR-ing together values .Fa "(1 << k)" where .Fa k is an item of type .Vt hid_kind_t . -The report ID (if present) is given by -.Fa id . The function returns .Dv NULL if the initialization fails, otherwise an opaque value to be used Index: descr.c =================================================================== --- descr.c (revision 240744) +++ descr.c (working copy) @@ -68,7 +68,7 @@ if ((rep = hid_get_report_desc(fd)) == NULL) goto use_ioctl; kindset = 1 << hid_input | 1 << hid_output | 1 << hid_feature; - for (d = hid_start_parse(rep, kindset, 0); hid_get_item(d, &h); ) { + for (d = hid_start_parse(rep, kindset, -1); hid_get_item(d, &h); ) { /* Return the first report ID we met. */ if (h.report_ID != 0) { temp = h.report_ID; Index: parse.c =================================================================== --- parse.c (revision 240744) +++ parse.c (working copy) @@ -70,6 +70,7 @@ uint8_t iusage; /* current "usages_min/max" index */ uint8_t ousage; /* current "usages_min/max" offset */ uint8_t susage; /* usage set flags */ + uint32_t reportid; /* requested report ID */ }; /*------------------------------------------------------------------------* @@ -149,7 +150,7 @@ * hid_start_parse *------------------------------------------------------------------------*/ hid_data_t -hid_start_parse(report_desc_t d, int kindset, int id __unused) +hid_start_parse(report_desc_t d, int kindset, int id) { struct hid_data *s; @@ -158,6 +159,7 @@ s->start = s->p = d->data; s->end = d->data + d->size; s->kindset = kindset; + s->reportid = id; return (s); } @@ -207,8 +209,8 @@ /*------------------------------------------------------------------------* * hid_get_item *------------------------------------------------------------------------*/ -int -hid_get_item(hid_data_t s, hid_item_t *h) +static int +hid_get_item_raw(hid_data_t s, hid_item_t *h) { hid_item_t *c; unsigned int bTag, bType, bSize; @@ -509,6 +511,19 @@ } int +hid_get_item(hid_data_t s, hid_item_t *h) +{ + int r; + + for (;;) { + r = hid_get_item_raw(s, h); + if (r <= 0 || s->reportid == -1 || h->report_ID == s->reportid) + break; + } + return (r); +} + +int hid_report_size(report_desc_t r, enum hid_kind k, int id) { struct hid_data *d; @@ -523,7 +538,7 @@ memset(&h, 0, sizeof h); for (d = hid_start_parse(r, 1 << k, id); hid_get_item(d, &h); ) { - if ((h.report_ID == id || id < 0) && h.kind == k) { + if (h.kind == k) { /* compute minimum */ if (lpos > h.pos) lpos = h.pos; >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Sep 20 19:00:27 2012 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72A091065688 for ; Thu, 20 Sep 2012 19:00:27 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2EF938FC1C for ; Thu, 20 Sep 2012 19:00:27 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8KJ0R6q009149 for ; Thu, 20 Sep 2012 19:00:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8KJ0R8B009148; Thu, 20 Sep 2012 19:00:27 GMT (envelope-from gnats) Date: Thu, 20 Sep 2012 19:00:27 GMT Message-Id: <201209201900.q8KJ0R8B009148@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: usb/171810: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2012 19:00:28 -0000 The following reply was made to PR usb/171810; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/171810: commit references a PR Date: Thu, 20 Sep 2012 18:56:39 +0000 (UTC) Author: mav Date: Thu Sep 20 18:56:27 2012 New Revision: 240762 URL: http://svn.freebsd.org/changeset/base/240762 Log: Restore handling of the third argument (id) of hid_start_parse(), same as it is done in NetBSD/OpenBSD, and as it was here before r205728. I personally think this API or its implementation is incorrect, as it is not correct to filter collections based on report ID, as they are orthogonal in general case, but I see no harm from supporting this feature. PR: usb/171810 Submitted by: Vitaly Magerya MFC after: 1 month Modified: head/lib/libusbhid/descr.c head/lib/libusbhid/parse.c head/lib/libusbhid/usbhid.3 Modified: head/lib/libusbhid/descr.c ============================================================================== --- head/lib/libusbhid/descr.c Thu Sep 20 18:42:00 2012 (r240761) +++ head/lib/libusbhid/descr.c Thu Sep 20 18:56:27 2012 (r240762) @@ -68,7 +68,7 @@ hid_get_report_id(int fd) if ((rep = hid_get_report_desc(fd)) == NULL) goto use_ioctl; kindset = 1 << hid_input | 1 << hid_output | 1 << hid_feature; - for (d = hid_start_parse(rep, kindset, 0); hid_get_item(d, &h); ) { + for (d = hid_start_parse(rep, kindset, -1); hid_get_item(d, &h); ) { /* Return the first report ID we met. */ if (h.report_ID != 0) { temp = h.report_ID; Modified: head/lib/libusbhid/parse.c ============================================================================== --- head/lib/libusbhid/parse.c Thu Sep 20 18:42:00 2012 (r240761) +++ head/lib/libusbhid/parse.c Thu Sep 20 18:56:27 2012 (r240762) @@ -70,6 +70,7 @@ struct hid_data { uint8_t iusage; /* current "usages_min/max" index */ uint8_t ousage; /* current "usages_min/max" offset */ uint8_t susage; /* usage set flags */ + int32_t reportid; /* requested report ID */ }; /*------------------------------------------------------------------------* @@ -149,7 +150,7 @@ hid_switch_rid(struct hid_data *s, struc * hid_start_parse *------------------------------------------------------------------------*/ hid_data_t -hid_start_parse(report_desc_t d, int kindset, int id __unused) +hid_start_parse(report_desc_t d, int kindset, int id) { struct hid_data *s; @@ -158,6 +159,7 @@ hid_start_parse(report_desc_t d, int kin s->start = s->p = d->data; s->end = d->data + d->size; s->kindset = kindset; + s->reportid = id; return (s); } @@ -207,8 +209,8 @@ hid_get_byte(struct hid_data *s, const u /*------------------------------------------------------------------------* * hid_get_item *------------------------------------------------------------------------*/ -int -hid_get_item(hid_data_t s, hid_item_t *h) +static int +hid_get_item_raw(hid_data_t s, hid_item_t *h) { hid_item_t *c; unsigned int bTag, bType, bSize; @@ -509,6 +511,19 @@ hid_get_item(hid_data_t s, hid_item_t *h } int +hid_get_item(hid_data_t s, hid_item_t *h) +{ + int r; + + for (;;) { + r = hid_get_item_raw(s, h); + if (r <= 0 || s->reportid == -1 || h->report_ID == s->reportid) + break; + } + return (r); +} + +int hid_report_size(report_desc_t r, enum hid_kind k, int id) { struct hid_data *d; @@ -523,7 +538,7 @@ hid_report_size(report_desc_t r, enum hi memset(&h, 0, sizeof h); for (d = hid_start_parse(r, 1 << k, id); hid_get_item(d, &h); ) { - if ((h.report_ID == id || id < 0) && h.kind == k) { + if (h.kind == k) { /* compute minimum */ if (lpos > h.pos) lpos = h.pos; Modified: head/lib/libusbhid/usbhid.3 ============================================================================== --- head/lib/libusbhid/usbhid.3 Thu Sep 20 18:42:00 2012 (r240761) +++ head/lib/libusbhid/usbhid.3 Thu Sep 20 18:56:27 2012 (r240762) @@ -144,16 +144,15 @@ fails it will return .Ss Descriptor Parsing Functions To parse the report descriptor the .Fn hid_start_parse -function should be called with a report descriptor and a set that -describes which items that are interesting. +function should be called with a report descriptor, a set that +describes which items that are interesting, and the desired report +ID (or -1 to obtain items of all report IDs). The set is obtained by OR-ing together values .Fa "(1 << k)" where .Fa k is an item of type .Vt hid_kind_t . -The report ID (if present) is given by -.Fa id . The function returns .Dv NULL if the initialization fails, otherwise an opaque value to be used _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Sat Sep 22 19:38:25 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E1701106566B for ; Sat, 22 Sep 2012 19:38:25 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 9B9DC8FC08 for ; Sat, 22 Sep 2012 19:38:25 +0000 (UTC) Received: from [89.204.138.206] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1TFVWx-0000xZ-OV for freebsd-usb@freebsd.org; Sat, 22 Sep 2012 21:38:24 +0200 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id q8MJcL18001471 for ; Sat, 22 Sep 2012 21:38:21 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id q8MJcKQM001470 for freebsd-usb@freebsd.org; Sat, 22 Sep 2012 21:38:20 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Sat, 22 Sep 2012 21:38:20 +0200 From: Matthias Apitz To: freebsd-usb@freebsd.org Message-ID: <20120922193819.GA1462@tiny.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.138.206 Subject: Sony Reader for PC software in wine && USB device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Sep 2012 19:38:26 -0000 Hi, Any comments about this threat concerning usage of USB devices in the emulator wine: http://www.winehq.org/pipermail/wine-users/2012-September/106983.html Thanks in advance matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards