1. 29 1月, 2008 13 次提交
  2. 28 1月, 2008 27 次提交
    • T
      HID: ADS/Tech Radio si470x needs blacklist entry · 3bce6f98
      Tobias Lorenz 提交于
      This patch adds blacklist entries in hid-quirks.c to let the usbhid driver
      ignore the si470x radio devices. They are now handled by the new radio-si470x
      driver.
      Signed-off-by: NTobias Lorenz <tobias.lorenz@gmx.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      3bce6f98
    • J
      HID: Logitech Extreme 3D needs NOGET quirk · 7cea465f
      Jiri Kosina 提交于
      Logitech Extreme 3D needs NOGET quirk, otherwise it times out at
      the time of connect.
      Reported-by: NMike Sharov <msharov@softhome.net>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      7cea465f
    • J
      HID: Refactor MS Presenter 8K key mapping · d7d32c81
      Jan Kiszka 提交于
      Following the suggestion of Jonas, this patch maps the special keys of
      the MS Presenter 8000 to targets that should allow for better re-mapping
      according to individual use cases (i.e. I avoided hard-wiring to
      standard keys). This time I also included the last missing key event
      (switching back from presentation mode).
      
      The optimal Xmodmap customization for using the Presenter with
      OpenOffice now looks like this for me:
      
      keycode 175 = Escape
      keycode 179 = F5
      keysym XF86Forward = Right
      keysym XF86Back = Left
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      d7d32c81
    • J
      HID: MS Presenter mapping for PID 0x0701 · 85c985f4
      Jiri Kosina 提交于
      0x045e/0x0701 also needs the hid-input mapping quirk established by
      quirk_microsoft_presenter_8k().
      Reported-by: NJonas Delrue <jonas_delrue@hotmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      85c985f4
    • R
      HID: Support Samsung IR remote · fe56caa9
      Robert Schedel 提交于
      Samsung USB remotes (0419:0001) are rejected by kernel 2.6.23, because the
      report descriptor from the remote contains a 48 bit HID report field. HID 1.11
      states: Fields may span at most 4 bytes.
      
      This patch, based on 2.6.23, fixes this by modifying the internal report
      descriptor in hid-quirks.c. Additional user space support (e.g. LIRC) is
      required to fetch the information from the hiddev interface.
      
      The burden to reconstruct the data is moved into userspace (lirc through hiddev).
      There is no need to set HID_QUIRK_HIDDEV quirk, as the device has also output
      applications, which trigger the creation of hiddev device automatically.
      Signed-off-by: NRobert Schedel <r.schedel@yahoo.de>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      fe56caa9
    • J
      HID: fix compilation of hidbp drivers without usbhid · b0e66824
      Jiri Kosina 提交于
      We can use the blacklist only if usbhid code is compiled.
      Reported-by: Njurriaan <thunder7@xs4all.nl>
      Cc: Pascal Terjan <pterjan@mandriva.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      b0e66824
    • N
      HID: Blacklist the Gretag-Macbeth Huey display colorimeter · 15b55fb8
      Nicolas Mailhot 提交于
      The Gretag-Macbeth Huey display colorimeter claims to be an HID device but
      isn't. As a result the linux HID device will claim it, preventing FLOSS
      software like Argyll CMS from talking to it.
      Tested-by: NFrederic Crozat <fcrozat@mandriva.com>
      Signed-off-by: NNicolas Mailhot <nicolas.mailhot@laposte.net>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      15b55fb8
    • F
      HID: the `bit' in hidinput_mapping_quirks() is an out parameter · 70d215c4
      Fengguang Wu 提交于
      Fix a panic, by changing
      	hidinput_mapping_quirks(,, unsigned long *bit,)
      to
      	hidinput_mapping_quirks(,, unsigned long **bit,)
      
      The `bit' in this function is an out parameter.
      Signed-off-by: NFengguang Wu <wfg@mail.ustc.edu.cn>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      70d215c4
    • J
      HID: remove redundant WARN_ON()s in order not to scare users · c4124c9b
      Jiri Kosina 提交于
      The WARN_ON() in implement() and extract() spit out stacktraces and
      a lot of other information that might make users think that there is
      something seriously wrong with the system. WARN_ON() should not be
      deliberately triggerable by userspace application, which these can be.
      Usually this WARN_ON() triggers when hid2hci utility is sending the
      data that don't correspond to the device's report descriptor.
      
      Convert these messages to more friendly printk().
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      c4124c9b
    • B
      HID: force hiddev creation for SONY PS3 controller · 0887b4cb
      Bastien Nocera 提交于
      The device is not discoverable, and needs to be poked to set its master, the
      Bluetooth device it will try to connect to when the "Home" button is pressed
      without a cable plugged in.
      
      Using libusb means disconnecting the device from its driver to get the report
      descriptor. Using hiddev, we can poke it without relinquishing control over it,
      so when you plug it in, it would still work as a pad.
      
      This could be then used by sixpair program, after it is rewritten to use
      hiddev instead of libusb.
      Signed-off-by: NBastien Nocera <hadess@hadess.net>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      0887b4cb
    • P
      HID: Use hid blacklist in usbmouse/usbkbd · 9f6b3727
      Pascal Terjan 提交于
      This fixes wacom tablets not working if usbmouse is loaded.
      Signed-off-by: NPascal Terjan <pterjan@mandriva.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      9f6b3727
    • J
      HID: proper handling of MS 4k and 6k devices · 628edcde
      Jiri Kosina 提交于
      This removes ugly macros IS_* to distinguish devices that
      need special handling in hid-input, and establish proper
      quirks for them.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      628edcde
    • J
      HID: remove unused variable in quirk event handler · 9a15c997
      Jiri Kosina 提交于
      Remove unused variable in quirk event handler.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      9a15c997
    • J
      HID: hid-input quirk for BTC 8193 · 36ccaad6
      Jiri Kosina 提交于
      BTC 8193 keyboard handles its scrollwheel in very non-standard way.
      It produces two non-standard usages for scrolling up and down, in
      both cases with postive value equaling to 1. We handle this by temporary
      mapping, which we then catch in quirk event handler, and remap to
      negative HWHEEL even in order to introduce correct behavior.
      
      Also the button requires special mapping, as it triggers standard-violating
      usage code.
      
      Reported in kernel.org bugzilla #9385
      Reported-by: NKir Kolyshkin <kir@sacred.ru>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      36ccaad6
    • J
      HID: separate hid-input event quirks from generic code · 87bc2aa9
      Jiri Kosina 提交于
      This patch separates also the hid-input quirks that have to be
      applied at the time the event occurs, so that the generic code
      handling HUT-compliant devices is not messed up by them too much.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      87bc2aa9
    • J
      HID: refactor mapping to input subsystem for quirky devices · 10bd065f
      Jiri Kosina 提交于
      Currently, the handling of mapping between hid and input for devices
      that don't conform to HUT 1.12 specification is very messy -- no per-device
      handling, no blacklists, conditions on idVendor and idProduct placed
      all over the code.
      
      This patch moves all the device-specific input mapping to a separate
      file, and introduces a blacklist-style handling for non-standard
      device-specific mappings.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      10bd065f
    • D
      HID: Microsoft Wireless Optical Desktop 3.0 quirk · 8dcd5afa
      Drew Fisher 提交于
      Make the Microsoft Wireless Optical Desktop 3.0 work as a mouse.
      
      Microsoft Wireless Optical Desktop 3.0 doesn't properly describe its interface
      class.  Specifically, since it doesn't mark the second interface as a mouse
      (bInterfaceSubclass = 0), it doesn't get HID_QUIRK_NOGET applied to the
      interface, and then acts broken when polled.
      Signed-off-by: NDrew Fisher <drew.m.fisher@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      8dcd5afa
    • C
      HID: Add support for Logitech Elite keyboards · bc370733
      Carlos Corbacho 提交于
      Reuse the quirks from the Cordless Desktop LX500 - stops some of the extra
      keys being reported as mouse buttons.
      Signed-off-by: NCarlos Corbacho <cathectic@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      bc370733
    • J
      HID: add full support for Genius KB-29E · af9e0eac
      Jiri Kosina 提交于
      Genius KB-29E has broken report descriptor, which causes some of the
      Consumer usages to appear incorrectly as Button usages. We fix it by
      fixing the report descriptor before it is being parsed.
      
      Also a few of the keys violate the HUT standard, so they need a special
      handling. They currently fall into "Reserved" range as per HUT 1.12.
      Reported-by: NSzekeres Istvan <szekeres@iii.hu>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      af9e0eac
    • L
      HID: fix a potential bug in pointer casting · 3ba5619f
      Li Zefan 提交于
      Don't directly cast list_head * to foo *, this works only when list
      is the first member of struct foo, and we should not make the assumption
      how members are ordered in the structure.
      
      i.e. struct *f = (struct *f)pos will work if:
      	struct foo {
      		struct list_head list;
      		int i;
      	};
      
      but will fail if:
      	struct foo {
      		int i;
      		struct list_head list;
      	}
      Signed-off-by: NLi Zefan <lizf@cn.fujitsu.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      3ba5619f
    • P
      HID: Implement horizontal wheel handling for A4 Tech X5-005D · c80e5ffa
      Pavel Troller 提交于
      This mouse distinguishes horizontal wheel from vertical by a special "pseudo
      event" GenericDesktop.00b8, with values of 0 for vertical and 8 for horizontal
      wheel. Because this event is supplied by the parser too late, we need to delay
      a wheel event, wait for this one and send either REL_WHEEL or REL_HWHEEL to
      input depending on the event value.
      Signed-off-by: NPavel Troller <patrol@sinus.cz>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      c80e5ffa
    • M
      HID: Add support for Apple aluminum USB keyboards. · a45d82d1
      Michel Daenzer 提交于
      Reuse the existing quirks for Apple laptop USB keyboards.
      Signed-off-by: NMichel Daenzer <michel@tungstengraphics.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      a45d82d1
    • M
      HID: Rename some code identifiers from PowerBook specific to Apple generic · 81e1a875
      Michel Daenzer 提交于
      Preserve identifiers exposed in build and run time configuration though in
      order not to break existing configurations.
      
      This is in preparation for adding support for Apple aluminum USB keyboards.
      Signed-off-by: NMichel Daenzer <michel@tungstengraphics.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      81e1a875
    • J
      HID: Map MS Presenter 8000 bottom-side buttons · 3c684c8c
      Jan Kiszka 提交于
      The MS Presenter 8000 bluetooth mouse is a "dual-use" device: If you
      press a button on the top, you can turn it around and find special keys
      on the other side, useful for presentations. This patch maps those three
      bottom-keys that are not already detected to the intended functions. The
      magic bottom on the top is mapped to F5 when we switch from mouse to
      presenter mode in order to activate the presentation mode in the related
      software (e.g. OpenOffice).
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      3c684c8c
    • R
      Merge branch 'pxa-plat' into devel · 0ff66f0c
      Russell King 提交于
      * pxa-plat: (53 commits)
        [ARM] 4762/1: Basic support for Toradex Colibri module
        [ARM] pxa: fix mci_init functions returning -1
        [ARM] 4737/1: Refactor corgi_lcd to improve readability + bugfix
        [ARM] 4747/1: pcm027: support for pcm990 baseboard for phyCORE-PXA270
        [ARM] 4746/1: pcm027: network support for phyCORE-PXA270
        [ARM] 4745/1: pcm027: default configuration
        [ARM] 4744/1: pcm027: add support for phyCORE-PXA270 CPU module
        [NET] smc91x: Make smc91x use IRQ resource trigger flags
        [ARM] pxa: add default config for littleton
        [ARM] pxa: add basic support for Littleton (PXA3xx Form Factor Platform)
        [ARM] 4664/1: Add basic support for HTC Magician PDA phones
        [ARM] 4649/1: Base support for pxa-based Toshiba e-series PDAs.
        [ARM] pxa: skip registers saving/restoring if entering standby mode
        [ARM] pxa: fix PXA27x resume
        [ARM] pxa: Avoid fiddling with CKEN register on suspend
        [ARM] pxa: Add PXA3 standby code hooked into the IRQ wake scheme
        [ARM] pxa: Add zylonite MFP wakeup configurations
        [ARM] pxa: program MFPs for low power mode when suspending
        [ARM] pxa: make MFP configuration processor independent
        [ARM] pxa: remove un-used pxa3xx_mfp_set_xxx() functions
        ...
      
      Conflicts:
      
      	arch/arm/mach-pxa/ssp.c
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      0ff66f0c
    • R
      Merge branch 'orion' into devel · c00d4ffd
      Russell King 提交于
      * orion: (26 commits)
        [ARM] Orion: implement power-off method for QNAP TS-109/209
        [ARM] Orion: add support for QNAP TS-109/TS-209
        [ARM] Orion: I2C support
        [I2C] i2c-mv64xxx: Don't set i2c_adapter.retries
        [I2C] Split mv643xx I2C platform support
        [ARM] Orion: enable CONFIG_RTC_DRV_M41T80 for D-Link DNS-323
        [ARM] Orion defconfig
        [ARM] Orion: add support for Orion/MV88F5181 based D-Link DNS-323
        [ARM] Orion: MV88F5181 support bits
        [ARM] Orion: Buffalo/Revogear Kurobox Pro support
        [ARM] OrionNAS RD board support
        [ARM] Orion: support for Marvell Orion-2 (88F5281) Development Board
        [ARM] Orion: common platform setup for Gigabit Ethernet port
        [ARM] Orion: platform device registration for UART, USB and NAND
        [ARM] Orion: system timer support
        [ARM] Orion edge GPIO IRQ support
        [ARM] Orion: IRQ support
        [ARM] Orion: provide GPIO method for enabling hardware assisted blinking
        [ARM] Orion: GPIO support
        [ARM] Orion: programable address map support
        ...
      
      Conflicts:
      
      	arch/arm/Kconfig
      	arch/arm/Makefile
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      c00d4ffd
    • R
      Merge branches 'at91', 'ep93xx', 'iop', 'kprobes', 'ks8695', 'misc', 'msm',... · d0d42df2
      Russell King 提交于
      Merge branches 'at91', 'ep93xx', 'iop', 'kprobes', 'ks8695', 'misc', 'msm', 's3c2410', 'sa1100' and 'vfp' into devel
      
      * at91: (24 commits)
        [ARM] 4615/4: sam926[13]ek buttons updated
        [ARM] 4765/1: [AT91] AT91CAP9A-DK board support
        [ARM] 4764/1: [AT91] AT91CAP9 core support
        [ARM] 4738/1: at91sam9261: Remove udc pullup enabling in board initialisation
        [ARM] 4761/1: [AT91] Board-support for NEW_LEDs
        [ARM] 4760/1: [AT91] SPI CS0 errata on AT91RM9200
        [ARM] 4759/1: [AT91] Buttons on CSB300
        [ARM] 4758/1: [AT91] LEDs
        [ARM] 4757/1: [AT91] UART initialization
        [ARM] 4756/1: [AT91] Makefile cleanup
        [ARM] 4755/1: [AT91] NAND update
        [ARM] 4754/1: [AT91] SSC library support
        [ARM] 4753/1: [AT91] Use DMA_BIT_MASK
        [ARM] 4752/1: [AT91] RTT, RTC and WDT peripherals on SAM9
        [ARM] 4751/1: [AT91] ISI peripheral on SAM9263
        [ARM] 4750/1: [AT91] STN LCD displays on SAM9261
        [ARM] 4734/1: at91sam9263ek: include IRQ for Ethernet PHY
        [ARM] 4646/1: AT91: configurable HZ, default to 128
        [ARM] 4688/1: at91: speed-up irq processing
        [ARM] 4657/1: AT91: Header definition update
        ...
      
      * ep93xx:
        [ARM] 4671/1: ep93xx: remove obsolete gpio_line_* operations
        [ARM] 4670/1: ep93xx: implement IRQT_BOTHEDGE gpio irq sense type
        [ARM] 4669/1: ep93xx: simplify GPIO code and cleanups
        [ARM] 4668/1: ep93xx: implement new GPIO API
      
      * iop:
        [ARM] 4770/1: GLAN Tank: correct physmap_flash_data width field
        [ARM] 4732/1: GLAN Tank: register rtc-rs5c372 i2c device
        [ARM] 4708/1: iop: update defconfigs for 2.6.24
      
      * kprobes:
        ARM kprobes: let's enable it
        ARM kprobes: special hook for the kprobes breakpoint handler
        ARM kprobes: prevent some functions involved with kprobes from being probed
        ARM kprobes: don't let a single-stepped stmdb corrupt the exception stack
        ARM kprobes: add the kprobes hook to the page fault handler
        ARM kprobes: core code
        ARM kprobes: instruction single-stepping support
      
      * ks8695:
        [ARM] 4603/1: KS8695: debugfs interface to view pin state
        [ARM] 4601/1: KS8695: PCI support
      
      * misc:
        [ARM] remove duplicate includes
        [ARM] CONFIG_DEBUG_STACK_USAGE
        [ARM] 4689/1: small comment wrap fix
        [ARM] 4687/1: Trivial arch/arm/kernel/entry-common.S comment fix
        [ARM] 4666/1: ixp4xx: fix sparse warnings in include/asm-arm/arch-ixp4xx/io.h
        [ARM] remove reference to non-existent MTD_OBSOLETE_CHIPS
        [SERIAL] 21285: Report baud rate back via termios
        [ARM] Remove pointless casts from void pointers,
        [ARM] Misc minor interrupt handler cleanups
        [ARM] Remove at91_lcdc.h
        [ARM] ARRAY_SIZE() cleanup
        [ARM] Update mach-types
      
      * msm:
        [ARM] msm: dma support for MSM7X00A
        [ARM] msm: board file for MACH_HALIBUT (QCT MSM7200A)
        [ARM] msm: irq and timer support for ARCH_MSM7X00A
        [ARM] msm: core platform support for ARCH_MSM7X00A
      
      * s3c2410: (33 commits)
        [ARM] 4795/1: S3C244X: Add armclk and setparent call
        [ARM] 4794/1: S3C24XX: Comonise S3C2440 and S3C2442 clock code
        [ARM] 4793/1: S3C24XX: Add IRQ->GPIO pin mapping function
        [ARM] 4792/1: S3C24XX: Remove warnings from debug-macro.S
        [ARM] 4791/1: S3C2412: Make fclk a parent of msysclk
        [ARM] 4790/1: S3C2412: Fix parent selection for msysclk.
        [ARM] 4789/1: S3C2412: Add missing CLKDIVN register values
        [ARM] 4788/1: S3C24XX: Fix paramet to s3c2410_dma_ctrl if S3C2410_DMAF_AUTOSTART used.
        [ARM] 4787/1: S3C24XX: s3c2410_dma_request() should return the allocated channel number
        [ARM] 4786/1: S3C2412: Add SPI FIFO controll constants
        [ARM] 4785/1: S3C24XX: Add _SHIFT definitions for S3C2410_BANKCON registers
        [ARM] 4784/1: S3C24XX: Fix GPIO restore glitches
        [ARM] 4783/1: S3C24XX: Add s3c2410_gpio_getpull()
        [ARM] 4782/1: S3C24XX: Define FIQ_START for any FIQ users
        [ARM] 4781/1: S3C24XX: DMA suspend and resume support
        [ARM] 4780/1: S3C2412: Allow for seperate DMA channels for TX and RX
        [ARM] 4779/1: S3C2412: Add s3c2412_gpio_set_sleepcfg() call
        [ARM] 4778/1: S3C2412: Add armclk and init from DVS state
        [ARM] 4777/1: S3C24XX: Ensure clk_set_rate() checks the set_rate method for the clk
        [ARM] 4775/1: s3c2410: fix compilation error if only s3c2442 cpu is selected
        ...
      
      * sa1100:
        [ARM] sa1100: add clock source support
      
      * vfp:
        [ARM] 4584/2: ARMv7: Add Advanced SIMD (NEON) extension support
        [ARM] 4583/1: ARMv7: Add VFPv3 support
        [ARM] 4582/2: Add support for the common VFP subarchitecture
      d0d42df2