Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133580
b: refs/heads/master
c: 6be976e
h: refs/heads/master
v: v3
  • Loading branch information
Phil Sutter authored and Jeff Garzik committed Mar 25, 2009
1 parent 0977b78 commit c80e315
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 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: 180bd147f18316d92bd5f59aebc9932cabc03edd
refs/heads/master: 6be976e79db3ba691b657476a8bf4a635e5586f9
20 changes: 1 addition & 19 deletions trunk/drivers/ata/pata_rb532_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,35 +48,19 @@
struct rb532_cf_info {
void __iomem *iobase;
unsigned int gpio_line;
int frozen;
unsigned int irq;
};

/* ------------------------------------------------------------------------ */

static void rb532_pata_freeze(struct ata_port *ap)
{
struct rb532_cf_info *info = ap->host->private_data;

info->frozen = 1;
}

static void rb532_pata_thaw(struct ata_port *ap)
{
struct rb532_cf_info *info = ap->host->private_data;

info->frozen = 0;
}

static irqreturn_t rb532_pata_irq_handler(int irq, void *dev_instance)
{
struct ata_host *ah = dev_instance;
struct rb532_cf_info *info = ah->private_data;

if (gpio_get_value(info->gpio_line)) {
set_irq_type(info->irq, IRQ_TYPE_LEVEL_LOW);
if (!info->frozen)
ata_sff_interrupt(info->irq, dev_instance);
ata_sff_interrupt(info->irq, dev_instance);
} else {
set_irq_type(info->irq, IRQ_TYPE_LEVEL_HIGH);
}
Expand All @@ -87,8 +71,6 @@ static irqreturn_t rb532_pata_irq_handler(int irq, void *dev_instance)
static struct ata_port_operations rb532_pata_port_ops = {
.inherits = &ata_sff_port_ops,
.sff_data_xfer = ata_sff_data_xfer32,
.freeze = rb532_pata_freeze,
.thaw = rb532_pata_thaw,
};

/* ------------------------------------------------------------------------ */
Expand Down

0 comments on commit c80e315

Please sign in to comment.