Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29530
b: refs/heads/master
c: 5a44eff
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Jun 20, 2006
1 parent 201da34 commit 65f1f91
Show file tree
Hide file tree
Showing 2 changed files with 9 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: 39f8758259868a01ecad29b4379661dd3f21881f
refs/heads/master: 5a44efff4f8fe8139c0c4166ad5aae5f2fa5bced
9 changes: 8 additions & 1 deletion trunk/drivers/scsi/sata_nv.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ enum {
NV_INT_PORT_SHIFT = 4, /* each port occupies 4 bits */

NV_INT_ALL = 0x0f,
NV_INT_MASK = NV_INT_DEV,
NV_INT_MASK = NV_INT_DEV |
NV_INT_ADDED | NV_INT_REMOVED,

/* INT_CONFIG */
NV_INT_CONFIG = 0x12,
Expand Down Expand Up @@ -324,6 +325,12 @@ static int nv_host_intr(struct ata_port *ap, u8 irq_stat)
struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->active_tag);
int handled;

/* freeze if hotplugged */
if (unlikely(irq_stat & (NV_INT_ADDED | NV_INT_REMOVED))) {
ata_port_freeze(ap);
return 1;
}

/* bail out if not our interrupt */
if (!(irq_stat & NV_INT_DEV))
return 0;
Expand Down

0 comments on commit 65f1f91

Please sign in to comment.