All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] be2iscsi: Adding support for various Async messages from chip
@ 2009-11-24 20:11 Jayamohan Kallickal
  2009-11-26  1:00 ` Mike Christie
  0 siblings, 1 reply; 2+ messages in thread
From: Jayamohan Kallickal @ 2009-11-24 20:11 UTC (permalink / raw)
  To: linux-scsi; +Cc: michaelc

   This patch allows for future addition of various async messages
from the chip. This ensures that the driver won't hit a BUG_ON if
the Firmware used is newer than inbox driver and so is using
latest async messages.

The patch was built on the latest tree at
git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6.git

Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com>
---
 drivers/scsi/be2iscsi/be_cmds.c |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/drivers/scsi/be2iscsi/be_cmds.c b/drivers/scsi/be2iscsi/be_cmds.c
index 698a527..bbd3632 100644
--- a/drivers/scsi/be2iscsi/be_cmds.c
+++ b/drivers/scsi/be2iscsi/be_cmds.c
@@ -135,11 +135,15 @@ int beiscsi_process_mcc(struct beiscsi_hba *phba)
 	while ((compl = be_mcc_compl_get(phba))) {
 		if (compl->flags & CQE_FLAGS_ASYNC_MASK) {
 			/* Interpret flags as an async trailer */
-			BUG_ON(!is_link_state_evt(compl->flags));
-
-			/* Interpret compl as a async link evt */
-			beiscsi_async_link_state_process(phba,
-				(struct be_async_event_link_state *) compl);
+			if(is_link_state_evt(compl->flags))
+				/* Interpret compl as a async link evt */
+				beiscsi_async_link_state_process(phba,
+				   (struct be_async_event_link_state *) compl);
+			else
+				SE_DEBUG(DBG_LVL_1,
+					 " Unsupported Async Event, flags"
+					 " = 0x%08x \n", compl->flags);
+				
 		} else if (compl->flags & CQE_FLAGS_COMPLETED_MASK) {
 				status = be_mcc_compl_process(ctrl, compl);
 				atomic_dec(&phba->ctrl.mcc_obj.q.used);
-- 
1.6.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] be2iscsi: Adding support for various Async messages from chip
  2009-11-24 20:11 [PATCH 1/1] be2iscsi: Adding support for various Async messages from chip Jayamohan Kallickal
@ 2009-11-26  1:00 ` Mike Christie
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Christie @ 2009-11-26  1:00 UTC (permalink / raw)
  To: Jayamohan Kalickal; +Cc: linux-scsi

Jayamohan Kallickal wrote:
>    This patch allows for future addition of various async messages
> from the chip. This ensures that the driver won't hit a BUG_ON if
> the Firmware used is newer than inbox driver and so is using
> latest async messages.
> 
> The patch was built on the latest tree at
> git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6.git
> 
> Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com>
> ---
>  drivers/scsi/be2iscsi/be_cmds.c |   14 +++++++++-----
>  1 files changed, 9 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/scsi/be2iscsi/be_cmds.c b/drivers/scsi/be2iscsi/be_cmds.c
> index 698a527..bbd3632 100644
> --- a/drivers/scsi/be2iscsi/be_cmds.c
> +++ b/drivers/scsi/be2iscsi/be_cmds.c
> @@ -135,11 +135,15 @@ int beiscsi_process_mcc(struct beiscsi_hba *phba)
>  	while ((compl = be_mcc_compl_get(phba))) {
>  		if (compl->flags & CQE_FLAGS_ASYNC_MASK) {
>  			/* Interpret flags as an async trailer */
> -			BUG_ON(!is_link_state_evt(compl->flags));
> -
> -			/* Interpret compl as a async link evt */
> -			beiscsi_async_link_state_process(phba,
> -				(struct be_async_event_link_state *) compl);
> +			if(is_link_state_evt(compl->flags))
> +				/* Interpret compl as a async link evt */
> +				beiscsi_async_link_state_process(phba,
> +				   (struct be_async_event_link_state *) compl);
> +			else
> +				SE_DEBUG(DBG_LVL_1,
> +					 " Unsupported Async Event, flags"
> +					 " = 0x%08x \n", compl->flags);
> +				
>  		} else if (compl->flags & CQE_FLAGS_COMPLETED_MASK) {
>  				status = be_mcc_compl_process(ctrl, compl);
>  				atomic_dec(&phba->ctrl.mcc_obj.q.used);

Patch looks fine. It just adds some whitespace on a line. When you send 
your patches you might want to run it through git-am --whitespace=fix 
before sending to make sure they are all fixed.

Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-26  1:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-24 20:11 [PATCH 1/1] be2iscsi: Adding support for various Async messages from chip Jayamohan Kallickal
2009-11-26  1:00 ` Mike Christie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.