- 16 Jul, 2004 4 commits
-
-
Pat LaVarre authored
Writing to RAM capable media was broken by the moving of write flag detection from probe to drive open time. The media would stay terminally RO due to the set_disk_ro() call. This fixes the code to do the right thing - the detection stays at open time (which it must, since it depends on the media), and we fail with -EROFS if the media can't be written. Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
David Woodhouse authored
If nobody shouts soon about why the new, shiny, generic chip drivers don't work where the old ones do, they can be removed entirely.
-
David Woodhouse authored
and fix a few compiler warnings while we're at it.
-
David Woodhouse authored
It wants reimplementing sanely, preferably in sysfs instead.
-
- 15 Jul, 2004 14 commits
-
-
David Howells authored
This fixes the PPC openpic driver to use cpumask_t where appropriate. Signed-Off-By: David Howells <dhowells@redhat.com> Signed-Off-By: Linus Torvalds <torvalds@osdl.org>
-
David Woodhouse authored
The internal interrupts are hardcoded to be level-triggered, but we need to make sure the OpenPIC code knows that...
-
David Woodhouse authored
The UART tristates its IRQ output when the OUT2 bit in the MCR isn't set. For reasons not known to civilised man, the hardware engineers stopped it from floating by pulling it _high_ instead of low, so if anybody requests that IRQ before OUT2 is turned on, we die in an IRQ storm. The serial8250 driver does precisely that thing, with precisely that effect. ALPHA_KLUDGE_MCR was designed to fix exactly this kind of problem, so we use it here as intended. Ideally ALPHA_KLUDGE_MCR would go away and be replaced with something like UPF_FORCE_OUT2 and UPF_FORCE_OUT1 flags, but now is not the time to get me started on a cleanup of everything about serial8250 that offends me.
-
David Woodhouse authored
The UART is detected as a ST16650V2 but its FIFO doesn't behave nicely. Disable autoprobe and hard-code it to be a ST16650 instead.
-
Hugh Dickins authored
Just unearthed another of my warcrimes: reading a 17-page sparse file, I mean holey file, hits the in_interrupt panic in do_exit on a current highmem kernel (but 2.6.7 is okay). Fix mismatched preempt count from shmem_swp_alloc's swapindex hole case by mapping an empty_zero_page. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
-
David Woodhouse authored
into shinybook.infradead.org:/home/dwmw2/bk/mtd-2.6
-
David Woodhouse authored
- Handle cached access to flash chips on supporting platforms - Handle arrangements of chips larger than a single bus width - Clean up the AMD/Fujitsu chip driver - Update board 'mapping' drivers to match - New mapping drivers for new platforms.
-
David Woodhouse authored
- Move user-visible bits from headers to include/mtd/ directory. - Update old DiskOnChip drivers for newer hardware. - Switch NFTL and INFTL support to work with new DiskOnChip/NAND code. - New phram driver, reimplenting the ugly slram driver. - Bug fixes in partitioning code
-
David Woodhouse authored
- Improved support for NAND flash - More generic compression support, allowing for extra compressors - Fix potential deadlock with kupdated
-
David Woodhouse authored
Update the core NAND code: - support multiple chips - support bad block tables - improved generic ECC support and 'spare area' usage. - 16-bit NAND - Large-block NAND devices - Renesas AG-AND devices - M-Systems DiskOnChip devices - Other new board support wrappers Most of the work was done by Thomas Gleixner. Signed-Off-By: David Woodhouse <dwmw2@infradead.org>
-
Richard Henderson authored
into kanga.twiddle.home:/home/rth/work/linux/axp-2.6
-
Richard Henderson authored
-
Jens Axboe authored
This fixes two issues in the CFQ IO-scheduler: o Still a bad allocation under the queue lock o We need to clear crq after mempool_alloc(), otherwise the rbtree pointers can contain garbage if slab poisoning is enabled. This causes crashes on front/back merges because rb_next() returns crap. Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
- 14 Jul, 2004 22 commits
-
-
bk://kernel.bkbits.net/gregkh/linux/driver-2.6Linus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
bk://kernel.bkbits.net/gregkh/linux/i2c-2.6Linus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
bk://kernel.bkbits.net/gregkh/linux/usb-2.6Linus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
Bartlomiej Zolnierkiewicz authored
This fixes following issues for PIO-in: - shared PCI IRQs handling - fail request if the last status is bad and PIO-out: - set hwgroup->handler/timer in prehandlers - handle drive->unmask in prehandlers - check for !rq->nr_sectors and DRQ_STAT bit set - use drive->bad_wstat instead of BAD_W_STAT Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Bartlomiej Zolnierkiewicz authored
This fixes a couple of CONFIG_IDE_TASKFILE_IO=n issues: - check status after last sector for PIO-in transfers - handle drive->unmask properly in PIO-out prehandlers - use rq->[hard]_nr_sectors where appropriate Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Bartlomiej Zolnierkiewicz authored
Don't do partial completions but instead acknowledge already transferred sectors with verified good status on error. This allows us to complete "good" sectors to block layer even if bio they belong to wasn't finished and simplifies code. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Bartlomiej Zolnierkiewicz authored
drive_is_ready() reads STATUS register if CONFIG_IDEPCI_SHARE_IRQ is not defined and ALTSTATUS register if it is defined. Therefore drive_is_ready() in pre_task_mulout_intr() only makes sense if we can't trust STATUS register (because we call ide_wait_stat() which reads STATUS register earlier). Remove this "workaround" for now as it is not present in ide-disk.c and whole multi PIO-out code (CONFIG_IDE_TASKFILE_IO=n) was buggy before. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Bartlomiej Zolnierkiewicz authored
disable_irq_nosync() in ide-io.c:ide_do_request() protects pre_task_out_intr() from racing with the task_out_intr(). Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Bartlomiej Zolnierkiewicz authored
We shouldn't ever get there if drive is busy and we can't start transfer in this case. ide-disk.c:read_intr() also doesn't check for BUSY_STAT bit. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Bartlomiej Zolnierkiewicz authored
We shouldn't ever get into ->handler() if drive is busy so just call ->error() unconditionally if status check fails. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Bartlomiej Zolnierkiewicz authored
Setup handler and output first data block directly from ->prehandler() instead of calling ->handler(). The only change in functionality is that we no longer check DRIVE_READY status bits (there is no need to do it). Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Bartlomiej Zolnierkiewicz authored
- in task_out_intr() fix off-by-1 bug and (stat & DRQ_STAT) check, previously "if" was always true for rq->current_nr_sectors == 1 - fail request if DRQ_STAT is not set and rq->current_nr_sectors != 0 (instead of setting handler and waiting for the next IRQ) or if DRQ_STAT is set but !rq->current_nr_sectors (in task_mulout_intr() this was OK) - in task_mulout_intr() check also DRIVE_READY and WRERR_STAT status bits Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Greg Kroah-Hartman authored
into kroah.com:/home/greg/linux/BK/driver-2.6
-
Greg Kroah-Hartman authored
into kroah.com:/home/greg/linux/BK/i2c-2.6
-
Olaf Hering authored
This patch adds a /block/*/removeable sysfs attribute. A value of 1 indicates the media can change anytime. This is a hint for userland to poll such devices for possible media changes, and leave all others alone. There is currently no way to see if a connected usb-storage device is a disk or a card reader. It will also show 1 for CD and ZIP drives. It was done by Patrick Mansfield a while ago. I can probably not sigh-off his work. ;) Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
Mika Kukkonen authored
Hi again, Still doing my compile, and got this: CC [M] security/root_plug.o security/root_plug.c:39: warning: missing initializer security/root_plug.c:39: warning: (near initialization for `__parm_vendor_id.addr') security/root_plug.c:42: warning: missing initializer security/root_plug.c:42: warning: (near initialization for `__parm_product_id.addr') security/root_plug.c:48: warning: missing initializer security/root_plug.c:48: warning: (near initialization for `__parm_debug.addr') Simply upgrading root_plug to use the new module parameter syntax seemed to do the trick. I made the debug writable, the others just readable to root. Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
Dmitry Torokhov authored
Driver core: platform_device_unregister should release resources first and only then call device_unregister, otherwise if there are no more references to the device it will be freed and the fucntion will try to access freed memory. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
Örjan Persson authored
This patch unhides the SMBus on the hp nc8000 and nc6000 laptops. The patch has been co-written by Jean Delvare and Rudolf Marek. I've only tested this on nc8000, but it should work for the nc6000 too. Unfortunatley, we had to little information to fix the problem described in the reported bug below, as is probably the same problem. But if we're very lucky it might solve it too. http://bugzilla.kernel.org/show_bug.cgi?id=2976Signed-off-by: Örjan Persson <orange@fobie.net> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
Greg Kroah-Hartman authored
-
bk://kernel.bkbits.net/jgarzik/libata-upstream-2.6Linus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
Jeff Garzik authored
The hardware vendor, in their infinite wisdom, make the combined mode configuration register different between ICH5 and ICH6. Take this into account.
-
Sergio Gelato authored
Obvious bug. Fixes highmem oops.
-