[feature request] OMRON BX35F UPS not recognized as ugen

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[feature request] OMRON BX35F UPS not recognized as ugen

Vladas Urbonas
>Category:       system
>Synopsis:       OMRON BX35F UPS is recognized as uhidev, not ugen
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:
>Closed-Date:
>Last-Modified:
>Originator:     [hidden email]
>Release:        -current
>Organization:
       net
>Environment:
       System      : OpenBSD -current
       Architecture: OpenBSD.i386
       Machine     : i386
>Description:
       OMRON BX35F UPS is recognized as uhidev, not ugen
>How-To-Repeat:
>Fix:

Index: usb_quirks.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/usb_quirks.c,v
retrieving revision 1.29
diff -u -r1.29 usb_quirks.c
--- usb_quirks.c 5 Jun 2007 08:43:56 -0000 1.29
+++ usb_quirks.c 28 Aug 2007 01:03:09 -0000
@@ -130,6 +130,7 @@
  { USB_VENDOR_NEC, USB_PRODUCT_NEC_PICTY920,    ANY,   { UQ_BROKEN_BIDIR }},
  { USB_VENDOR_NEC, USB_PRODUCT_NEC_PICTY800,    ANY,   { UQ_BROKEN_BIDIR }},
  { USB_VENDOR_METAGEEK, USB_PRODUCT_METAGEEK_WISPY, ANY,   { UQ_BAD_HID }},
+ { USB_VENDOR_OMRON, USB_PRODUCT_OMRON_BX35F,       ANY,   { UQ_BAD_HID }},
  { USB_VENDOR_TENX, USB_PRODUCT_TENX_MISSILE,    ANY,   { UQ_BAD_HID }},
  { USB_VENDOR_APC, USB_PRODUCT_APC_UPSPRO500,    ANY,   { UQ_BAD_HID }},
  { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F6C550AVR, ANY,   { UQ_BAD_HID }},
Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.287
diff -u -r1.287 usbdevs
--- usbdevs 23 Aug 2007 01:30:52 -0000 1.287
+++ usbdevs 28 Aug 2007 01:03:09 -0000
@@ -187,6 +187,7 @@
 vendor RATOC 0x0584 RATOC Systems
 vendor ZYXEL 0x0586 ZyXEL Communication
 vendor ALCOR 0x058f Alcor Micro
+vendor OMRON 0x0590 OMRON Corporation
 vendor IOMEGA 0x059b Iomega
 vendor ATREND 0x059c A-Trend Technology
 vendor AID 0x059d Advanced Input Devices
@@ -1755,6 +1756,9 @@
 /* OmniVision Technologies, Inc. products */
 product OMNIVISION OV511 0x0511 OV511
 product OMNIVISION OV511PLUS 0xa511 OV511+
+
+/* OMRON products */
+product OMRON BX35F 0x0058 OMRON BX35F

 /* OnSpec Electronic, Inc. */
 product ONSPEC MD2 0x0103 disk
Index: usbdevs.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.295
diff -u -r1.295 usbdevs.h
--- usbdevs.h 23 Aug 2007 01:31:05 -0000 1.295
+++ usbdevs.h 28 Aug 2007 01:03:10 -0000
@@ -194,6 +194,7 @@
 #define USB_VENDOR_RATOC 0x0584 /* RATOC Systems */
 #define USB_VENDOR_ZYXEL 0x0586 /* ZyXEL Communication */
 #define USB_VENDOR_ALCOR 0x058f /* Alcor Micro */
+#define USB_VENDOR_OMRON 0x0590 /* OMRON Corporation */
 #define USB_VENDOR_IOMEGA 0x059b /* Iomega */
 #define USB_VENDOR_ATREND 0x059c /* A-Trend Technology */
 #define USB_VENDOR_AID 0x059d /* Advanced Input Devices */
@@ -1762,6 +1763,9 @@
 /* OmniVision Technologies, Inc. products */
 #define USB_PRODUCT_OMNIVISION_OV511 0x0511 /* OV511 */
 #define USB_PRODUCT_OMNIVISION_OV511PLUS 0xa511 /* OV511+ */
+
+/* OMRON Corporation products */
+#define USB_PRODUCT_OMRON_BX35F 0x0058 /* BX35F */

 /* OnSpec Electronic, Inc. */
 #define USB_PRODUCT_ONSPEC_MD2 0x0103 /* disk */
Index: usbdevs_data.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.292
diff -u -r1.292 usbdevs_data.h
--- usbdevs_data.h 23 Aug 2007 01:31:05 -0000 1.292
+++ usbdevs_data.h 28 Aug 2007 01:03:11 -0000
@@ -5477,6 +5477,10 @@
     "Alcor Micro",
  },
  {
+    USB_VENDOR_OMRON,
+    "OMRON Corporation",
+ },
+ {
     USB_VENDOR_IOMEGA,
     "Iomega",
  },

result:

