aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2009-05-22 14:25:34 -0400
committerJens Axboe <jens.axboe@oracle.com>2009-05-22 14:25:34 -0400
commite4b636366c00738b9609cda307014d71b1225b7f (patch)
tree760b67b3624eda62e943e48ce93635c30a5b47bf /drivers/ide
parentb9ed7252d219c1c663944bf03846eabb515dbe75 (diff)
parent279e677faa775ad16e75c32e1bf4a37f8158bc61 (diff)
Merge branch 'master' into for-2.6.31
Conflicts: drivers/block/hd.c drivers/block/mg_disk.c Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/icside.c2
-rw-r--r--drivers/ide/ide-cd.c9
-rw-r--r--drivers/ide/piix.c1
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/ide/icside.c b/drivers/ide/icside.c
index 4e16ce68b063..36da913cc553 100644
--- a/drivers/ide/icside.c
+++ b/drivers/ide/icside.c
@@ -466,7 +466,7 @@ icside_register_v6(struct icside_state *state, struct expansion_card *ec)
466 struct ide_host *host; 466 struct ide_host *host;
467 unsigned int sel = 0; 467 unsigned int sel = 0;
468 int ret; 468 int ret;
469 hw_regs_t hw[2], *hws[] = { &hw[0], NULL, NULL, NULL }; 469 hw_regs_t hw[2], *hws[] = { &hw[0], &hw[1], NULL, NULL };
470 struct ide_port_info d = icside_v6_port_info; 470 struct ide_port_info d = icside_v6_port_info;
471 471
472 ioc_base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); 472 ioc_base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0);
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 081aed6781cc..1799328decfb 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -283,7 +283,6 @@ static int cdrom_decode_status(ide_drive_t *drive, u8 stat)
283 ide_hwif_t *hwif = drive->hwif; 283 ide_hwif_t *hwif = drive->hwif;
284 struct request *rq = hwif->rq; 284 struct request *rq = hwif->rq;
285 int err, sense_key, do_end_request = 0; 285 int err, sense_key, do_end_request = 0;
286 u8 quiet = rq->cmd_flags & REQ_QUIET;
287 286
288 /* get the IDE error register */ 287 /* get the IDE error register */
289 err = ide_read_error(drive); 288 err = ide_read_error(drive);
@@ -318,7 +317,7 @@ static int cdrom_decode_status(ide_drive_t *drive, u8 stat)
318 } else { 317 } else {
319 cdrom_saw_media_change(drive); 318 cdrom_saw_media_change(drive);
320 319
321 if (blk_fs_request(rq) && !quiet) 320 if (blk_fs_request(rq) && !blk_rq_quiet(rq))
322 printk(KERN_ERR PFX "%s: tray open\n", 321 printk(KERN_ERR PFX "%s: tray open\n",
323 drive->name); 322 drive->name);
324 } 323 }
@@ -353,7 +352,7 @@ static int cdrom_decode_status(ide_drive_t *drive, u8 stat)
353 * No point in retrying after an illegal request or data 352 * No point in retrying after an illegal request or data
354 * protect error. 353 * protect error.
355 */ 354 */
356 if (!quiet) 355 if (!blk_rq_quiet(rq))
357 ide_dump_status(drive, "command error", stat); 356 ide_dump_status(drive, "command error", stat);
358 do_end_request = 1; 357 do_end_request = 1;
359 break; 358 break;
@@ -362,14 +361,14 @@ static int cdrom_decode_status(ide_drive_t *drive, u8 stat)
362 * No point in re-trying a zillion times on a bad sector. 361 * No point in re-trying a zillion times on a bad sector.
363 * If we got here the error is not correctable. 362 * If we got here the error is not correctable.
364 */ 363 */
365 if (!quiet) 364 if (!blk_rq_quiet(rq))
366 ide_dump_status(drive, "media error " 365 ide_dump_status(drive, "media error "
367 "(bad sector)", stat); 366 "(bad sector)", stat);
368 do_end_request = 1; 367 do_end_request = 1;
369 break; 368 break;
370 case BLANK_CHECK: 369 case BLANK_CHECK:
371 /* disk appears blank? */ 370 /* disk appears blank? */
372 if (!quiet) 371 if (!blk_rq_quiet(rq))
373 ide_dump_status(drive, "media error (blank)", 372 ide_dump_status(drive, "media error (blank)",
374 stat); 373 stat);
375 do_end_request = 1; 374 do_end_request = 1;
diff --git a/drivers/ide/piix.c b/drivers/ide/piix.c
index 2aa699933064..69860dea3820 100644
--- a/drivers/ide/piix.c
+++ b/drivers/ide/piix.c
@@ -263,6 +263,7 @@ static const struct ich_laptop ich_laptop[] = {
263 { 0x24CA, 0x1025, 0x003d }, /* ICH4 on ACER TM290 */ 263 { 0x24CA, 0x1025, 0x003d }, /* ICH4 on ACER TM290 */
264 { 0x266F, 0x1025, 0x0066 }, /* ICH6 on ACER Aspire 1694WLMi */ 264 { 0x266F, 0x1025, 0x0066 }, /* ICH6 on ACER Aspire 1694WLMi */
265 { 0x2653, 0x1043, 0x82D8 }, /* ICH6M on Asus Eee 701 */ 265 { 0x2653, 0x1043, 0x82D8 }, /* ICH6M on Asus Eee 701 */
266 { 0x27df, 0x104d, 0x900e }, /* ICH7 on Sony TZ-90 */
266 /* end marker */ 267 /* end marker */
267 { 0, } 268 { 0, }
268}; 269};