1. 19 3月, 2010 27 次提交
  2. 08 3月, 2010 3 次提交
    • G
      Driver core: create lock/unlock functions for struct device · 8e9394ce
      Greg Kroah-Hartman 提交于
      In the future, we are going to be changing the lock type for struct
      device (once we get the lockdep infrastructure properly worked out)  To
      make that changeover easier, and to possibly burry the lock in a
      different part of struct device, let's create some functions to lock and
      unlock a device so that no out-of-core code needs to be changed in the
      future.
      
      This patch creates the device_lock/unlock/trylock() functions, and
      converts all in-tree users to them.
      
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jean Delvare <khali@linux-fr.org>
      Cc: Dave Young <hidave.darkstar@gmail.com>
      Cc: Ming Lei <tom.leiming@gmail.com>
      Cc: Jiri Kosina <jkosina@suse.cz>
      Cc: Phil Carmody <ext-phil.2.carmody@nokia.com>
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Cc: Rafael J. Wysocki <rjw@sisk.pl>
      Cc: Pavel Machek <pavel@ucw.cz>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Magnus Damm <damm@igel.co.jp>
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Randy Dunlap <randy.dunlap@oracle.com>
      Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      Cc: Vegard Nossum <vegard.nossum@gmail.com>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Cc: Alex Chiang <achiang@hp.com>
      Cc: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Andrew Patterson <andrew.patterson@hp.com>
      Cc: Yu Zhao <yu.zhao@intel.com>
      Cc: Dominik Brodowski <linux@dominikbrodowski.net>
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Cc: Wolfram Sang <w.sang@pengutronix.de>
      Cc: CHENG Renquan <rqcheng@smu.edu.sg>
      Cc: Oliver Neukum <oliver@neukum.org>
      Cc: Frans Pop <elendil@planet.nl>
      Cc: David Vrabel <david.vrabel@csr.com>
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      8e9394ce
    • M
      USB: Fix s3c-hsotg build following Samsung platform header moves · f9fed7cd
      Mark Brown 提交于
      Fix a reference to regs-sys.h got missed in the reorganisation of
      the Samsung platform headers targetted for 2.6.34.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NBen Dooks <ben-linux@fluff.org>
      f9fed7cd
    • D
      USB: remove unused defintion of struct usb_device_status · 3ceb85ae
      Dmitry Torokhov 提交于
      The recent rework of /proc/bus/usb/devices polling support made
      this structure unused so let's remove it.
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      3ceb85ae
  3. 07 3月, 2010 1 次提交
    • L
      usbfs: fix deadlock on 'usbfs_mutex', clean up poll · 7bc80cd9
      Linus Torvalds 提交于
      The caller of usbfs_conn_disc_event() in some cases (but not always)
      already holds usbfs_mutex, so trying to protect the event counter with
      that lock causes nasty deadlocks.
      
      The problem was introduced by commit 554f7696 ("USB: Remove BKL from
      poll()") when the BLK protection was turned into using the mutex instead.
      
      So fix this by using an atomic variable instead.  And while we're at it,
      get rid of the atrocious naming of said variable and the waitqueue it is
      associated with.
      
      This also cleans up the unnecessary locking in the poll routine, since
      the whole point of how the pollwait table works is that you can just add
      yourself to the waiting list, and then check the condition you're
      waiting for afterwards - avoiding all races.
      
      It also gets rid of the unnecessary dynamic allocation of the device
      status that just contained a single word.  We should use f_version for
      this, as Dmitry Torokhov points out.  That simplifies everything
      further.
      Reported-and-tested-by: NJeff Chua <jeff.chua.linux@gmail.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Acked-by: NAlan Stern <stern@rowland.harvard.edu>
      Cc: Oliver Neukum <oliver@neukum.org>
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      7bc80cd9
  4. 04 3月, 2010 1 次提交
  5. 03 3月, 2010 8 次提交