< OpenBSD 4.2-current (GENERIC_WITH_BX35F) #0: Tue Aug 28 09:45:19 JST 2007
<     [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC_WITH_BX35F
---
> OpenBSD 4.2 (GENERIC) #374: Thu Aug 23 10:41:10 MDT 2007
>     [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC
6c6
< avail mem = 1020620800 (973MB)
---
> avail mem = 1020624896 (973MB)
97,98c97,99
< ugen0 at uhub4 port 2
< ugen0: OMRON BX35F, rev 1.10/0.07, addr 3
---
> uhidev1 at uhub4 port 2 configuration 1 interface 0
> uhidev1: OMRON BX35F, rev 1.10/0.07, addr 3, iclass 3/0
> uhid0 at uhidev1: input=64, output=16, feature=0


OpenBSD 4.2-current (GENERIC_WITH_BX35F) #0: Tue Aug 28 09:45:19 JST 2007
    [hidden email]:/usr/src/sys/arch/i386/compile/GENERIC_WITH_BX35F
cpu0: Intel(R) Core(TM) Duo CPU T2300 @ 1.66GHz ("GenuineIntel"
686-class) 1.67 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,EST,TM2,xTPR
real mem  = 1063428096 (1014MB)
avail mem = 1020620800 (973MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/02/07, BIOS32 rev. 0 @
0xffa10, SMBIOS rev. 2.4 @ 0xf7900 (45 entries)
bios0: vendor Dell Inc. version "A07" date 04/02/2007
bios0: Dell Inc. MXC062
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfb000/224 (12 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371 ISA and IDE" rev 0x00)
pcibios0: PCI bus #13 is the last bus
bios0: ROM list: 0xc0000/0xf000! 0xcf000/0x1000
acpi at mainbus0 not configured
cpu0 at mainbus0
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130a2c06000a2c
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1667 MHz (1404 mV): speeds: 1667, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM MCH" rev 0x03
vga1 at pci0 dev 2 function 0 "Intel 82945GM Video" rev 0x03: aperture
at 0xd0000000, size 0x10000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: irq 10
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: Sigmatel STAC9221 (rev. 54.1), HDA version 1.0
azalia0: codec: Conexant/0x2bfa (rev. 0.0), HDA version 0.9
azalia0: codec[1]: No support for modem function groups
azalia0: codec[1]: No audio function groups
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01
pci1 at ppb0 bus 11
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x01
pci2 at ppb1 bus 12
"Broadcom BCM4311" rev 0x01 at pci2 dev 0 function 0 not configured
ppb2 at pci0 dev 28 function 3 "Intel 82801GB PCIE" rev 0x01
pci3 at ppb2 bus 13
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: irq 9
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: irq 10
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: irq 7
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: irq 5
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: irq 9
usb0 at ehci0: USB revision 2.0
uhub0 at usb0: Intel EHCI root hub, rev 2.00/1.00, addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe1
pci4 at ppb3 bus 3
bce0 at pci4 dev 0 function 0 "Broadcom BCM4401B1" rev 0x02: irq 4,
address [snip]
bmtphy0 at bce0 phy 1: BCM4401 10/100baseTX PHY, rev. 0
"Ricoh 5C832 Firewire" rev 0x00 at pci4 dev 1 function 0 not configured
sdhc0 at pci4 dev 1 function 1 "Ricoh 5C822 SD/MMC" rev 0x19: irq 11
sdmmc0 at sdhc0
"Ricoh 5C843" rev 0x01 at pci4 dev 1 function 2 not configured
"Ricoh 5C592 Memory Stick" rev 0x0a at pci4 dev 1 function 3 not configured
"Ricoh 5C852 xD" rev 0x05 at pci4 dev 1 function 4 not configured
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <Hitachi HTS541660J9SA00>
wd0: 16-sector PIO, LBA48, 57231MB, 117210240 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, CDRW/DVD GCC4244, B103> SCSI0
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: irq 4
iic0 at ichiic0
usb1 at uhci0: USB revision 1.0
uhub1 at usb1: Intel UHCI root hub, rev 1.00/1.00, addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2: Intel UHCI root hub, rev 1.00/1.00, addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3: Intel UHCI root hub, rev 1.00/1.00, addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4: Intel UHCI root hub, rev 1.00/1.00, addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
biomask effd netmask effd ttymask ffff
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
uhidev0 at uhub4 port 1 configuration 1 interface 0
uhidev0: ELECOM ELECOM USB Mouse with Wheel, rev 1.00/4.41, addr 2, iclass 3/1
ums0 at uhidev0: 7 buttons and Z dir.
wsmouse1 at ums0 mux 0
ugen0 at uhub4 port 2
ugen0: OMRON BX35F, rev 1.10/0.07, addr 3
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a swap on wd0b dump on wd0b

usbdevs -v

Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 powered
 port 7 powered
 port 8 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
 port 1 powered
 port 2 powered
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
 port 1 addr 2: low speed, power 100 mA, config 1, ELECOM USB Mouse
with Wheel(0x000f), ELECOM(0x056e), rev 4.41
 port 2 addr 3: low speed, power 100 mA, config 1, BX35F(0x0058),
OMRON(0x0590), rev 0.07

>Release-Note:

Help credit goes to Stuart Henderson. Thank you.

>Audit-Trail:
>Unformatted: