Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56753
b: refs/heads/master
c: 4349eeb
h: refs/heads/master
i:
  56751: 706f4ea
v: v3
  • Loading branch information
Alan Cox authored and Jeff Garzik committed May 22, 2007
1 parent cc1bed3 commit 509832c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 39f198868dfd4216ff221d741c72a009d995a7ba
refs/heads/master: 4349eebf67b2b06eab36f3dad651ac36619ae986
28 changes: 1 addition & 27 deletions trunk/drivers/ata/pata_hpt366.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,32 +220,6 @@ static int hpt36x_cable_detect(struct ata_port *ap)
return ATA_CBL_PATA80;
}

static int hpt36x_pre_reset(struct ata_port *ap, unsigned long deadline)
{
static const struct pci_bits hpt36x_enable_bits[] = {
{ 0x50, 1, 0x04, 0x04 },
{ 0x54, 1, 0x04, 0x04 }
};
struct pci_dev *pdev = to_pci_dev(ap->host->dev);

if (!pci_test_config_bits(pdev, &hpt36x_enable_bits[ap->port_no]))
return -ENOENT;

return ata_std_prereset(ap, deadline);
}

/**
* hpt36x_error_handler - reset the hpt36x bus
* @ap: ATA port to reset
*
* Perform the reset handling for the 366/368
*/

static void hpt36x_error_handler(struct ata_port *ap)
{
ata_bmdma_drive_eh(ap, hpt36x_pre_reset, ata_std_softreset, NULL, ata_std_postreset);
}

/**
* hpt366_set_piomode - PIO setup
* @ap: ATA interface
Expand Down Expand Up @@ -351,7 +325,7 @@ static struct ata_port_operations hpt366_port_ops = {

.freeze = ata_bmdma_freeze,
.thaw = ata_bmdma_thaw,
.error_handler = hpt36x_error_handler,
.error_handler = ata_bmdma_error_handler,
.post_internal_cmd = ata_bmdma_post_internal_cmd,
.cable_detect = hpt36x_cable_detect,

Expand Down

0 comments on commit 509832c

Please sign in to comment.