Commit graph android_kernel_sony_sdm845/drivers
Message SHA1
[PATCH] Use driver_for_each_device() in drivers/pnp/driver.c instead of manually walking list.
Signed-off-by: Patrick Mochel <mochel@digitalimplant.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

diff -Nru a/drivers/pnp/driver.c b/drivers/pnp/driver.c

mochel@digitalimplant.org   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:13 -07:00
8d618afdd6
[PATCH] Add driver_for_each_device().
Now there's an iterator for accessing each device bound to a driver.

Signed-off-by: Patrick Mochel <mochel@digitalimplant.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Index: linux-2.6.12-rc2/drivers/base/driver.c
===================================================================

mochel@digitalimplant.org   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:13 -07:00
fae3cd0025
[PATCH] Move device/driver code to drivers/base/dd.c
This relocates the driver binding/unbinding code to drivers/base/dd.c. This is done
for two reasons: One, it's not code related to the bus_type itself; it uses some from
that, some from devices, and some from drivers. And Two, it will make it easier to do
some of the upcoming lock removal on that code..

Signed-off-by: Patrick Mochel <mochel@digitalimplant.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

mochel@digitalimplant.org   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:13 -07:00
07e4a3e27f
[PATCH] Add a semaphore to struct device to synchronize calls to its driver.
This adds a per-device semaphore that is taken before every call from the core to a
driver method. This prevents e.g. simultaneous calls to the ->suspend() or ->resume()
and ->probe() or ->release(), potentially saving a whole lot of headaches.

It also moves us a step closer to removing the bus rwsem, since it protects the fields
in struct device that are modified by the core.

Signed-off-by: Patrick Mochel <mochel@digitalimplant.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

mochel@digitalimplant.org   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:12 -07:00
af70316af1
[PATCH] fix up ipmi code after class_simple.c removal
Cc: Corey Minyard <minyard@acm.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Andrew Morton   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:12 -07:00
eb51b65005
[PATCH] class: remove class_simple code, as no one in the tree is using it anymore.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

gregkh@suse.de   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:11 -07:00
cd987d38cc
[PATCH] class: add kerneldoc for the new class functions.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

