Skip to contentSkip to conversation

libata: expose AN to user space

PATCH Applied [email protected] 1 participant 1 message Oct 2, 2007 libata

lore
Share & tools
lore
#0 lore raw

PATCH 7/10 libata: expose AN to user space

From: Kristen Carlson Accardi <[email protected]>

If Asynchronous Notification of media change events is supported, pass that information up to the SCSI layer.

---

 drivers/ata/libata-scsi.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/ata/libata-scsi.c renamed from drivers/ata/libata-scsi.c~libata-expose-an-to-user-space +3 -0
diff -puN drivers/ata/libata-scsi.c~libata-expose-an-to-user-space drivers/ata/libata-scsi.c
@@ -773,6 +773,9 @@ static void ata_scsi_dev_config(struct s
 		blk_queue_max_hw_segments(q, q->max_hw_segments - 1);
 	}
 
+	if (dev->flags & ATA_DFLAG_AN)
+		sdev->media_change_notify = 1;
+
 	if (dev->flags & ATA_DFLAG_NCQ) {
 		int depth;
 

_