06 Nov, 2009

1 commit


03 Nov, 2009

17 commits

  • * 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6:
    PM: Remove some debug messages producing too much noise
    PM: Fix warning on suspend errors
    PM / Hibernate: Add newline to load_image() fail path
    PM / Hibernate: Fix error handling in save_image()
    PM / Hibernate: Fix blkdev refleaks
    PM / yenta: Split resume into early and late parts (rev. 4)

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: gpio-keys - use IRQF_SHARED
    Input: winbond-cir - select LEDS_TRIGGERS
    Input: i8042 - try to get stable CTR value when initializing
    Input: atkbd - add a quirk for OQO 01+ multimedia keys

    Linus Torvalds
     
  • * 'i2c-fixes' of git://git.fluff.org/bjdooks/linux:
    i2c-mpc: Do not generate STOP after read.
    i2c: imx: disable clock when it's possible to save power.
    i2c: imx: only imx1 needs disable delay
    i2c: imx: check busy bit when START/STOP

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (21 commits)
    mac80211: check interface is down before type change
    cfg80211: fix NULL ptr deref
    libertas if_usb: Fix crash on 64-bit machines
    mac80211: fix reason code output endianness
    mac80211: fix addba timer
    ath9k: fix misplaced semicolon on rate control
    b43: Fix DMA TX bounce buffer copying
    mac80211: fix BSS leak
    rt73usb.c : more ids
    ipw2200: fix oops on missing firmware
    gre: Fix dev_addr clobbering for gretap
    sky2: set carrier off in probe
    net: fix sk_forward_alloc corruption
    pcnet_cs: add cis of PreMax PE-200 ethernet pcmcia card
    r8169: Fix card drop incoming VLAN tagged MTU byte large jumbo frames
    ibmtr: possible Read buffer overflow?
    net: Fix RPF to work with policy routing
    net: fix kmemcheck annotations
    e1000e: rework disable K1 at 1000Mbps for 82577/82578
    e1000e: config PHY via software after resets
    ...

    Linus Torvalds
     
  • pm_runtime_idle() is somewhat noisy. Remove debug prints.

    Signed-off-by: Pavel Machek
    Signed-off-by: Rafael J. Wysocki

    Pavel Machek
     
  • Fixes the point where we need to complete the power transition when
    device suspend fails, so that we don't print warnings about devices
    added to the device hierarchy after a failing suspend.

    [rjw: Modified changelog.]

    Signed-off-by: Romit Dasgupta
    Signed-off-by: Rafael J. Wysocki

    Romit Dasgupta
     
  • Commit 0c570cdeb8fdfcb354a3e9cd81bfc6a09c19de0c
    (PM / yenta: Fix cardbus suspend/resume regression) caused resume to
    fail on systems with two CardBus bridges. While the exact nature
    of the failure is not known at the moment, it can be worked around by
    splitting the yenta resume into an early part, executed during the
    early phase of resume, that will only resume the socket and power it
    up if there was a card in it during suspend, and a late part,
    executed during "regular" resume, that will carry out all of the
    remaining yenta resume operations.

    Fixes http://bugzilla.kernel.org/show_bug.cgi?id=14334, which is a
    listed regression from 2.6.31.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Dominik Brodowski
    Reported-by: Stephen J. Gowdy
    Tested-by: Jose Marino

    Rafael J. Wysocki
     
  • There is nothing that disallows gpio-keys to share it's IRQ line
    w/ other drivers. Make it use IRQF_SHARED in request_irq().

    An example of other driver with which I'd like to share IRQ line
    for GPIO buttons is ledtrig-gpio.

    Signed-off-by: Dmitry Eremin-Solenikov
    Signed-off-by: Dmitry Torokhov

    Dmitry Eremin-Solenikov
     
  • drivers/input/misc/winbond-cir.c depends on LEDS_TRIGGERS so
    add an appropriate select to drivers/input/misc/Kconfig

    Signed-off-by: David Härdeman
    Signed-off-by: Andrew Morton
    Signed-off-by: Dmitry Torokhov

    David Härdeman
     
  • If user presses keys while i8042 is being initialized there is a chance
    that keyboard data will be mistaken for results of Read Control Register
    command causing futher troubles. Work around this issue by reading CTR
    several times and stop when we get matching results.

    Reported-and-tested-by: Dave Young
    Signed-off-by: Dmitry Torokhov

    Dmitry Torokhov
     
  • Dmitry Torokhov
     
  • David S. Miller
     
  • The driver always ends a read with a STOP condition which
    breaks subsequent I2C reads/writes in the same transaction as
    these expect to do a repeated START(ReSTART).

    This will also help I2C multimaster as the bus will not be released
    after the first read, but when the whole transaction ends.

    Signed-off-by: Joakim Tjernlund
    Signed-off-by: Ben Dooks

    Joakim Tjernlund
     
  • Enable clock before START, disable it after STOP.

    Signed-off-by: Richard Zhao
    Signed-off-by: Ben Dooks

    Richard Zhao
     
  • check cpu_is_mx1() when disable delay.

    Signed-off-by: Richard Zhao
    Signed-off-by: Ben Dooks

    Richard Zhao
     
  • The controller can't do anything else before it actually generates START/STOP.
    So we check busy bit to make sure START/STOP is successfully finished.

    If we don't check busy bit, START/STOP may fail on some fast CPUs.

    Signed-off-by: Richard Zhao
    Signed-off-by: Ben Dooks

    Richard Zhao
     
  • In commit c1c7af60892070e4b82ad63bbfb95ae745056de0 ("drm/i915: force
    mode set at lid open time") the intel graphics driver was taught to
    restore the LVDS mode on lid open.

    That caused problems with interaction with the suspend/resume code,
    which commonly runs at the same time (suspend is often caused by the lid
    close event, while lid open is commonly a resume event), which was
    worked around with in commit 06891e27a9b5dba5268bb80e41a283f51335afe7
    ("drm/i915: fix suspend/resume breakage in lid notifier").

    However, in the meantime the lid event code had also grown a user event
    notifier (commit 06324194eee97a51b5f172270df49ec39192d6cc: "drm/i915:
    generate a KMS uevent at lid open/close time"), and now _that_ causes
    problems with suspend/resume and some versions of Xorg reacting to those
    uevents by setting the mode.

    So this effectively reverts that commit 06324194ee, and makes the lid
    open protection logic against suspend/resume more explicit. This fixes
    at least one laptop. See

    http://bugzilla.kernel.org/show_bug.cgi?id=14484

    for more details.

    Acked-by: Jesse Barnes
    Cc: Riccardo Magliocchetti
    Cc: Eric Anholt
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

01 Nov, 2009

7 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6:
    Staging: fix wireless drivers depends
    Staging: wireless drivers Kconfig change
    Staging: android: mark subsystem as broken
    Staging: remove stlc45xx driver
    Staging: rtl8187se/rtl8192e/rtl8192su: allow module unload
    Staging: vt6656: fix the memory free bug in vntwusb_disconnect()
    Staging: Panel: prevent driver from calling misc_deregister twice on same ressource
    Staging: hv: fix oops in vmbus - missing #include
    Staging: hv: fix oops in vmbus - netvsc list_head
    Staging: hv: fix oops in vmbus - udev events
    Staging: hv: Fix vmbus load hang caused by faulty data packing
    Staging: hv: Fix null pointer error after vmbus loading
    Staging: hv TODO patches

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6:
    USB: fsl_udc_core: Fix kernel oops on module removal
    USB: option: TLAYTECH TUE800 support
    USB: r8a66597-hcd: fix cannot detect a device when uses_new_polling is set
    USB: serial: sierra driver autopm fixes
    USB: serial: sierra driver send_setup() autopm fix
    USB: rndis_host: debug info clobbered before it is logged

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6:
    tty: Mark generic_serial users as BROKEN

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
    Documentation: ABI: /sys/devices/system/cpu/cpu#/node
    Documentation: ABI: /sys/devices/system/cpu/cpuidle/
    Documentation: ABI: /sys/devices/system/cpu/sched_[mc|smt]_power_savings
    Documentation: ABI: /sys/devices/system/cpu/cpu#/ topology files
    Documentation: ABI: /sys/devices/system/cpu/ topology files
    Documentation: ABI: document /sys/devices/system/cpu/
    Documentation: ABI: rename sysfs-devices-cache_disable properly
    Driver core: allow certain drivers prohibit bind/unbind via sysfs
    Driver core: fix driver_register() return value

    Linus Torvalds
     
  • * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6:
    [S390] smp: fix sigp sense handling
    [S390] smp: fix sigp stop handling
    [S390] cputime: fix overflow on 31 bit systems
    [S390] call home: fix string length handling
    [S390] call home: fix error handling in init function
    [S390] smp: fix prefix handling of offlined cpus
    [S390] s/r: cmm resume fix
    [S390] call home: fix local buffer usage in proc handler

    Linus Torvalds
     
  • * 'for-linus' of git://neil.brown.name/md:
    async_tx: fix asynchronous raid6 recovery for ddf layouts
    async_pq: rename scribble page
    async_pq: kill a stray dma_map() call and other cleanups
    md/raid6: kill a gcc-4.0.1 'uninitialized variable' warning
    raid6/async_tx: handle holes in block list in async_syndrome_val
    md/async: don't pass a memory pointer as a page pointer.
    md: Fix handling of raid5 array which is being reshaped to fewer devices.
    md: fix problems with RAID6 calculations for DDF.
    md/raid456: downlevel multicore operations to raid_run_ops
    md: drivers/md/unroll.pl replaced with awk analog
    md: remove clumsy usage of do_sync_mapping_range from bitmap code
    md: raid1/raid10: handle allocation errors during array setup.
    md/raid5: initialize conf->device_lock earlier
    md/raid1/raid10: add a cond_resched
    Revert "md: do not progress the resync process if the stripe was blocked"

    Linus Torvalds
     
  • Commit ef7562b7f28319e6dd1f85dc1af87df2a7a84832 ("dpt_i2o: Fix up
    copy*user") had a silly typo: EINVAL should be -EINVAL.

    Signed-off-by: OGAWA Hirofumi
    Cc: stable@kernel.org
    Cc: Alan Cox
    Signed-off-by: Linus Torvalds

    OGAWA Hirofumi
     

31 Oct, 2009

15 commits

  • Platform drivers registered via platform_driver_probe() can be bound
    to devices only once, upon registration, because discard their probe()
    routines to save memory. Unbinding the driver through sysfs 'unbind'
    leaves the device stranded and confuses users so let's not create
    bind and unbind attributes for such drivers.

    Signed-off-by: Dmitry Torokhov
    Cc: Éric Piel
    Signed-off-by: Greg Kroah-Hartman

    Dmitry Torokhov
     
  • In this patch:
    http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=16dc42e018c2868211b4928f20a957c0c216126c
    the check was added for another driver to already claim the same device
    on the same bus. But the returned error code was wrong: to modprobe, the
    -EEXIST means that _this_ driver is already installed. It therefore
    doesn't produce the needed error message when _another_ driver is trying
    to register for the same device. Returning -EBUSY fixes the problem.

    Signed-off-by: Stas Sergeev
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Stas Sergeev
     
  • fsl_udc_release() calls dma_free_coherent() with an inappropriate
    device passed to it, and since the device has no dma_ops, the following
    oops pops up:

    Kernel BUG at d103ce9c [verbose debug info unavailable]
    Oops: Exception in kernel mode, sig: 5 [#1]
    ...
    NIP [d103ce9c] fsl_udc_release+0x50/0x80 [fsl_usb2_udc]
    LR [d103ce74] fsl_udc_release+0x28/0x80 [fsl_usb2_udc]
    Call Trace:
    [cfbc7dc0] [d103ce74] fsl_udc_release+0x28/0x80 [fsl_usb2_udc]
    [cfbc7dd0] [c01a35c4] device_release+0x2c/0x90
    [cfbc7de0] [c016b480] kobject_cleanup+0x58/0x98
    [cfbc7e00] [c016c52c] kref_put+0x54/0x6c
    [cfbc7e10] [c016b360] kobject_put+0x34/0x64
    [cfbc7e20] [c01a1d0c] put_device+0x1c/0x2c
    [cfbc7e30] [d103dbfc] fsl_udc_remove+0xc0/0x1e4 [fsl_usb2_udc]
    ...

    This patch fixes the issue by passing dev->parent, which points to
    a correct device.

    Signed-off-by: Anton Vorontsov
    Cc: Li Yang
    Cc: David Brownell
    Cc: Guennadi Liakhovetski
    Signed-off-by: Greg Kroah-Hartman

    Anton Vorontsov
     
  • Add ID for Tlaytech TUE800 CDMA modem to the option driver.

    Signed-off-by: Bryan Wu
    Acked-By: Matthias Urlichs
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Bryan Wu
     
  • Signed-off-by: Yoshihiro Shimoda
    Signed-off-by: Greg Kroah-Hartman

    Yoshihiro Shimoda
     
  • This patch presents fixes for the autosuspend feature implementation in
    sierra usb serial driver in functions sierra_open(), sierra_close() and
    stop_read_write_urbs().

    The patch "sierra_close() must resume the device before it notifies it
    of a closure" submitted by Oliver Neukum on Wed, October 14 has been
    merged as fix in sierra_close() function.

    The bug fix in sierra_open() function restores the autopm interface
    state on error condition.

    The bug fix in in stop_read_write_urbs() function assures that both
    receive and interrupt urbs are recycled.

    Signed-off-by: Elina Pasheva
    Signed-off-by: Greg Kroah-Hartman

    Elina Pasheva
     
  • This patch presents a fix for the autosuspend feature implementation in
    sierra usb serial driver for function sierra_send_setup(). Because it
    is possible to call sierra_send_setup() before sierra_open() or after
    sierra_close() we added a get/put interface activity to assure that the
    usb control can happen even when the device is autosuspended.

    Signed-off-by: Elina Pasheva
    Tested-by: Matthew Safar
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Elina Pasheva
     
  • The MTU throttle-down if a RNDIS device doesn't support a particular
    packet size is being incorrectly logged. The attempted packet size is
    being clobbered before it gets logged.

    First patch; please inform if I'm doing this incorrectly. Diff'd
    against latest official source as per the FAQ; forward port to current
    git version is straightforward.

    Signed-off-by: George Nassar
    Signed-off-by: Greg Kroah-Hartman

    George Nassar
     
  • These drivers can (erroneously) be enabled even when
    CONFIG_NET=n, CONFIG_NETDEVICES=n, CONFIG_WLAN=n, etc.
    Stop this.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Greg Kroah-Hartman

    Randy Dunlap
     
  • Change the wireless drivers to depend on CONFIG_WLAN instead of
    CONFIG_WLAN_80211 which is going away soon.

    Cc: John W. Linville
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • It's causing lots of build errors, so just mark it as broken. It is
    scheduled to be removed in 2.6.33 anyway.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • It's no longer needed as the p54spi driver is the same thing,
    under a different name and in the correct portion of the kernel tree.

    Cc: Javier Martinez Canillas
    Cc: Christian Lamparter
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • On rtl81* additions, they had its wireless stack made builtin instead of
    separated modules. But try_module_get/module_put in stack were kept,
    they are uneeded with the stack builtin and makes rtl81* modules
    impossible to remove on a system with an rtl81* card. request_module
    calls are also uneeded with stack builtin, so remove them too.

    Signed-off-by: Herton Ronaldo Krzesinski
    Cc: Bartlomiej Zolnierkiewicz
    Signed-off-by: Greg Kroah-Hartman

    Herton Ronaldo Krzesinski
     
  • This patch is used to solve the memory bug when people plug out the wusb card then plug in.
    Error logs are following:

    root@smdk2440:~# ifdown eth1
    AP deauthed me, reason=2.
    Config_FileOperation file Not exist
    Zone=[1][J][P]!!
    WPA: Terminating
    root@smdk2440:~# ----> !!!!!!!!!!!!!!here plug out the wusbcard
    usb 1-1: USB disconnect, address 4
    ----> !!!!!!!!!!!!!!!!!!!here plug in the wusb card
    usb 1-1: new full speed USB device using s3c2410-ohci and address 5
    usb 1-1: New USB device found, idVendor=160a, idProduct=3184
    usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    usb 1-1: Product: VNT USB-802.11 Wireless LAN Adapter
    usb 1-1: Manufacturer: VIA Networking Technologies, Inc.
    usb 1-1: configuration #1 chosen from 1 choice
    VIA Networking Wireless LAN USB Driver Ver. 1.19_12
    Copyright (c) 2004 VIA Networking Technologies, Inc.
    kernel BUG at mm/slab.c:2974!
    Unable to handle kernel NULL pointer dereference at virtual address 00000000
    pgd = c0004000
    [00000000] *pgd=00000000
    Internal error: Oops: 817 [#1] PREEMPT
    Modules linked in: vt6656_stage
    CPU: 0 Not tainted (2.6.32-rc2 #14)
    PC is at __bug+0x1c/0x28
    LR is at __bug+0x18/0x28
    pc : [] lr : [] psr: 40000093
    sp : c3867c68 ip : c3867bd0 fp : c3866000
    r10: c3800600 r9 : c3802430 r8 : 00000004
    r7 : c3802428 r6 : c3802660 r5 : c3802420 r4 : a0000013
    r3 : 00000000 r2 : c3866000 r1 : 00000003 r0 : 00000024
    Flags: nZcv IRQs off FIQs on Mode SVC_32 ISA ARM Segment kernel
    Control: 0000717f Table: 330a8000 DAC: 00000017
    Process khubd (pid: 152, stack limit = 0xc3866270)
    Stack: (0xc3867c68 to 0xc3868000)
    7c60: c0093fdc c0094088 000000d0 000000d0 00000000 000080d0
    7c80: 00000000 a0000013 c39ebec0 c3800600 000080d0 00000001 c03f13cc 00000006
    7ca0: c02b36f0 c0094574 c0043428 0001c9de c39ebec0 c39ebea0 c3000c00 c02a6a84
    7cc0: 89705f41 c3000c00 c39ebec0 c39ebea0 c3000c00 bf036f24 c39ebec8 00000006
    7ce0: 00000000 c3000c00 c39ebec0 c39ebea0 c3000c00 bf036f24 c39ebec8 00000006
    7d00: 00000000 bf003398 c00aa514 c3867d20 0000a1ff c00e1448 c39d9f84 c39aabe8
    7d20: c3867d50 c00e1888 c39aabe8 c39ebea0 c39ebec0 bf036ebc c3000c00 bf036f24
    7d40: 0000bec8 01000000 00000000 c39ebea0 c39ebec0 bf036ebc c3000c00 bf036f24
    7d60: c39ebec8 00000000 00000000 c0223798 c39ebec0 c01daa14 bf036eec c3867da0
    7d80: c045a4f8 c01da6e4 c39ebec0 00000000 c01daa14 c39ebec0 c3867da0 c01d9870
    7da0: c38331a8 c39fcb94 c005b3b4 c39ebec0 c39ebec0 c39ebef4 00000000 c01da890
    7dc0: c39ebec0 c39ebec0 c3000c00 c01d97f4 00000000 c01d8470 c39ebea0 c3000c68
    7de0: 00000000 c3000c68 c3218a00 c3abcd20 00000001 c39ebec0 c39ebea0 c3000c00
    7e00: 00000000 c3000c68 c3218a00 c3abcd20 00000001 c0221ee8 00000001 00000000
    7e20: 00000000 00000000 00001388 00000000 c3000c04 c3000c68 c3bc29c0 00000001
    7e40: c3bc29c4 00000001 c03f4af8 00000000 c39fe780 c3000c00 00000001 c045ab04
    7e60: c3867eb8 c045a3bc c3000c70 00000000 00000000 c0229238 c3000c68 c0223210
    7e80: c3000c00 c045aaf0 c045ab04 c0223230 c3000c68 c01daa14 c045ab04 c01da6e4
    7ea0: c3000c68 00000000 c01daa14 c3000c68 c3867eb8 c01d9870 c38331a8 c3862f54
    7ec0: c005b3b4 c3000c68 c3000c68 c3000c9c 00000002 c01da890 c3867ef9 c3000c68
    7ee0: c3829f60 c01d97f4 00000000 c01d8470 c38918e0 c3aaf468 39383102 c300343a
    7f00: 00000001 c0219660 c03f1768 c3000c00 00000000 c3000c68 00000002 c3aaf814
    7f20: 00000001 00000101 c38918e0 c021b6e0 00000002 00000000 00000000 c3000c00
    7f40: c38917c0 c021c418 00000064 00000064 00000101 c3867f60 c005b920 c3867f94
    7f60: c3891830 c3aaf400 c3866000 c3aaf400 c3aaf800 00000000 c38918e0 c3aaf400
    7f80: 00000012 00000000 00000000 c3837920 c00574a0 c3867f94 c3867f94 00000101
    7fa0: 01010001 c3867fd4 c381bf48 c3867fd4 c381bf48 00000000 c021ba3c 00000000
    7fc0: 00000000 00000000 00000000 c00573dc 00000000 00000000 c3867fd8 c3867fd8
    7fe0: 00000000 00000000 00000000 00000000 00000000 c002ce88 00000000 ffff0000
    [] (__bug+0x1c/0x28) from [] (cache_alloc_refill+0x13c/0x594)
    [] (cache_alloc_refill+0x13c/0x594) from [] (__kmalloc+0x94/0xd0)
    [] (__kmalloc+0x94/0xd0) from [] (alloc_netdev_mq+0x48/0x1b0)
    [] (alloc_netdev_mq+0x48/0x1b0) from [] (vntwusb_found1+0x58/0x53c [vt6656_stage])
    [] (vntwusb_found1+0x58/0x53c [vt6656_stage]) from [] (usb_probe_interface+0x130/0x180)
    [] (usb_probe_interface+0x130/0x180) from [] (driver_probe_device+0xac/0x164)
    [] (driver_probe_device+0xac/0x164) from [] (bus_for_each_drv+0x50/0x90)
    [] (bus_for_each_drv+0x50/0x90) from [] (device_attach+0x50/0x68)
    [] (device_attach+0x50/0x68) from [] (bus_probe_device+0x28/0x54)
    [] (bus_probe_device+0x28/0x54) from [] (device_add+0x3b4/0x4f0)
    [] (device_add+0x3b4/0x4f0) from [] (usb_set_configuration+0x524/0x5b8)
    [] (usb_set_configuration+0x524/0x5b8) from [] (generic_probe+0x5c/0xa0)
    [] (generic_probe+0x5c/0xa0) from [] (usb_probe_device+0x48/0x54)
    [] (usb_probe_device+0x48/0x54) from [] (driver_probe_device+0xac/0x164)
    [] (driver_probe_device+0xac/0x164) from [] (bus_for_each_drv+0x50/0x90)
    [] (bus_for_each_drv+0x50/0x90) from [] (device_attach+0x50/0x68)
    [] (device_attach+0x50/0x68) from [] (bus_probe_device+0x28/0x54)
    [] (bus_probe_device+0x28/0x54) from [] (device_add+0x3b4/0x4f0)
    [] (device_add+0x3b4/0x4f0) from [] (usb_new_device+0x100/0x174)
    [] (usb_new_device+0x100/0x174) from [] (hub_thread+0x9dc/0xeec)
    [] (hub_thread+0x9dc/0xeec) from [] (kthread+0x78/0x80)
    [] (kthread+0x78/0x80) from [] (kernel_thread_exit+0x0/0x8)
    Code: e1a01000 e59f000c eb005014 e3a03000 (e5833000)
    ---[ end trace 2a51e0dbab9e4fbe ]---
    note: khubd[152] exited with preempt_count 1

    Signed-off-by: miaofng
    Signed-off-by: Greg Kroah-Hartman

    miaofng
     
  • This patch prevents the driver from calling misc_deregister twice on the same
    ressouce when unloading the driver.
    Unloading the driver without this patch results in a Kernel BUG like this:
    Panel driver version 0.9.5 registered on parport0 (io=0x378).
    BUG: unable to handle kernel paging request at 0000000000100108
    IP: [] misc_deregister+0x2d/0x90
    PGD 6caff067 PUD 762b7067 PMD 0
    Oops: 0002 [#1] PREEMPT SMP
    last sysfs file: /sys/devices/platform/w83627hf.656/in8_input
    ...

    This patch fixes this issue, although maybe not in the best way possible :)

    linux version v2.6.32-rc1 - linus git tree, Di 29. Sep 01:10:18 CEST 2009

    Signed-off-by: Peter Huewe
    Signed-off-by: Greg Kroah-Hartman

    Peter Huewe