gregkh@suse.de   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:11 -07:00
2fc68447df
[PATCH] USB: trivial error path fix
Trivial fix to USB class-creation error path; please apply.

Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Mark M. Hoffman   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:09 -07:00
5cebfb759c
[PATCH] class: convert drivers/* to use the new class api instead of class_simple
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

gregkh@suse.de   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:09 -07:00
56b2293595
[PATCH] class: convert drivers/scsi/* to use the new class api instead of class_simple
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

gregkh@suse.de   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:08 -07:00
d253878b3d
[PATCH] class: convert drivers/ieee1394/* to use the new class api instead of class_simple
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

gregkh@suse.de   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:08 -07:00
7e25ab9155
[PATCH] class: convert drivers/char/* to use the new class api instead of class_simple
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

gregkh@suse.de   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:08 -07:00
ca8eca6884
[PATCH] class: convert drivers/block/* to use the new class api instead of class_simple
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

gregkh@suse.de   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:07 -07:00
deb3697037
[PATCH] USB: move the usb hcd code to use the new class code.
This moves a kref into the main hcd structure, which detaches it from
the class device structure.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

gregkh@suse.de   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:07 -07:00
8561b10f6e
[PATCH] INPUT: move to use the new class code, instead of class_simple
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

gregkh@suse.de   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:04 -07:00
1235686f6e
[PATCH] tty: move to use the new class code, instead of class_simple
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

gregkh@suse.de   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:04 -07:00
7fe845d11a
[PATCH] CLASS: move a "simple" class logic into the class core.
One step on improving the class api so that it can not be used incorrectly.
This also fixes the module owner issue with the dev files that happened when
the devt logic moved to the class core.

Based on a patch originally written by Kay Sievers <kay.sievers@vrfy.org>

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

gregkh@suse.de   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:04 -07:00
e9ba6365fd
[PATCH] sysfs: (rest) if show/store is missing return -EIO
sysfs: fix the rest of the kernel so if an attribute doesn't
       implement show or store method read/write will return
       -EIO instead of 0 or -EINVAL or -EPERM.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Dmitry Torokhov   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:03 -07:00
70f2817a43
[PATCH] sysfs: (driver/block) if show/store is missing return -EIO
sysfs: fix drivers/block so if an attribute doesn't implement
       show or store method read/write will return -EIO
       instead of 0 or -EINVAL.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Dmitry Torokhov   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:03 -07:00
6c1852a08e
[PATCH] sysfs: (driver/pci) if show/store is missing return -EIO
sysfs: fix drivers/pci so if an attribute does not implement
       show or store method read/write will return -EIO
       instead of 0.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Dmitry Torokhov   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:02 -07:00
fc7e482899
[PATCH] sysfs: (driver/base) if show/store is missing return -EIO
sysfs: fix drivers/base so if an attribute doesn't implement
       show or store method read/write will return -EIO
       instead of 0.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Dmitry Torokhov   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:02 -07:00
4a0c20bf8c
[PATCH] Make attributes names const char *
sysfs: make attributes and attribute_group's names const char *

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Dmitry Torokhov   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:01 -07:00
d48593bf20
[PATCH] make driver's name be const char *
Driver core:
  change driver's, bus's, class's and platform device's names
  to be const char * so one can use
            const char *drv_name = "asdfg";
  when initializing structures.
  Also kill couple of whitespaces.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Dmitry Torokhov   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:01 -07:00
8d790d7408
[PATCH] kset_hotplug_ops->name shoudl return const char *
kobject: change name() method in kset_hotplug_ops return const char *
	 since users shoudl not try to modify returned data.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Dmitry Torokhov   authored and   Greg Kroah-Hartman   commited 2005-06-20 15:15:01 -07:00
419cab3fc6
Merge master.kernel.org:/home/rmk/linux-2.6-arm
Linus Torvalds   commited 2005-06-20 11:37:49 -07:00
91b90475e7
[PATCH] ARM: 2701/1: free up ixp2000 timer 4 for the watchdog
Patch from Lennert Buytenhek

The IXP2000 has four timers, but if we're on an A-step IXP2800, timer
2 and 3 don't work.  We need two timers for timekeeping (one for the
timer interrupt and one for tracking missed jiffies), so on early
IXP2800s we have no other choice but to use timer 1 and 4 for that,
but on all other IXP2000s we'd rather leave timer 4 free since that's
the only timer we can use for the watchdog.
So, on buggy IXP2000s (i.e. the A-step IXP2800) we use timer 4 for
tracking missed jiffies, and on all all non-buggy IXP2000s (i.e.
everything but the A-step IXP2800) we use timer 2.
On a pre-production IXP2800, this patch should print these messages
on boot:
	Enabling IXP2800 erratum #25 workaround
	Unable to use IXP2000 watchdog due to IXP2800 erratum #25
On any non-buggy IXP2800 (as well as on IXP2400s) you shouldn't see
anything at all, and the watchdog should be usable again.

Signed-off-by: Lennert Buytenhek
Signed-off-by: Deepak Saxena
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

Lennert Buytenhek   authored and   Russell King   commited 2005-06-20 18:51:07 +01:00
e4fe19819e
[PATCH] ll_rw_blk.c kerneldoc updates
The recent mapping changes didn't update the kerneldoc appropriately.

Original from Christoph Hellwig <hch@lst.de>

Signed-off-by: Jens Axboe <axboe@suse.de>

Christoph Hellwig   authored and   Jens Axboe   commited 2005-06-20 14:21:01 +02:00
73747aed04
[PATCH] update blk_execute_rq to take an at_head parameter
Original From: Mike Christie <michaelc@cs.wisc.edu>

Modified to split out block changes (this patch) and SCSI pieces.

Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

James Bottomley   authored and   Jens Axboe   commited 2005-06-20 14:11:09 +02:00
994ca9a196
[PATCH] kill 'reading' variable in sg_io(), it isn't used anymore.
Signed-off-by: Jens Axboe <axboe@suse.de>

Jens Axboe   commited 2005-06-20 14:10:25 +02:00
f63eb21b4f
[PATCH] The blk_rq_map_user() change missed an update in scsi_ioctl.c
Signed-off-by: Jens Axboe <axboe@suse.de>

James Bottomley   authored and   Jens Axboe   commited 2005-06-20 14:07:17 +02:00
e1f546e185
[PATCH] Add scatter-gather support for the block layer SG_IO
Signed-off-by: Jens Axboe <axboe@suse.de>

James Bottomley   authored and   Jens Axboe   commited 2005-06-20 14:06:52 +02:00
f1970baf6d
[PATCH] Cleanup blk_rq_map_* interfaces
Change the blk_rq_map_user() and blk_rq_map_kern() interface to require
a previously allocated request to be passed in. This is both more efficient
for multiple iterations of mapping data to the same request, and it is also
a much nicer API.

Signed-off-by: Jens Axboe <axboe@suse.de>

Jens Axboe   commited 2005-06-20 14:06:01 +02:00
dd1cab95f3
[PATCH] Keep the bio end_io parts inside of bio.c for blk_rq_map_kern()
Signed-off-by: Jens Axboe <axboe@suse.de>

Jens Axboe   commited 2005-06-20 14:05:27 +02:00
b823825e8e
[PATCH] Add blk_rq_map_kern()
Add blk_rq_map_kern which takes a kernel buffer and maps it into
a request and bio. This can be used by the dm hw_handlers, old
sg_scsi_ioctl, and one day scsi special requests so all requests
comming into scsi will have bios. All requests having bios
should allow scsi to use scatter lists for all IO and allow it
to use block layer functions.

Signed-off-by: Jens Axboe <axboe@suse.de>

Mike Christie   authored and   Jens Axboe   commited 2005-06-20 14:04:44 +02:00
df46b9a44c
aic7xxx/aic79xx_osm: revert completely bogus ahd_linux_queue() patch
Jeff Garzik   commited 2005-06-19 21:50:12 -04:00
e632ba11b8
fc4/fc: fix warnings and errors related to recent SCSI EH updates
Jeff Garzik   commited 2005-06-19 21:47:56 -04:00
98f72a1c51
[PATCH] console blanking oops fix
When significant delays happen during boot (e.g.  with a kernel debugger,
but the problem has also seen in other cases) the timeout for blanking the
console may trigger, but the work scheduler may not have been initialized,
yet.  schedule_work() will oops over the null keventd_wq.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Jan Beulich   authored and   Linus Torvalds   commited 2005-06-18 13:33:01 -07:00
cc63b1e12b
Merge 'upstream-2.6.13' branch of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev
Linus Torvalds   commited 2005-06-18 13:08:39 -07:00
43fde784a6
[PATCH] Fix typo in drivers/pci/pci-driver.c
The git commit 794f5bfa77
accidentally suffers from a previous typo in that file
(',' instead of ';' in end of line). Patch included.

Signed-off-by: Mika Kukkonen (mikukkon@iki.fi)
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Mika Kukkonen   authored and   Linus Torvalds   commited 2005-06-18 12:59:33 -07:00
c83d9945c0
Manual merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git
This is a fixed-up version of the broken "upstream-2.6.13" branch, where
I re-did the manual merge of drivers/net/r8169.c by hand, and made sure
the history is all good.

Linus Torvalds   commited 2005-06-18 11:42:35 -07:00
0e396ee43e
Merge /spare/repo/linux-2.6/
Jeff Garzik   commited 2005-06-18 13:21:24 -04:00
f9d1fe9630
[SCSI] aacraid: regression fix
The fixes for sparse warnings mixed in with the fixups for
the raw_srb handler resulted in a bug that showed up in the 32 bit
environments when trying to issue calls directly to the physical devices
that are part of the arrays (ioctl scsi passthrough).

Received from Mark Salyzyn at adaptec.
Applied comment from Christoph to remove cpu_to_le32(0)
Applied Mark S fix of missing memcpy.
It applies to the scsi-misc-2.6 git tree.

Signed-off-by: Mark Haverkamp <markh@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

Mark Haverkamp   authored and   James Bottomley   commited 2005-06-17 20:36:28 -05:00
5d497cecde
merge by hand (qla_os.c mismerge)
James Bottomley   commited 2005-06-17 19:04:18 -05:00
3afa294c40
merge by hand (fix up qla_os.c merge error)
James Bottomley   commited 2005-06-17 18:42:23 -05:00
3237ee78fc
Merge 'for-linus' branch of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/axboe/linux-2.6-block
Linus Torvalds   commited 2005-06-17 12:35:26 -07:00
dfd11c2e61
[PATCH] PCI: don't override drv->shutdown unconditionally
There are many drivers that have been setting the generic driver
model level shutdown callback, and pci thus must not override it.

Without this patch we can have really bad data loss on various
raid controllers.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Christoph Hellwig   authored and   Linus Torvalds   commited 2005-06-17 12:34:20 -07:00
794f5bfa77
[SCSI] allow sleeping in ->eh_host_reset_handler()
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

Jeff Garzik   commited 2005-06-17 12:05:18 -05:00
df0ae2497d
[SCSI] allow sleeping in ->eh_bus_reset_handler()
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

Jeff Garzik   commited 2005-06-17 12:05:10 -05:00
68b3aa7c98
[SCSI] allow sleeping in ->eh_device_reset_handler()
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

Jeff Garzik   commited 2005-06-17 12:05:03 -05:00
94d0e7b805
[SCSI] allow sleeping in ->eh_abort_handler()
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

Jeff Garzik   commited 2005-06-17 12:04:55 -05:00
8fa728a268