RE: [PATCH 2/2 (resend) ] reset flag documentation

Prakash, Sathya
2009-01-09T08:08:32Z

ACK

-----Original Message-----
From: Bernd Schubert [mailto:bs@q-leap.de]
Sent: Wednesday, January 07, 2009 11:36 PM
To: linux-scsi@vger.kernel.org
Cc: Prakash, Sathya; Moore, Eric; James Bottomley; DL-MPT Fusion Linux
Subject: [PATCH 2/2 (resend) ] reset flag documentation

Add documentation of a fusion MPT reset flag.

Signed-off-by: Bernd Schubert <bs@q-leap.de>

Index: linux-2.6/drivers/message/fusion/mptbase.h
===================================================================
--- linux-2.6.orig/drivers/message/fusion/mptbase.h
+++ linux-2.6/drivers/message/fusion/mptbase.h
@@ -735,8 +735,9 @@ typedef struct _MPT_ADAPTER typedef int (*MPT_CALLBACK)(MPT_ADAPTER *ioc, MPT_FRAME_HDR *req, MPT_FRAME_HDR *reply); typedef int (*MPT_EVHANDLER)(MPT_ADAPTER *ioc, EventNotificationReply_t *evReply); typedef int (*MPT_RESETHANDLER)(MPT_ADAPTER *ioc, int reset_phase);
-/* reset_phase defs */
-#define MPT_IOC_PRE_RESET 0
+
+/* reset_phase defs, see e.g. mptscsih_ioc_reset() about flag usage */
+#define MPT_IOC_PRE_RESET 0 /* clear pending requests */
#define MPT_IOC_POST_RESET 1
#define MPT_IOC_SETUP_RESET 2