sata_mv.c (a6cbfa1e6d38c4b3ab0ce7e3aea4bb4e744f24b8) sata_mv.c (14d7045c7f3b0a9d3b00274c23d7d516fc6d44d9)
1/*
2 * sata_mv.c - Marvell SATA support
3 *
4 * Copyright 2008-2009: Marvell Corporation, all rights reserved.
5 * Copyright 2005: EMC Corporation, all rights reserved.
6 * Copyright 2005 Red Hat, Inc. All rights reserved.
7 *
8 * Originally written by Brett Russ.

--- 2464 unchanged lines hidden (view full) ---

2473{
2474 void __iomem *port_mmio = mv_ap_base(ap);
2475
2476 return readl(port_mmio + SATA_TESTCTL) >> 16;
2477}
2478
2479static void mv_pmp_eh_prep(struct ata_port *ap, unsigned int pmp_map)
2480{
1/*
2 * sata_mv.c - Marvell SATA support
3 *
4 * Copyright 2008-2009: Marvell Corporation, all rights reserved.
5 * Copyright 2005: EMC Corporation, all rights reserved.
6 * Copyright 2005 Red Hat, Inc. All rights reserved.
7 *
8 * Originally written by Brett Russ.

--- 2464 unchanged lines hidden (view full) ---

2473{
2474 void __iomem *port_mmio = mv_ap_base(ap);
2475
2476 return readl(port_mmio + SATA_TESTCTL) >> 16;
2477}
2478
2479static void mv_pmp_eh_prep(struct ata_port *ap, unsigned int pmp_map)
2480{
2481 struct ata_eh_info *ehi;
2482 unsigned int pmp;
2483
2484 /*
2485 * Initialize EH info for PMPs which saw device errors
2486 */
2481 unsigned int pmp;
2482
2483 /*
2484 * Initialize EH info for PMPs which saw device errors
2485 */
2487 ehi = &ap->link.eh_info;
2488 for (pmp = 0; pmp_map != 0; pmp++) {
2489 unsigned int this_pmp = (1 << pmp);
2490 if (pmp_map & this_pmp) {
2491 struct ata_link *link = &ap->pmp_link[pmp];
2486 for (pmp = 0; pmp_map != 0; pmp++) {
2487 unsigned int this_pmp = (1 << pmp);
2488 if (pmp_map & this_pmp) {
2489 struct ata_link *link = &ap->pmp_link[pmp];
2490 struct ata_eh_info *ehi = &link->eh_info;
2492
2493 pmp_map &= ~this_pmp;
2491
2492 pmp_map &= ~this_pmp;
2494 ehi = &link->eh_info;
2495 ata_ehi_clear_desc(ehi);
2496 ata_ehi_push_desc(ehi, "dev err");
2497 ehi->err_mask |= AC_ERR_DEV;
2498 ehi->action |= ATA_EH_RESET;
2499 ata_link_abort(link);
2500 }
2501 }
2502}

--- 2036 unchanged lines hidden ---
2493 ata_ehi_clear_desc(ehi);
2494 ata_ehi_push_desc(ehi, "dev err");
2495 ehi->err_mask |= AC_ERR_DEV;
2496 ehi->action |= ATA_EH_RESET;
2497 ata_link_abort(link);
2498 }
2499 }
2500}

--- 2036 unchanged lines hidden ---