Skip to content

Commit ae29a18

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6: ide-gd: re-get capacity on revalidate tx4938ide: Avoid underflow on calculation of a wait cycle tx4938ide: Do not call devm_ioremap for whole 128KB tx4938ide: Check minimum cycle time and SHWT range (v2) ide: Switch to a common address ide-cd: fix DMA alignment regression
2 parents 0bf82cc + 52ebb43 commit ae29a18

File tree

14 files changed

+46
-27
lines changed

14 files changed

+46
-27
lines changed

drivers/ide/alim15x3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*
66
* Copyright (C) 1998-2000 Andre Hedrick (andre@linux-ide.org)
77
* May be copied or modified under the terms of the GNU General Public License
8-
* Copyright (C) 2002 Alan Cox <alan@redhat.com>
8+
* Copyright (C) 2002 Alan Cox
99
* ALi (now ULi M5228) support by Clear Zhang <Clear.Zhang@ali.com.tw>
1010
* Copyright (C) 2007 MontaVista Software, Inc. <source@mvista.com>
1111
* Copyright (C) 2007 Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

drivers/ide/hpt366.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
* different clocks on read/write. This requires overloading rw_disk and
5353
* other deeply crazy things. Thanks to <http://www.hoerstreich.de> for
5454
* keeping me sane.
55-
* Alan Cox <alan@redhat.com>
55+
* Alan Cox <alan@lxorguk.ukuu.org.uk>
5656
*
5757
* - fix the clock turnaround code: it was writing to the wrong ports when
5858
* called for the secondary channel, caching the current clock mode per-

drivers/ide/ide-cd.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,8 @@ static void cdrom_do_block_pc(ide_drive_t *drive, struct request *rq)
12501250
* separate masks.
12511251
*/
12521252
alignment = queue_dma_alignment(q) | q->dma_pad_mask;
1253-
if ((unsigned long)buf & alignment || rq->data_len & alignment
1253+
if ((unsigned long)buf & alignment
1254+
|| rq->data_len & q->dma_pad_mask
12541255
|| object_is_on_stack(buf))
12551256
drive->dma = 0;
12561257
}

drivers/ide/ide-disk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (C) 1994-1998 Linus Torvalds & authors (see below)
33
* Copyright (C) 1998-2002 Linux ATA Development
44
* Andre Hedrick <andre@linux-ide.org>
5-
* Copyright (C) 2003 Red Hat <alan@redhat.com>
5+
* Copyright (C) 2003 Red Hat
66
* Copyright (C) 2003-2005, 2007 Bartlomiej Zolnierkiewicz
77
*/
88

drivers/ide/ide-gd.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,12 @@ static int ide_gd_media_changed(struct gendisk *disk)
281281
static int ide_gd_revalidate_disk(struct gendisk *disk)
282282
{
283283
struct ide_disk_obj *idkp = ide_drv_g(disk, ide_disk_obj);
284-
set_capacity(disk, ide_gd_capacity(idkp->drive));
284+
ide_drive_t *drive = idkp->drive;
285+
286+
if (ide_gd_media_changed(disk))
287+
drive->disk_ops->get_capacity(drive);
288+
289+
set_capacity(disk, ide_gd_capacity(drive));
285290
return 0;
286291
}
287292

drivers/ide/ide-iops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2000-2002 Andre Hedrick <andre@linux-ide.org>
3-
* Copyright (C) 2003 Red Hat <alan@redhat.com>
3+
* Copyright (C) 2003 Red Hat
44
*
55
*/
66

drivers/ide/ide-pci-generic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 2001-2002 Andre Hedrick <andre@linux-ide.org>
3-
* Portions (C) Copyright 2002 Red Hat Inc <alan@redhat.com>
3+
* Portions (C) Copyright 2002 Red Hat Inc
44
*
55
* This program is free software; you can redistribute it and/or modify it
66
* under the terms of the GNU General Public License as published by the

drivers/ide/ide-proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (C) 1997-1998 Mark Lord
3-
* Copyright (C) 2003 Red Hat <alan@redhat.com>
3+
* Copyright (C) 2003 Red Hat
44
*
55
* Some code was moved here from ide.c, see it for original copyrights.
66
*/

drivers/ide/it821x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2004 Red Hat <alan@redhat.com>
2+
* Copyright (C) 2004 Red Hat
33
* Copyright (C) 2007 Bartlomiej Zolnierkiewicz
44
*
55
* May be copied or modified under the terms of the GNU General Public License

drivers/ide/jmicron.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/*
3-
* Copyright (C) 2006 Red Hat <alan@redhat.com>
3+
* Copyright (C) 2006 Red Hat
44
*
55
* May be copied or modified under the terms of the GNU General Public License
66
*/

0 commit comments

Comments
 (0)