- 18 Oct, 2004 21 commits
-
-
Dominik Brodowski authored
pcmcia_get_{first,next}_region are tricky: they're used only by ds.c, but to keep backwards compatibility proper wrappers are needed (for the moment). However, match_region() doesn't work without knowing about ds.c's handle, it seems... but wait: while (list != NULL) { if (!(handle->Attributes & INFO_MTD_CLIENT) || (strcmp(handle->dev_info, list->dev_info) == 0)) { *match = list->info; return CS_SUCCESS; } list = list->info.next; } as ds.c's handle doesn't have INFO_MTD_CLIENT, the if always succeeds -- allowing is to simplify it for ds.c. However, this means we need special functions for ds.c. It's not too large, fortunately.
-
Dominik Brodowski authored
Add a wrapper around pcmcia_access_configuration_register, and use pccard_access_configuration_register in ds.c
-
Dominik Brodowski authored
Add a wrapper around pcmcia_get_status, and use pccard_get_status in ds.c
-
Dominik Brodowski authored
pcmcia_reset_card doesn't need to know about the handle, but add a wrapper for backwards compatibility anyways.
-
Dominik Brodowski authored
Add a wrapper around pcmcia_get_configuration_info, and use pccard_get_configuration_info in ds.c
-
Dominik Brodowski authored
Change calling conventions to pcmcia_get_window, and use this function directly in ds.c, but keep the existing wrappers pcmcia_get_{first,next}_window in pcmcia_compat.c
-
Dominik Brodowski authored
Move the compatibility pcmcia_* functions which take a "handle" as argument to a new file, pcmcia_compat.c, which is built into "ds" a.k.a. "pcmcia.ko". This makes sense as only 16-bit PCMCIA drivers have a valid handle.
-
Dominik Brodowski authored
Add a wrapper around pcmcia_validate_cis, and use pccard_validate_cis in ds.c
-
Dominik Brodowski authored
Rename the "internal" read_tuple to pccard_read_tuple, and update it to better calling conventions.
-
Dominik Brodowski authored
Add a wrapper around pcmcia_parse_tuple, and use pccard_parse_tuple in ds.c
-
Dominik Brodowski authored
Add a wrapping around pcmcia_get_tuple_data, and use pccard_get_tuple_data wherever possible.
-
Dominik Brodowski authored
Add wrappings around pcmcia_get_{first,next}_tuple, and use the new pccard_get_first,next_tuple calls wherever possible.
-
Dominik Brodowski authored
pcmcia_replace_cis doesn't need to know about the handle or a sub- function, as the cis can only be replaced as a whole. Also, remove bogus entries in cs_internal.h
-
Dominik Brodowski authored
pcmcia_adjust_resource_info is only called from ds.c and doesn't need to know about a valid handle.
-
Dominik Brodowski authored
pcmcia_lookup_bus is only called from ds.c, and doesn't need to know about a handle -- just about the struct pcmcia_socket.
-
Dominik Brodowski authored
After noting three things, namely 1.) CardBus cards work without ds a.k.a. pcmcia loaded, 2.) ds a.k.a pcmcia cannot be built as module if pcmcia_core is built in, and 3.) some commenting in drivers/pcmcia/Kconfig was obsolete [to use 32-bit cards, you don't need pcmcia-cs], I wrote this patch which introduces more config options for fine- grained tuning of what to built as what and what not to built. In future, 16-bit-specific code in pcmcia_core may be surrounded by CONFIG_PCMCIA. Also, I'll try to remove the dependency of yenta_socket on cardbus.
-
Dominik Brodowski authored
Some parts of cs.c are not used by any PCMCIA socket or card driver or the PCMCIA subsystem itself. Mark them CONFIG_PCMCIA_OBSOLETE. Also, define pcmcia_get_window static as it was supposed to be.
-
Dominik Brodowski authored
Add a new CONFIG_PCMCIA_OBSOLETE option.
-
Dominik Brodowski authored
Remove both include/pcmcia/ftl.h and include/pcmcia/memory.h as they are unused.
-
Dominik Brodowski authored
The rest of drivers/pcmcia/bulkmem.c is only used by code relevant for 16-bit PCMCIA devices. So, link it with ds instead of with cs. The newly created module pcmcia.ko contains a MODULE_ALIAS() for the name "ds" so that backwards compatibility is ensured.
-
Dominik Brodowski authored
Most of drivers/pcmcia/bulkmem.c is unused by the Linux kernel PCMCIA subsystem and/or in-kernel PCMCIA device drivers. Remove this unused code as well as references to it.
-
- 16 Oct, 2004 6 commits
-
-
Benjamin Herrenschmidt authored
As Milton noticed, Anton actually broke the logic if the memory isn't aligned in the first place. Sorry about this mess for such a little piece of code. This _really_ fixes is it all Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Olaf Hering authored
Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Anton Blanchard authored
I found a couple of issues with reserve_mem: - If we try and mem_reserve something of zero length, everything reserved after it would get ignored. This is because early_reserve_mem sees a zero length as a terminator. - The code rounded the top down instead of up. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Benjamin Herrenschmidt authored
This patch adds proper ppc32 "iomap" interfaces. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Benjamin Herrenschmidt authored
Nowadays, it's possible to build CONFIG_PPC_PMAC without CONFIG_PPC_PSERIES, in which case, eeh will not be included in the build (and the eeh checks are turned into no-ops). However, we then "lose" the iomap functions. This patch moves them to a separate file. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Andrew Morton authored
Fix bug identified by Badari Pulavarty <pbadari@us.ibm.com> Local variable `handle' will become stale if ext3_direct_io_get_blocks() closes off the current transaction and starts a new one. This causes a BUG in journal_stop(). So reacquire the handle from *current after performing the I/O. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
- 15 Oct, 2004 3 commits
-
-
Linus Torvalds authored
Let's try the 2.4.x release methodology
-
bk://kernel.bkbits.net/gregkh/linux/fix-2.6Linus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
John Rose authored
Hoping you will accept this fix. The bug can cause a crash upon hotplug remove. The bug involves unsafe traversal of a list while deleting list members. The fix uses list_for_each_safe() rather than list_for_each(). Also threw in an initialization to get rid of a compiler warning. Signed-off-by: John Rose <johnrose@austin.ibm.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
- 14 Oct, 2004 2 commits
-
-
Linus Torvalds authored
A bridge that has been set up by firmware to cover multiple PCI buses but doesn't actually have anything connected behind some of them caused us to use the incorrect maxmimum bus number span when scanning the bridge chip. Problem reported by Tim Saunders, with Russell King suggesting the fix.
-
Linus Torvalds authored
Make sure we order the writes to a newly created page with the page table update that potentially exposes the page to another CPU. This is a no-op on any architecture where getting the page table spinlock will already do the ordering (notably x86), but other architectures can care.
-
- 13 Oct, 2004 8 commits
-
-
Yoshinori Sato authored
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Paolo \'Blaisorblade\' Giarrusso authored
From: Lars Ellenberg <Lars.Ellenberg@linbit.com> Add a memory barrier to the assembly checksum code - the code was copied straight from the i386 one, and the patch resyncs the code with the original. I'll check if the original code can be included directly (i.e. "#include") after 2.6.9. Without this patch, every 2.6 UML release corrupts the checksum of every UDP fragmented packet with size >= MTU (verified by various people, we all agree on this issue; nobody reported "Works fine here"). The corrupted packets are not accepted, thus blocking any kind of communication with large-sized UDP packets. In fact, I've even dissected the UML -> host traffic before and after this patch with Ethereal - and it always reported an incorrect checksum for fragmented UDP packets before and always correct after applying the patch. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Paolo \'Blaisorblade\' Giarrusso authored
Currently, ubd=sync is different from replacing ubd#= with ubd#s=. This is against Principle of Least Surprise, so remove this difference. Also the current ubd=sync behaviour is completely useless: it is to make sure that when the kernel has synched its I/O to the virtual disk, the host does not invalidate this with his caching; this causes ReiserFS corruption. But since actually we call end_request() only after the io_thread has done its work, we never lie to the block layer. Using O_SYNC as we do when replacing ubd#= with ubd#s= is enough. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Paolo \'Blaisorblade\' Giarrusso authored
From: BlaisorBlade <blaisorblade_spam@yahoo.it>, Chris Wright <chrisw@osdl.org> Avoid deadlocking onto the request lock in the UBD driver, i.e. don't lock the queue spinlock when called from the request function. In detail: Rename ubd_finish() to __ubd_finish() and remove ubd_io_lock from it. Add wrapper, ubd_finish(), which grabs lock before calling __ubd_finish(). Update do_ubd_request to use the lock free __ubd_finish() to avoid deadlock. Also, apparently prepare_request is called with ubd_io_lock held, so remove locks there. Signed-off-by: Chris Wright <chrisw@osdl.org> Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Paolo \'Blaisorblade\' Giarrusso authored
Some configuration options are known not to compile. So then make them depend on CONFIG_BROKEN. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Paolo \'Blaisorblade\' Giarrusso authored
Remove one more symlink when doing make mrproper ARCH=um Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Paolo \'Blaisorblade\' Giarrusso authored
Drop the usage of check_gcc and host-progs, and use their new names. A must-have :-). Oh, and it will create lots of serious problems - it will give me your root account! Yes, you don't see the code in the patch, but it happens! :-))) Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Paolo \'Blaisorblade\' Giarrusso authored
Makes the UML build system work well even under parallel make (tested, so far, even with -j50). Please notice that it must be updated for every makefile change. Or better, every makefile change must use correct dependencies (and they are easy to miss). Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-