From: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
To: jeff@garzik.org
Cc: James.Bottomley@steeleye.com, linux-ide@vger.kernel.org,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
akpm@linux-foundation.org,
Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Subject: [patch 3/4] libata: expose AN to user space
Date: Wed, 8 Aug 2007 12:08:29 -0700 [thread overview]
Message-ID: <20070808120829.97022745.kristen.c.accardi@intel.com> (raw)
In-Reply-To: <20070808190613.616085010@localhost.localdomain>
If Asynchronous Notification of media change events is supported,
pass that information up to the SCSI layer.
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Index: 2.6-git/drivers/ata/libata-scsi.c
===================================================================
--- 2.6-git.orig/drivers/ata/libata-scsi.c
+++ 2.6-git/drivers/ata/libata-scsi.c
@@ -771,6 +771,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;
--
next prev parent reply other threads:[~2007-08-08 19:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070808190613.616085010@localhost.localdomain>
2007-08-08 19:08 ` [patch 1/4] libata: check for AN support Kristen Carlson Accardi
2007-08-08 19:24 ` Andrew Morton
2007-08-15 7:59 ` Jeff Garzik
2007-08-15 16:21 ` Kristen Carlson Accardi
2007-08-08 19:08 ` [patch 2/4] scsi: expose AN support to user space Kristen Carlson Accardi
2007-08-15 8:13 ` Jeff Garzik
2007-08-15 14:01 ` James Bottomley
2007-08-15 16:27 ` Kristen Carlson Accardi
2007-08-15 23:37 ` Moore, Eric
2007-08-08 19:08 ` Kristen Carlson Accardi [this message]
2007-08-08 19:08 ` [patch 4/4] libata: send event when AN received Kristen Carlson Accardi
2007-08-15 8:12 ` Jeff Garzik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070808120829.97022745.kristen.c.accardi@intel.com \
--to=kristen.c.accardi@intel.com \
--cc=James.Bottomley@steeleye.com \
--cc=akpm@linux-foundation.org \
--cc=jeff@garzik.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®