Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145474
b: refs/heads/master
c: d3ae33e
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Jun 2, 2009
1 parent 0a9caab commit 08e3411
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 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: ca55bd7e2905d344bf697f7c2cc347cb42999e7a
refs/heads/master: d3ae33efb8e2f277f9007eb060c9d0b91ab38ae1
13 changes: 12 additions & 1 deletion trunk/drivers/ata/pata_netcell.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,24 @@

/* No PIO or DMA methods needed for this device */

static unsigned int netcell_read_id(struct ata_device *adev,
struct ata_taskfile *tf, u16 *id)
{
unsigned int err_mask = ata_do_dev_read_id(adev, tf, id);
/* Firmware forgets to mark words 85-87 valid */
if (err_mask == 0)
id[ATA_ID_CSF_DEFAULT] |= 0x0400;
return err_mask;
}

static struct scsi_host_template netcell_sht = {
ATA_BMDMA_SHT(DRV_NAME),
};

static struct ata_port_operations netcell_ops = {
.inherits = &ata_bmdma_port_ops,
.cable_detect = ata_cable_80wire,
.cable_detect = ata_cable_80wire,
.read_id = netcell_read_id,
};


Expand Down

0 comments on commit 08e3411

Please sign in to comment.